US Treasury debt to the penny API
Latest US public debt outstanding from the official Treasury Fiscal Data debt_to_penny series. POST /api/v1/macro-intelligence/us-treasury-debt costs $0.001 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 US public debt outstanding from the official Treasury Fiscal Data debt_to_penny series. POST /api/v1/macro-intelligence/us-treasury-debt costs $0.001 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-debtExample request
curl -i -X POST "https://www.brainiac.software/api/v1/macro-intelligence/us-treasury-debt" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{}
JSONExample response
{
"status": "complete",
"recordDate": "2026-11-19",
"totalPublicDebtOutstanding": "38245123456789.12",
"debtHeldByThePublic": "29000123456789.12",
"intragovernmentalHoldings": "9245000000000.00",
"currency": "USD",
"source": "US Treasury Fiscal Data, debt_to_penny",
"sourceUrl": "https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny",
"asOf": "2026-11-20T21:47:00.000Z",
"missing_items": []
}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.
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