Pushbuild

US Treasury Data API - National Debt, Rates & Auctions

Official US Treasury Fiscal Data: national debt to the penny, historical debt, average interest rates, interest expense, exchange rates, daily cash balance, receipts and outlays, securities auctions, savings bonds and gold reserve.

$0.24 per 1,000 records

Get an API key

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.

FieldTypeDescription
datasetstring: 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-reserveWhich Treasury dataset to return. Default: "debt-to-the-penny".
startDatestringRecords on or after (YYYY-MM-DD).
endDatestringRecords on or before (YYYY-MM-DD).
filterstringFiscal Data filter syntax, e.g. country:eq:Canada or security_type:eq:Bill.
sortstringField to sort by; prefix - for descending. Default: "-record_date".
maxItemsintegerMaximum 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.

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

(617) 299-8887

Tell us about your project

A few questions so we can come back with a written scope. We reply within one business day.