Fed Treasury
Official U.S. Treasury fiscal data, from debt to FX rates
The Treasury's Fiscal Data service publishes federal finances—exchange rates, the national debt, interest rates and more—as a filterable JSON API. Select fields, page and sort with query parameters; no key required. It's open U.S. Government data.
GET https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v1/accounting/od/rates_of_exchange?fields=country_currency_desc,exchange_rate,record_date&page[number]=1&page[size]=1
{
"data": [
{
"country_currency_desc": "Afghanistan-Afghani",
"exchange_rate": "77.625",
"record_date": "2019-12-31"
}
],
"meta": {
"count": 1,
"total-count": 18807
}
}curl "https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v1/accounting/od/rates_of_exchange?fields=country_currency_desc,exchange_rate,record_date&page[number]=1&page[size]=1"const res = await fetch("https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v1/accounting/od/rates_of_exchange?fields=country_currency_desc,exchange_rate,record_date&page[number]=1&page[size]=1");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v1/accounting/od/rates_of_exchange?fields=country_currency_desc,exchange_rate,record_date&page[number]=1&page[size]=1")
print(res.json())BROWSER CALLS BLOCKED (NO CORS/HTTPS) — USE THE CURL SNIPPET
/v1/accounting/od/rates_of_exchange?fields=country_currency_desc,exchange_rate,record_date&page[number]=1&page[size]=1PROBEDOfficial U.S. Treasury fiscal data, from debt to FX rates
/v1V1 — documented GET route.
/v1/1V1 details by ID (example: 1).
/v1?limit=10V1 — documented GET route.
/v1/search?q=testSearch by query parameters.
/v1/V1 — documented GET route.
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.
Fed Treasury: common questions
Is Fed Treasury free to use?
Yes — Fed Treasury is a free finance API. Free tier: Free — no API key. Commercial use is allowed on the free tier.
Does Fed Treasury need an API key?
No — Fed Treasury needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).
Can I call Fed Treasury from the browser?
Not directly — Fed Treasury doesn't send browser-friendly CORS headers, so call it from a server or proxy instead. Copy the curl or Python snippet on this page to get started.
Is Fed Treasury up right now?
As of our last scheduled check, Fed Treasury is unmonitored. We re-probe it every sweep — the status badge and uptime chart above always show the latest.