API · /treasury-api

US Treasury API

degraded 4,151 Subscribers

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.oanor.com/treasury-api
Get an API key Try in playground → Contact provider

Machine-readable spec so AI agents can integrate this API.

/api/treasury-api/openapi.json
/api/treasury-api/llms.txt

Discovery: GET /api/index.json lists every API.

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
status Full status page → · 213 probes/24h

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
Sign in to subscribe

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
Sign in to subscribe

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
Sign in to subscribe

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
Sign in to subscribe

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?
Sign up for free at oanor.com, generate an API key from the developer dashboard, and call US Treasury API with the x-oanor-key header. No credit card needed for the free tier.
What's the rate limit for US Treasury API?
Free tier allows 1 request per second. Paid plans scale up to 50 requests per second on the Mega tier. Hard limits return HTTP 429 above the quota — no surprise overage charges.
How much does US Treasury API cost?
US Treasury API has a free tier with 100 calls / month. Paid plans start at €6.20 / month with higher quotas and faster rate limits.
Can I cancel my subscription anytime?
Yes. Plans are billed monthly and you can cancel anytime from your billing dashboard. No long-term contracts and no cancellation fee.
Is US Treasury API GDPR-compliant?
All requests to US Treasury API go through our EU-based gateway. Your upstream API key never leaves our server and no personal data is shared with the upstream provider beyond the request you send.

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 in

New thread

/ 4000

📌 Pinned 🔒 Locked

·

· ·

/ 4000

🔒 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 in

Open new ticket

Describe what you need help with. The provider team gets an email and replies on the ticket page.

  • No tickets yet for this API.

Subscription active — calls can start immediately.

Send your first request —

Subscription active — copy a snippet and fire off your first call.