API URL
GET /api/v1/libor
Headers
Code
Content-Type: application/jsonQuery Parameters
Param
Type
Description
benchmark
optional
string
Benchmark selector: sofr or libor
tenor
optional
string
Tenor selector: 1m 3m 6m 12m
period
optional
string
Window selector: latest 1y 5y max or available
source
optional
string
Source mode auto fred or snapshot; fred supports SOFR only
startDate
optional
string
Inclusive lower observation bound as a valid YYYY-MM-DD calendar date
endDate
optional
string
Inclusive upper observation bound as a valid YYYY-MM-DD calendar date
shortTenor
optional
string
Spread short-leg tenor selector
longTenor
optional
string
Spread long-leg tenor selector
sort
optional
string
Sort order for history and spread responses asc or desc
Example GET Request
Code
GET https://datpaq.com/api/v1/libor?api_key=your-api-key&benchmark=sofr&tenor=3m&period=latest&source=snapshotSuccessful Response
Status
HTML
200 OKBody
Code
{
"success": true,
"source": "snapshot",
"asOf": "2026-07-01",
"dataClass": "static_sofr_snapshot",
"fredSeriesId": null,
"coverage": {
"firstObservationDate": "2026-02-01",
"lastObservationDate": "2026-07-01",
"observationCount": 6
},
"sourceNotes": [
"Snapshot responses expose only observations bundled in the repository dataset.",
"Use source=fred or source=auto with FRED_API_KEY configured for live SOFR observations."
],
"benchmark": "sofr",
"tenor": "3m",
"requestedTenor": "3m",
"period": "latest",
"requestedSource": "snapshot",
"resolvedSource": "snapshot",
"dataAvailable": true,
"latest": {
"date": "2026-07-01",
"value": 5.15
},
"changeBps": null,
"observations": 1,
"metadata": {
"correlationId": "1784850701208-r7wul8jcl",
"timestamp": "2026-10-12T12:00:00.000Z",
"processingTime": "2ms",
"api_token_name": null,
"rate_limit": {
"limit": null,
"remaining": null,
"reset": null
}
}
}Field
Type
success
boolean
source
string
asOf
string
dataClass
string
fredSeriesId
string
coverage
object
sourceNotes
array
benchmark
string
tenor
string
requestedTenor
string
requestedShortTenor
string
requestedLongTenor
string
period
string
requestedSource
string
resolvedSource
string
startDate
string
endDate
string
dataAvailable
boolean
latest
object
changeBps
number
observations
number
sort
string
data
array
count
number
shortTenor
string
longTenor
string
latestSpreadBps
number
note
string
benchmarkDefault
string
benchmarks
array
tenors
array
periods
array
sources
array
liveSources
object
dataClasses
object
benchmarkCoverage
object
notes
array
status
string
service
string
timestamp
string
version
string
fredConfigured
boolean
error
string
details
array
retryAfter
number
metadata
object
metadata_correlationId
string
metadata_timestamp
string
metadata_processingTime
string
metadata_api_token_name
string
metadata_rate_limit
object
Error Response
Example
Code
HTTP 400 ValidationError: Invalid benchmark tenor period source spread pairing calendar date or date range — Request rejected by Joi schema or service guards; HTTP 401 AuthenticationError: Missing or invalid API key — Gateway authentication middleware rejected the request; HTTP 404 NotFound: Unknown route — Request did not match any defined endpoint; HTTP 429 RateLimitError: Too many requests — Rate limiter threshold exceeded on /api routes; HTTP 502 ProcessingError: Unexpected internal processing failure — Service returned standardized non-validation failure payload; HTTP 502 UpstreamError: FRED returned an unsuccessful or unavailable response — Service returned standardized non-validation failure payload; HTTP 503 ConfigurationError: Explicit source=fred without FRED_API_KEY — SOFR live mode requires server-side FRED_API_KEYLast Updated: May 4, 2026