Fed Treasury API
U.S. Department of the Treasury Data
- Our call
- HTTP 200
- Latency
- 2,514 ms
- From a browser
- Allowed
- Key
- No key
- Docs link
- Answered
https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?sort=-record_date&page%5Bsize%5D=1Press Run: the request leaves from your browser, and you see what it gets back.
const res = await fetch("https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?sort=-record_date&page%5Bsize%5D=1");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data);curl -sS 'https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?sort=-record_date&page%5Bsize%5D=1'import requests
r = requests.get("https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?sort=-record_date&page%5Bsize%5D=1", timeout=10)
r.raise_for_status()
print(r.json())Fed Treasury docsMore Finance APIs
Come back to see anything that changed: answers, keys, browser access, rate limits.
Our test call Measured by us
- Request
GET https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?sort=-record_date&page%5Bsize%5D=1- Result
- HTTP 200 in 2,514 ms (2,517 ms with the body)
- From a browser
- Browser OK Access-Control-Allow-Origin: *
- HTTPS
- Yes
- Response
- application/json, 1,791 bytes, a JSON object
- Fields
datametalinks- Rate-limit headers
- none sent (that doesn't mean unlimited)
Access-Control-Allow-Origin: * to us, so browser code can call it.Change log Measured by us
No changes seen since we started tracking on 2026-11-06. Each check compares the answer, the key requirement, the browser (CORS) header and the rate limit with the run before.
What the list says From the public-apis list
- Category
- Finance
- Auth
- No key
- CORS
- Not recorded Our call disagrees
- Docs link
- fiscaldata.treasury.gov answered 200 in 11679 ms on 2026-11-06 Measured
Fed Treasury is listed in Finance. Fed Treasury needs no key: you can call it without signing up. The list doesn't record whether it allows browser calls (CORS), so test that before building a browser-only app on it.
The list has 106 Finance APIs: 32 need no key, 69 need an API key and 5 use OAuth, and 53 of them are marked as allowing browser calls. 4 others have the same setup, such as Binlist, Indian Mutual Fund and Razorpay IFSC.
Fed Treasury and other Finance APIs
| Fact | Fed Treasury (this page) | AlQANAAS Gold Data | Bargo Congress Trades | Binlist | biquote |
|---|---|---|---|---|---|
| Key needed From the public-apis list | No key | No key | No key | No key | No key |
| CORS, as listed From the public-apis list | Not recorded | Yes | Yes | Not recorded | Yes |
| Our test call Measured by us | 2,514 ms | Not tested | Not tested | Not tested | Not tested |
| Browser call Measured by us | Allowed | — | — | — | — |
| Docs link Measured by us | Answered | Answered | Answered | Answered | Answered |
Questions
Does Fed Treasury need an API key?
Fed Treasury needs no key: you can call it without signing up.
Can I call Fed Treasury from JavaScript in the browser?
Yes. When we called it it sent Access-Control-Allow-Origin: *, so a web page can call it directly.
Where are the Fed Treasury docs?
At https://fiscaldata.treasury.gov/api-documentation/. When we checked, the link answered 200 in 11679 ms.
What are some alternatives to Fed Treasury?
Other Finance APIs in the list include Binlist, Indian Mutual Fund, Razorpay IFSC and WallstreetBets.
Listing from public-apis (github.com/marcelscruz/public-apis), MIT. Measurements are ours: how we check.