US national debt to the penny
API · /treasury-api
US Treasury API
US Treasury fiscal data as an API, live from the official api.fiscaldata.treasury.gov. Track the US national debt to the penny (total public debt outstanding, debt held by the public and intragovernmental holdings) for the latest day or any date range; get the average interest rates the US government pays on its securities (Treasury Bills, Notes, Bonds, TIPS and more); and look up the official US Treasury reporting exchange rates for ~170 world currencies, used to convert foreign currency to USD for government reporting. Ideal for debt clocks, macro-economic dashboards, fintech, research and data journalism. Public-domain US Treasury data.
API health
degraded- Uptime
- 98.59%
- Server probes · 24h
- Avg latency
- 382 ms
- Server probes · 24h
- Subscribers
- 4,151
- active
- Total calls
- 213
- last 7 days
Pricing
Pick a tier — billed monthly, cancel anytime.
Free
Free
- 3,700 calls / month
- 2 requests / second
- Hard cap (429 above quota, no overage)
- 3,700 calls/month
- 2 req/sec
- Debt + rates + exchange rates
- No credit card
Starter
€6.20 /month
- 51,000 calls / month
- 8 requests / second
- Hard cap (429 above quota, no overage)
- 51k calls/month
- 8 req/sec
- Date-range history + filters
- Email support
Pro
€16.20 /month
- 260,000 calls / month
- 20 requests / second
- Hard cap (429 above quota, no overage)
- 260k calls/month
- 20 req/sec
- Dashboards / fintech / research
- Priority support
Mega
€41.00 /month
- 1,290,000 calls / month
- 50 requests / second
- Hard cap (429 above quota, no overage)
- 1.29M calls/month
- 50 req/sec
- Macro-data platform
- Dedicated SLA
Built by
Related APIs
Other APIs with overlapping tags.
Currency API
Live & historical foreign-exchange rates from the European Central Bank: latest rates, historical lookups, time-series and currency conversion across 30+ currencies.
api.oanor.com/currency-api
US Government Spending API
US federal government spending as an API, live from the official USAspending.gov (US Treasury). Search federal awards — contracts, grants, loans and direct payments — by keyword, recipient, award type and fiscal year, ranked by amount, with the recipient name, dollar amount, awarding agency, description and award dates. Rank the top recipients of federal money for any search, and list and inspect the 100+ top-tier federal agencies with their budgetary resources. Ideal for government-transparency, investigative journalism, contractor intelligence, grants research, GovCon and policy-analysis applications. Public-domain US Treasury data.
api.oanor.com/usaspending-api
Stock Exchanges API
The official ISO 10383 Market Identifier Code (MIC) registry as an API — 2,800+ stock exchanges and trading venues worldwide. Look up a venue by its MIC (e.g. XNAS, XLON), search by name, country, status or market category, and see the operating MIC, legal entity, LEI, city, website and active/expired status. Ideal for fintech, trade reporting, MiFID II compliance and broker tooling.
api.oanor.com/exchanges-api
Finance API
Real-time quotes, historical price candles (OHLCV) and symbol search for stocks, ETFs, indices, foreign exchange and cryptocurrencies. Covers global markets — look up any ticker, index (^GSPC), FX pair (EURUSD=X) or coin (BTC-USD).
api.oanor.com/finance-api
Frequently asked questions
Quick answers about pricing, quotas, and integration.
How do I get an API key for US Treasury API?
What's the rate limit for US Treasury API?
How much does US Treasury API cost?
Can I cancel my subscription anytime?
Is US Treasury API GDPR-compliant?
Pick an endpoint from the list on the left to see its details and try it.
Code snippets
Sign up to get an API key, then call any path under your slug.
curl https://api.oanor.com/treasury-api/SOME_PATH \
-H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/treasury-api/SOME_PATH", {
headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/treasury-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
"https://api.oanor.com/treasury-api/SOME_PATH",
headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())
Ratings
Sign in to rate.
No reviews yet.
Discussion
Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.
Sign in to start a thread or reply.
Sign inNew thread
·
-
Provider answer
🔒 This thread is locked — no new replies.
-
·
- No threads yet — start the discussion.
Support
Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.
Sign in to open a support ticket.
Sign inOpen new ticket
Describe what you need help with. The provider team gets an email and replies on the ticket page.
-
·
Urgent - No tickets yet for this API.