Anysite now covers USASpending.gov — the official open data portal for U.S. federal spending maintained by the Department of the Treasury. The integration ships 11 endpoints across agencies, awards, autocomplete, and recipients, giving you programmatic access to every contract, grant, loan, and direct payment in the federal database without Treasury credentials or a USASpending developer account.
What the API covers
The USASpending API is the authoritative machine-readable record of federal financial activity. From a single Anysite key you can now:
- Look up any cabinet-level agency by toptier code — name, mission, website, subtier count, DEF codes, and fiscal-year budget authority.
- Search and list agencies with outlay, obligation, and budget authority totals, filterable by name or abbreviation.
- Resolve text prefixes into agencies, recipients, NAICS codes, PSC codes, or CFDA program names via autocomplete.
- Retrieve full award records by generated unique award ID — covering contracts, grants, loans, IDVs, and other assistance.
- Trace federal account funding records per fiscal quarter for any award.
- Search awards by keyword and award type code, with optional date range filters.
- Count awards by category (contracts, grants, loans, IDVs, direct payments, other) before fetching the full result set.
- List subawards under a prime award to surface downstream subcontracting relationships.
- Pull all contract modifications (transactions) for an award in reverse-chronological order.
- Get full recipient profiles by recipient ID — parent/child hierarchy, business types, location, and lifetime federal spending.
- Search recipients ranked by total spending received, filterable by keyword and award type.
What you can build
The most immediate use cases are government contract intelligence and recipient due diligence. Search by keyword and award type codes to surface active federal contracts in an industry, then pull the full award record to get the recipient, awarding agency, place of performance, and period details. Use the subaward and transaction endpoints to follow the money downstream and track contract modifications over time.
For compliance and vendor onboarding, resolve a company name or UEI through recipient search, get its full profile — parent hierarchy, business type classifications, UEI, DUNS, and lifetime spending — and cross-reference with its subaward history to understand downstream relationships.
For budget research, the agency endpoints give you outlay, obligation, and budget authority figures across all toptier agencies, comparable by fiscal year. The autocomplete endpoint lets you build clean CFDA-driven grant filters without memorizing program numbers.
How to use it
All 11 endpoints accept POST requests to https://api.anysite.io with your access-token header — the same interface as every other Anysite source. Here is a search for active cybersecurity contracts:
curl https://api.anysite.io/api/usaspending/awards/search -H "access-token: YOUR_KEY" -H "Content-Type: application/json" -d '{
"keywords": ["cybersecurity"],
"award_type_codes": ["A","B","C","D"],
"count": 10,
"start_date": "2024-01-01"
}'
Use /api/usaspending/awards/search/count first to check how many results exist per category before pulling the full set — it returns integer counts by award type in a single fast call.
All 11 endpoints are available on every Anysite plan — REST, CLI, MCP (Claude, Cursor, ChatGPT), and n8n nodes. The USASpending endpoint page has the complete parameter reference, more code examples, and plan details.