US Treasury yield curve API
Latest official US Treasury daily par yield curve from the Treasury XML feed. Optional recordDate. Returns published tenors from 1 month to 30 years and optional derived 10Y-2Y / 10Y-3M spreads. Not a forecast. POST /api/v1/macro-intelligence/us-treasury-yield-curve costs $0.0014 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Caller-supplied public economic series World Bank Open Data (no API key) when requested US Treasury Fiscal Data debt_to_penny Limits: No paid financial data provider is used and no API key is required. Missing consensus, FX, and debt values are not invented.
Latest official US Treasury daily par yield curve from the Treasury XML feed. Optional recordDate. Returns published tenors from 1 month to 30 years and optional derived 10Y-2Y / 10Y-3M spreads. Not a forecast. POST /api/v1/macro-intelligence/us-treasury-yield-curve costs $0.0014 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Caller-supplied public economic series World Bank Open Data (no API key) when requested US Treasury Fiscal Data debt_to_penny Limits: No paid financial data provider is used and no API key is required. Missing consensus, FX, and debt values are not invented.
/api/v1/macro-intelligence/us-treasury-yield-curveExample request
curl -i -X POST "https://www.brainiac.software/api/v1/macro-intelligence/us-treasury-yield-curve" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{}
JSONExample response
{
"status": "complete",
"data": {
"recordDate": "2026-11-20",
"tenors": [
{
"tenor": "1M",
"yieldPercent": "4.19"
},
{
"tenor": "3M",
"yieldPercent": "4.32"
}
],
"spread10y2y": "0.29",
"spread10y3m": "0.60",
"sourceUrl": "https://home.treasury.gov/resource-center/data-chart-center/interest-rates/pages/xml?data=daily_treasury_yield_curve&field_tdr_date_value=2026",
"asOf": "2026-11-20T22:40:00.000Z"
},
"nextCursor": null,
"progress": {
"processed": 0,
"total": null,
"unit": "items",
"scannedRange": null
},
"sources": [],
"missing_items": [],
"limitations": []
}An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
Errors: HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; failed or empty results are not charged. Invalid cursor returns HTTP 400 (uncharged).
Limits: No paid financial data provider is used and no API key is required. Missing consensus, FX, and debt values are not invented. Country risk labels summarize supplied indicators only and are not a credit rating. Optional cursor resumes the next deterministic chunk. Partial responses include nextCursor, progress, sources, and data under a ~22s wall budget (#212).
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Compare central bank rates — $0.04 USDC
- Analyze yield curves — $0.05 USDC
- Compare inflation series — $0.04 USDC
- Track economic indicator releases — $0.04 USDC
Related APIs
- Building Energy & Facilities Intelligence API
- Electricity Market & Grid Intelligence API
- Electrical Engineering & Installation Intelligence API
Global Financial Markets & Macro Intelligence APIGroup docsHow it works