usaspending API for agents (unofficial) — JSON over curl | clify
USAspending.gov is the official U.S. federal spending database. This CLI calls its public API (api.usaspending.gov, no auth needed) to search awards and transactions, open award, recipient, agency, state and federal-account profiles, break spending down by category, and request bulk downloads.
Host: usaspending.gov. Call these verified read commands with plain curl; no install, key, or account. Use the public JSON API with plain curl. No install, key, account, or browser is needed. Example: curl 'https://clify-dev.netlify.app/sites.json'. Start with /search?q=weather, then call /abc/COMMAND. Responses are one JSON object. The hosted MCP and GitHub repo are also available.
Commands
search-transactions
Keyword search of contract transactions (award types A/B/C/D), with sorting and paging Params: keyword*, sort, order, page, api_limit
curl 'https://clify-dev.netlify.app/usaspending/search-transactions'
count-keyword-transactions
Count transactions matching a keyword, broken out by award group (contracts, grants, idvs, loans, direct_payments, other) Params: keyword*
curl 'https://clify-dev.netlify.app/usaspending/count-keyword-transactions'
summarize-keyword-spending
Total prime award count and obligated amount for a keyword search Params: keyword*
curl 'https://clify-dev.netlify.app/usaspending/summarize-keyword-spending'
search-state-awards
Top contract awards performed in a U.S. state within a date range, sorted by award amount Params: state*, start_date, end_date, order, page, api_limit
curl 'https://clify-dev.netlify.app/usaspending/search-state-awards'
list-federal-account-awards
Contract awards funded by a federal account (agency id + main account code), sorted by award amount Params: aid*, main*, order, page, api_limit
curl 'https://clify-dev.netlify.app/usaspending/list-federal-account-awards'
get-award
Full details of one award: amounts, dates, parent IDV, recipient, place of performance, contract data Params: award_id*
curl 'https://clify-dev.netlify.app/usaspending/get-award'
count-award-children
Count an award's transactions, subawards, or funding federal accounts Params: kind*, award_id*
curl 'https://clify-dev.netlify.app/usaspending/count-award-children'
list-award-federal-accounts
Federal accounts that funded an award, with obligated amounts and funding agency Params: award_id*, page, api_limit
curl 'https://clify-dev.netlify.app/usaspending/list-award-federal-accounts'
get-recipient
Recipient profile: name, UEI/DUNS, parents, business types, location, and transaction totals for a year Params: recipient_id*, year
curl 'https://clify-dev.netlify.app/usaspending/get-recipient'
recipient-spending-by-category
Top breakdown of a recipient's obligations by agency, sub-agency, NAICS, PSC, CFDA, federal account, country or state Params: category*, recipient_id*, start_date, end_date, page, api_limit
curl 'https://clify-dev.netlify.app/usaspending/recipient-spending-by-category'
recipient-spending-over-time
A recipient's obligations per fiscal year, quarter or month, split by award type Params: recipient_id*, group, start_date, end_date
curl 'https://clify-dev.netlify.app/usaspending/recipient-spending-over-time'
recipient-new-awards-over-time
Count of new awards to a recipient per fiscal year, quarter or month Params: recipient_id*, group, start_date, end_date
curl 'https://clify-dev.netlify.app/usaspending/recipient-new-awards-over-time'
get-state-profile
State spending profile: population, income, total prime award amount and count, per-capita amount Params: fips*, year
curl 'https://clify-dev.netlify.app/usaspending/get-state-profile?year=2026'
get-state-awards-by-type
A state's prime award amounts and counts by award type (contracts, grants, loans, direct payments, other) Params: fips*, year
curl 'https://clify-dev.netlify.app/usaspending/get-state-awards-by-type'
state-spending-by-category
Top breakdown of spending performed in a state by recipient, county, congressional district, agency, NAICS, PSC or CFDA Params: category*, state*, start_date, end_date, page, api_limit
curl 'https://clify-dev.netlify.app/usaspending/state-spending-by-category'
state-spending-over-time
Transaction obligations performed in a state per fiscal year, quarter or month Params: state*, group, start_date, end_date
curl 'https://clify-dev.netlify.app/usaspending/state-spending-over-time'
state-spending-by-geography
Map data: spending in a state per county or congressional district, with population and per-capita amount Params: state*, geo_layer, scope, start_date, end_date
curl 'https://clify-dev.netlify.app/usaspending/state-spending-by-geography'
list-agencies
All top-tier federal agencies with toptier_code, slug, budget authority, obligations and outlays Params: sort, order
curl 'https://clify-dev.netlify.app/usaspending/list-agencies?sort=agency_name&order=asc'
get-agency
Agency overview for a fiscal year: name, mission, website, sub-tier count, disaster codes Params: toptier_code*, fiscal_year
curl 'https://clify-dev.netlify.app/usaspending/get-agency?fiscal_year=2026'
get-agency-award-summary
An agency's award transaction count, total obligations and latest action date for a fiscal year Params: toptier_code*, fiscal_year
curl 'https://clify-dev.netlify.app/usaspending/get-agency-award-summary?fiscal_year=2026'
get-agency-new-award-count
Number of new awards an agency made in a fiscal year Params: toptier_code*, fiscal_year
curl 'https://clify-dev.netlify.app/usaspending/get-agency-new-award-count?fiscal_year=2026'
get-agency-obligations-by-category
An agency's award obligations for a fiscal year split by category (contracts, grants, loans, ...) Params: toptier_code*, fiscal_year
curl 'https://clify-dev.netlify.app/usaspending/get-agency-obligations-by-category?fiscal_year=2026'
list-agency-sub-agencies
An agency's sub-agencies and their offices, with obligations, transaction counts and new award counts Params: toptier_code*, fiscal_year, sort, order, page, api_limit
curl 'https://clify-dev.netlify.app/usaspending/list-agency-sub-agencies?fiscal_year=2026'
list-agency-sub-components
An agency's budgetary sub-components (bureaus) with obligations, outlays and budgetary resources Params: toptier_code*, fiscal_year, page
curl 'https://clify-dev.netlify.app/usaspending/list-agency-sub-components?fiscal_year=2026'
get-agency-budgetary-resources
An agency's budgetary resources, obligations and outlays per fiscal year, with obligations by period Params: toptier_code*
curl 'https://clify-dev.netlify.app/usaspending/get-agency-budgetary-resources'
list-federal-accounts
List or keyword-search federal (Treasury) accounts for a fiscal year, sorted by budgetary resources Params: keyword, fy, sort, direction, page, api_limit
curl 'https://clify-dev.netlify.app/usaspending/list-federal-accounts'
get-federal-account
Federal account details by account number (agency-main, e.g. 017-1804): title, parent agency, bureau, totals and child Treasury accounts for a fiscal year Params: account_number*, fiscal_year
curl 'https://clify-dev.netlify.app/usaspending/get-federal-account?fiscal_year=2026'
get-federal-account-fy-snapshot
A federal account's budgetary resources, obligations, outlays and balances for one fiscal year Params: account_id*, fiscal_year*
curl 'https://clify-dev.netlify.app/usaspending/get-federal-account-fy-snapshot'
request-award-download
Start a bulk CSV download job of prime award transactions matching a keyword; returns file_name for get-download-status Params: keyword*
curl 'https://clify-dev.netlify.app/usaspending/request-award-download'
get-download-status
Check a bulk download job; when status is 'ready', file_url points to the zip Params: file_name*
curl 'https://clify-dev.netlify.app/usaspending/get-download-status?file_name=PrimeTransactions_2026-10-18_H07M18S08454046.zip'
autocomplete-awarding-agency
Find awarding agencies and sub-agencies by partial name Params: search_text*, api_limit
curl 'https://clify-dev.netlify.app/usaspending/autocomplete-awarding-agency'
list-states
States and territories with FIPS code, postal code and name (FIPS is used by the state profile commands) Params: none
curl 'https://clify-dev.netlify.app/usaspending/list-states'
list-def-codes
Disaster Emergency Fund (DEFC) codes with public law, title and disaster type Params: none
curl 'https://clify-dev.netlify.app/usaspending/list-def-codes'
list-glossary
USAspending glossary of spending terms with plain-language and official definitions Params: api_limit
curl 'https://clify-dev.netlify.app/usaspending/list-glossary'