What it returns
Official data from the US Treasury's Fiscal Data service. Public domain.
Common uses
Macro dashboards, finance content, research, currency conversion at official Treasury rates, auction tracking. Pay per record.
Request
POST https://api.pushbuild.com/us-treasury-fiscal-data/run with a JSON body. Send your key in the X-API-Key header.
| Field | Type | Description |
|---|---|---|
dataset | string: debt-to-the-penny, historical-debt-outstanding, monthly-public-debt, average-interest-rates, interest-expense, exchange-rates, daily-cash-balance, daily-deposits-withdrawals, monthly-receipts-outlays, securities-auctions, savings-bond-sales, gold-reserve | Which Treasury dataset to return. Default: "debt-to-the-penny". |
startDate | string | Records on or after (YYYY-MM-DD). |
endDate | string | Records on or before (YYYY-MM-DD). |
filter | string | Fiscal Data filter syntax, e.g. country:eq:Canada or security_type:eq:Bill. |
sort | string | Field to sort by; prefix - for descending. Default: "-record_date". |
maxItems | integer | Maximum items to return (1-500). Default: 100. |
Example
curl -X POST https://api.pushbuild.com/us-treasury-fiscal-data/run \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"maxItems": 20}'
Response
{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}
Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.
Pricing
Pay only for results returned: $0.24 per 1,000 records. No charge for errors or empty searches.
Related APIs
Academic Papers Search API
Search scholarly papers across Crossref (150M+ works), arXiv and PubMed in one run.
Article & Web Page to Markdown API
Turn any URLs into clean, Markdown, text or JSON.
Book Search API
Search millions of books by keyword, title, author, subject or ISBN, plus author lookup.
College Scorecard: US Colleges, Costs, Earnings by Major API
Every US college from the Department of Education College Scorecard: admission rate, SAT/ACT, tuition, net price, completion and retention, median debt and graduates' earnings, plus program-level (major) debt and earnings 1 to 5 years after graduation..
Currency Exchange Rates API
Official European Central Bank reference exchange rates for 30+ currencies, daily since 1999.
CVE Vulnerability Lookup: NVD, CISA KEV, EPSS, OSV API
Look up CVEs by ID or keyword, or check open-source packages for known vulnerabilities.
Tell us what you need built.
Questions about this API, higher volumes, or a data source you need that we don't cover yet.
hello@pushbuild.com