# US Treasury API

> US Treasury API on Apizie: 5 endpoints (Yield Curve, Auctions, Average Interest Rates, Daily Treasury Statement, …) returned as clean JSON through one API key. 5 endpoints are live now. Call it over REST at https://www.apizie.tech/v1/finance:us-treasury/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `finance:us-treasury`
- Category: Finance
- Status: live
- Source: https://treasury.gov
- Page: https://www.apizie.tech/api/finance/us-treasury
- OpenAPI: https://www.apizie.tech/api/finance/us-treasury/openapi.json

US federal debt, Treasury auction results, average interest rates, daily cash balance and the par yield curve from official Treasury data.

## Endpoints

### Yield Curve
`GET https://www.apizie.tech/v1/finance:us-treasury/yield-curve`

| Parameter | Type | Required | Description |
|---|---|---|---|
| year | integer | no | Calendar year (default: current) |
| length | integer | no | Keep only the latest N days |

### Auctions
`GET https://www.apizie.tech/v1/finance:us-treasury/auctions`

| Parameter | Type | Required | Description |
|---|---|---|---|
| securityType | string | no |  |
| securityTerm | string | no |  |
| cusip | string | no |  |
| from | string | no |  |
| to | string | no |  |
| page | integer | no |  |
| length | integer | no |  |

### Average Interest Rates
`GET https://www.apizie.tech/v1/finance:us-treasury/avg-interest-rates`

| Parameter | Type | Required | Description |
|---|---|---|---|
| securityType | string | no |  |
| security | string | no |  |
| from | string | no |  |
| to | string | no |  |
| page | integer | no |  |
| length | integer | no |  |

### Daily Treasury Statement
`GET https://www.apizie.tech/v1/finance:us-treasury/daily-treasury-statement`

| Parameter | Type | Required | Description |
|---|---|---|---|
| account | string | no | Account type, e.g. 'Treasury General Account (TGA) Closing Balance' |
| from | string | no |  |
| to | string | no |  |
| page | integer | no |  |
| length | integer | no |  |

### Debt to the Penny
`GET https://www.apizie.tech/v1/finance:us-treasury/debt-to-penny`

| Parameter | Type | Required | Description |
|---|---|---|---|
| from | string | no |  |
| to | string | no |  |
| page | integer | no |  |
| length | integer | no |  |

## Example
```
curl "https://www.apizie.tech/v1/finance:us-treasury/yield-curve" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the US Treasury API?
Create a free Apizie key, then send GET https://www.apizie.tech/v1/finance:us-treasury/yield-curve with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the US Treasury API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the US Treasury API?
Yes. Add the Apizie MCP server (https://www.apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key finance:us-treasury.

### What is the status of the US Treasury API?
Live: works with just an Apizie key
