# 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](https://pushbuild.com/apis/app/signup?api=us-treasury-fiscal-data)

Example request

```
POST /us-treasury-fiscal-data/run
{
  "maxItems": 20
}
```

## What a response looks like

POST /us-treasury-fiscal-data/run{"maxItems": 5}

```
{"count": 5, "items": [{ "dataset": "debt-to-the-penny", "debt_held_public_amt": 32766722473715.61, "intragov_hold_amt": 7789398311268.04, "record_calendar_day": "05", "record_calendar_month": "11", "record_calendar_quarter": "4", "record_calendar_year": "2026", "record_date": "2026-11-05", "record_fiscal_quarter": "1", "record_fiscal_year": "2027", … ]}
```

`debt_held_public_amt` by `dataset` in this sample response

| dataset | debt_held_public_amt | intragov_hold_amt | record_calendar_day | record_calendar_month | record_calendar_quarter |
| --- | --- | --- | --- | --- | --- |
| debt-to-the-penny | 32,766,722,473,716 | 7,789,398,311,268 | 05 | 11 | 4 |
| debt-to-the-penny | 32,765,175,912,226 | 7,785,054,135,384 | 04 | 11 | 4 |
| debt-to-the-penny | 32,765,330,118,711 | 7,782,073,452,274 | 03 | 11 | 4 |
| debt-to-the-penny | 32,719,901,942,674 | 7,782,179,023,423 | 02 | 11 | 4 |
| debt-to-the-penny | 32,738,422,032,177 | 7,786,087,980,886 | 30 | 10 | 4 |

Real rows returned by this API on 2026-11-09 for the request shown.

## 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, i-bond-rates | 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.

| Records | Cost |
| --- | --- |
| 1,000 | $0.24 |
| 10,000 | $2.40 |
| 100,000 | $24.00 |
| 1,000,000 | $240.00 |
| 4,166 a month | Free ($1 monthly credit) |

## Use it from Claude, ChatGPT or Cursor

This API is also an MCP server: `https://api.pushbuild.com/mcp/us-treasury-fiscal-data`. Add it to any assistant that supports remote MCP servers, with your key in the `X-API-Key` header. Same prices. [Setup for each app](https://pushbuild.com/apis/mcp.html).

## Related APIs

- [Reserve Bank of Australia API: Cash Rate, Bonds, CPI & AUD API](https://pushbuild.com/apis/reserve-bank-of-australia-rates.html): Reserve Bank of Australia statistics from its official tables: cash rate target, interbank rate, government bond yields, AUD exchange rates and trade-weighted index, CPI and trimmed-mean inflation, credit and M3 growth, mortgage rates.
- [US Treasury Auction Results: Bid-to-Cover & Bidders API](https://pushbuild.com/apis/treasury-auctions.html): Official Treasury auction results for bills, notes, bonds, TIPS, FRNs and CMBs: high/median/low yield, bid-to-cover, indirect, direct and primary dealer takedown, compared with the last 6 auctions of the same term, plus upcoming auctions.
- [Swiss National Bank API: Policy Rate, SARON, CHF FX & CPI API](https://pushbuild.com/apis/swiss-national-bank-data.html): Swiss National Bank statistics from its official data portal: SNB policy rate, SARON and sight deposit rates (daily), Swiss franc exchange rates, CPI, M1/M2/M3 and SNB gold and foreign currency holdings.
- [NBP API: Polish Zloty FX Rates, Gold Price & Policy Rates API](https://pushbuild.com/apis/national-bank-of-poland-data.html): National Bank of Poland data from its official API: daily zloty exchange rates (table A mid, table B weekly, table C bid/ask), the NBP gold price, and NBP policy rates (reference, lombard, deposit, rediscount, discount) with history since 1998..
- [VIN Decoder & Vehicle Recalls API](https://pushbuild.com/apis/vin-decoder-vehicle-recalls.html): Decode VINs in bulk (make, model, year, trim, engine, body, plant, safety features) and get NHTSA safety recalls and owner complaints for any vehicle.
- [US Stock Symbols API](https://pushbuild.com/apis/us-stock-symbol-directory.html): Every security listed on US exchanges, from the Nasdaq Trader symbol directory updated daily: ticker, name, exchange (Nasdaq, NYSE, NYSE American, NYSE Arca, Cboe BZX, IEX), Nasdaq tier, ETF flag, financial status and round lot.

## 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](mailto:hello@pushbuild.com?subject=API%20question)

## New APIs and data, twice a month

New data APIs, coverage changes and analysis from Pushbuild. No spam; one click to leave.

---
As of 2026-12-03. Source: https://pushbuild.com/apis/us-treasury-fiscal-data.html
