USAspending.gov's API at https://api.usaspending.gov/api/v2 tracks US federal spending: agencies, contracts, grants, and recipients.
None — no key, no signup. Every example runs as-is.
Full reference: https://api.usaspending.gov/docs/endpoints
Budget authority and obligations per agency.
curl 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",
"congressional_justification_url": null,
"active_fy": "2026",
"active_fq": "4",
"outlay_amount": 0,
"obligated_amount": 0,
"budget_authority_amount": 0,
"current_total_budget_authority_amount": 15495311418794.12,
"percentage_of_total_budget_authority": 0,
"agency_slug": "400-years-of-african-american-history-commission"
},
{
"agency_id": 1146,
"toptier_code": "310",
"abbreviation": "USAB",
"agency_name": "Access Board",
"congressional_justification_url": "https://www.access-board.gov/cj",
"active_fy": "2026",
"active_fq": "4",
"outlay_amount": 7779733.81,
"obligated_amount": 7799966.73,
"budget_authority_amount": 13574787.44,
"current_total_budget_authority_amount": 15495311418794.12,
"percentage_of_total_budget_authority": 8.76057735989434e-7,
"agency_slug": "access-board"
}
]
}
A POST with filters in the body.
curl -X POST https://api.usaspending.gov/api/v2/search/spending_by_award/ \
-H "Content-Type: application/json" \
-d '{"filters": {"keywords": ["broadband"], "award_type_codes": ["A", "B", "C", "D"], "time_period": [{"start_date": "2025-01-01", "end_date": "2025-12-31"}]}, "fields": ["Award ID", "Recipient Name", "Award Amount"], "limit": 2}'
{
"spending_level": "awards",
"limit": 2,
"results": [
{
"internal_id": 361855199,
"Award ID": "W91CRB25C5060",
"Recipient Name": "L3HARRIS GLOBAL COMMUNICATIONS, INC.",
"Award Amount": 5057692.5,
"generated_internal_id": "CONT_AWD_W91CRB25C5060_9700_-NONE-_-NONE-"
},
{
"internal_id": 353624298,
"Award ID": "W912CN25FA280",
"Recipient Name": "CDW GOVERNMENT LLC",
"Award Amount": 43187.78,
"generated_internal_id": "CONT_AWD_W912CN25FA280_9700_W52P1J16D0013_9700"
}
],
"page_metadata": {
"page": 1,
"hasNext": true,
"last_record_unique_id": 353624298,
"last_record_sort_value": "W912CN25FA280"
},
"messages": []
}