CleanedWeb

api.fiscaldata.treasury.gov

Treasury API

2 unofficial CleanedWeb APIs read api.fiscaldata.treasury.gov and return JSON. Each is its own API, with its own inputs and fields.

  • 2 APIs
  • Updated

What each Treasury API returns

Each API takes its own inputs and returns records with a fixed set of fields. These are the fields each API leads with; its page lists every field, with a type and an example value.

API Required inputs Main fields
Treasury Fiscal Data Exchange Rates API None required country, date.effective, currency.name, date.calendar_day, date.calendar_month, date.calendar_quarter
Treasury Fiscal Data Securities Auction Results API None required amounts.offering, dates.issue, dates.maturity, security.term, cusip, security.description

An example record

country
Afghanistan
date.effective
2026-09-30
date.calendar_day
30
date.calendar_month
09
date.calendar_quarter
3
date.calendar_year
2026
date.fiscal_quarter
4
One record saved from the Treasury Fiscal Data Exchange Rates API on Dec 2, 2026, not a live run.

Call it over REST

Every API runs with one POST request and an API key. This one calls the Treasury Fiscal Data Exchange Rates API for up to 25 records; the others differ only in their address and inputs.

curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_c2a79885d6c82dcd59fb439a/endpoints/generated_c2a79885d6c82dcd59fb439a_search/run \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {},
  "max_items": 25
}'

AI agents can find and run the same APIs through the CleanedWeb MCP server, in Claude, ChatGPT, Cursor and other clients.

Questions about the Treasury API

Is this the official Treasury API?

No. These are unofficial APIs built by CleanedWeb, which is not affiliated with Treasury. They read the public pages of api.fiscaldata.treasury.gov, never pages behind a login, and return what those pages show as JSON.

What does it cost?

$1 per 1,000 records, paid from prepaid credit. A run that returns no records costs nothing, and the first 5,000 records are free. There is no monthly subscription.

What happens when api.fiscaldata.treasury.gov changes?

Catalog APIs are checked once a day. When one keeps failing, it is rebuilt from the site as it is now and swapped in only after it passes the same checks, with the same API ID and URL.

Can I get Treasury data these APIs do not cover?

Request it below: name the page and the records you need, and we email you when the API is in the catalog, or why it cannot be added.

CleanedWeb is not affiliated with Treasury.

Browse the catalog

Don’t see the website you need?

Paste its URL to build its API yourself, with real sample records in minutes. Or request it: we email you when it’s in the catalog, or why we can’t add it. Building it costs you nothing.

5,000 records free · No card required Request it instead