# US Treasury Fiscal Data API

> US Treasury exchange rates, national debt, average interest rates and daily cash balance

- Vendor: `ustreasuryfiscaldataapi` · version 1.0 · category Finance · tags treasury api, fiscal data api, us national debt api, treasury exchange rates api, interest rates api, daily treasury statement api, government finance api, debt to the penny
- Datasource: custom HTTP routes
- Marketplace page: https://apiclay.com/api/ustreasuryfiscaldataapi
- This document: https://apiclay.com/docs/ustreasuryfiscaldataapi.md
- OpenAPI 3.1: https://apiclay.com/api/ustreasuryfiscaldataapi/openapi.json
- MCP: connect https://api.apiclay.com/v1/mcp (see https://apiclay.com/llms.txt), then `apiclay_describe_api` with vendor `ustreasuryfiscaldataapi`
- Updated: 2026-11-18

## About

## US Treasury Fiscal Data API

Official US Treasury datasets: the exchange rates Treasury uses for 170+ currencies, the national debt to the penny, average interest rates on Treasury securities, and the Treasury General Account's daily cash balance. All routes share the same filter, sort and paging parameters.

Data comes from **fiscaldata.treasury.gov** (https://fiscaldata.treasury.gov). Every route below calls the source's own public endpoint directly and returns the upstream response unchanged.

### Routes

#### Shared parameters (every route)
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| fields | query | string | no | Comma-separated columns, e.g. `record_date,country,exchange_rate`. |
| filter | query | string | no | e.g. `record_date:gte:2025-01-01,country:eq:Canada`. |
| sort | query | string | no | e.g. `-record_date` (newest first). |
| page[size] | query | number | no | Rows per page (default 100). |
| page[number] | query | number | no | Page number. |
| format | query | string | no | `json` (default), `csv` or `xml`. |

#### GET `/exchange-rates` - Treasury reporting rates of exchange
Returns: `data[]` with `record_date`, `country`, `currency`, `country_currency_desc`, `exchange_rate`, `effective_date`; `meta.total-count`.

#### GET `/debt` - Debt to the penny
Returns: `data[]` with `record_date`, `debt_held_public_amt`, `intragov_hold_amt`, `tot_pub_debt_out_amt`.

#### GET `/interest-rates` - Average interest rates
Returns: `data[]` with `record_date`, `security_type_desc`, `security_desc`, `avg_interest_rate_amt`.

#### GET `/cash-balance` - Daily operating cash balance
Returns: `data[]` with `record_date`, `account_type`, `open_today_bal`, `close_today_bal`.

### License

Fiscal Data is US government work and in the public domain.

### Caveats

- Exchange rates are published quarterly; debt and cash balance daily on business days.
- Upstream responses can change over time. Verify fields before relying on them.
- Not affiliated with or endorsed by fiscaldata.treasury.gov.

## Pricing

- Pay as you go: 0.0012 credits/request
- Trial: 1 free requests per buyer
- Billing order: trial requests -> subscribed plan requests -> pay as you go. 1 credit's USD value is shown on the marketplace page.

## HTTP routes

Only the public, buyer-facing parts of each route are listed; vendor-side credentials stay on the gateway.

### GET /exchange-rates — Treasury exchange rates
- Gateway: `GET https://api.apiclay.com/v1/api/ustreasuryfiscaldataapi/exchange-rates`
- Public query params: `fields` (string), `filter` (string), `sort` (string), `page[size]` (string), `page[number]` (string), `format` (string)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

### GET /debt — Debt to the penny
- Gateway: `GET https://api.apiclay.com/v1/api/ustreasuryfiscaldataapi/debt`
- Public query params: `fields` (string), `filter` (string), `sort` (string), `page[size]` (string), `page[number]` (string), `format` (string)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

### GET /interest-rates — Average interest rates
- Gateway: `GET https://api.apiclay.com/v1/api/ustreasuryfiscaldataapi/interest-rates`
- Public query params: `fields` (string), `filter` (string), `sort` (string), `page[size]` (string), `page[number]` (string), `format` (string)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

### GET /cash-balance — Daily operating cash balance
- Gateway: `GET https://api.apiclay.com/v1/api/ustreasuryfiscaldataapi/cash-balance`
- Public query params: `fields` (string), `filter` (string), `sort` (string), `page[size]` (string), `page[number]` (string), `format` (string)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

## Call example

```bash
curl -X GET "https://api.apiclay.com/v1/api/ustreasuryfiscaldataapi/exchange-rates" \
  -H "token: <YOUR_APICLAY_TOKEN>"
```

Index of every published API: https://apiclay.com/llms.txt
