Official public data
Official public data
Treasury Fiscal Data API
Machine-readable U.S. federal debt, interest expense, revenue, spending and auction datasets.
- Provider
- U.S. Treasury
- Access
- No API key
- Primary interface
- https://api.fiscaldata.treasury.gov/services/api/fiscal_service/
U.S. Treasury
API / Skill
Research
Track federal debt and interest costs
Endpoints paginate results; request only the fields and date range you need.
No API key · https://api.fiscaldata.treasury.gov/services/api/fiscal_service/
Best used for
Track federal debt and interest costs
Study Treasury auction demand
Build fiscal-regime indicators
Quick start
const url = 'https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?sort=-record_date&page[size]=5';
const result = await fetch(url).then(r => r.json());
console.table(result.data);A practical workflow
- 1Confirm the source and license
- 2Run the smallest useful request
- 3Validate fields and missing values
- 4Cache responsibly and document assumptions
Before you build
Endpoints paginate results; request only the fields and date range you need.
Frequently asked questions
What can Treasury Fiscal Data API do in a real workflow?
Track federal debt and interest costs Study Treasury auction demand Build fiscal-regime indicators
What access and compatibility does Treasury Fiscal Data API require?
No API key. https://api.fiscaldata.treasury.gov/services/api/fiscal_service/.
What is the main implementation risk with Treasury Fiscal Data API?
Endpoints paginate results; request only the fields and date range you need.