USAspending.gov
The firehose of US federal spending, straight as JSON
USAspending is the official source for how the US government spends money, and its v2 REST API serves agencies, awards, and budget figures without a key. This toptier-agencies call is a simple GET, though many deeper queries expect POST bodies. The data is US federal public-domain.
GET https://api.usaspending.gov/api/v2/references/toptier_agencies/
{
"results": [
{
"agency_id": 1525,
"toptier_code": "247",
"abbreviation": "AAHC",
"agency_name": "400 Years of African-American History Commission",
"active_fy": "2026",
"agency_slug": "400-years-of-african-american-history-commission"
}
]
}curl "https://api.usaspending.gov/api/v2/references/toptier_agencies/"const res = await fetch("https://api.usaspending.gov/api/v2/references/toptier_agencies/");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://api.usaspending.gov/api/v2/references/toptier_agencies/")
print(res.json())BROWSER CALLS BLOCKED (NO CORS/HTTPS) — USE THE CURL SNIPPET
/references/toptier_agencies/PROBEDThe firehose of US federal spending, straight as JSON
/referencesReferences — documented GET route.
/references/1References details by ID (example: 1).
/references?limit=10References — documented GET route.
/references/search?q=testSearch by query parameters.
/docs/Docs — 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.
USAspending.gov: common questions
Is USAspending.gov free to use?
Yes — USAspending.gov is a free government API. Free tier: Free — no key required. Commercial use is allowed on the free tier.
Does USAspending.gov need an API key?
No — USAspending.gov needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).
Can I call USAspending.gov from the browser?
Not directly — USAspending.gov 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 USAspending.gov up right now?
As of our last scheduled check, USAspending.gov is unmonitored. We re-probe it every sweep — the status badge and uptime chart above always show the latest.