USAspending.gov Scraper — Federal Awards, Recipients & Aggregates
Query the official USAspending.gov API v2 for federal contracts, grants, and loans. Filter by agency, recipient, NAICS/PSC, or date, and pull recipient profiles, category totals, and state/county/district geography aggregates. No API key.
Key Features
Official USAspending.gov API v2 — no API key required
Award search across keywords, fiscal year/date range, agency, recipient, NAICS, PSC, amount, and award type
Six modes — award search, award detail, subawards, recipient profile, category totals, and geography
18 category-aggregation dimensions (recipient, NAICS, PSC, agency, county, district, CFDA, TAS, and more)
Geography aggregates by state, county, congressional district, and country with population and per-capita fields
Automatic date slicing (monthly/quarterly) for large multi-year result sets
Automatic award-type-code batching into valid API request groups
Exact award-detail and subaward lookup by generated award ID
Use Cases
- GovCon business development — find opportunities and incumbent contractors by NAICS, PSC, or agency
- Competitive intelligence on a competitor's award history and agency relationships
- Investigative journalism tracing federal spending to specific recipients or geographies
- Policy and academic research on spending trends by category, award type, or time period
- Due-diligence review of a recipient's federal award and spending history
- BI dashboards mapping federal spend by state, county, or congressional district
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
mode | string | No | Workflow: awards, awardDetail, subawards, recipient, byCategory, or geography (default: awards). |
keywords | array | No | Free-text USAspending keyword filters for award search. |
fiscalYear | number | No | Federal fiscal year (maps to Oct 1 – Sep 30 date range). |
awardTypes | array | No | USAspending award type codes; mixed groups are split into valid requests automatically. |
agency | string | No | Exact awarding or funding agency name filter. |
naicsCodes | array | No | NAICS codes an award must match. |
awardId | string | No | Generated award ID — required at runtime for awardDetail and subawards modes. |
maxItems | number | No | Max records saved; each row is one billed event (default: 100). |
Output Example
1{
2 "itemType": "award",
3 "title": "HT940216C0001 — HUMANA GOVERNMENT BUSINESS INC",
4 "date": "2016-02-01",
5 "awardId": "HT940216C0001",
6 "generatedId": "CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-",
7 "recipient": { "name": "HUMANA GOVERNMENT BUSINESS INC", "uei": "...", "duns": "..." },
8 "awardingAgency": "Department of Defense",
9 "fundingAgency": "Department of Defense",
10 "amount": 51269205263.03,
11 "awardType": "IDV_B_C",
12 "naics": { "code": "...", "description": "..." },
13 "placeOfPerformance": { "stateCode": "...", "state": "..." },
14 "awardTypeCodes": ["IDV_B_C"],
15 "url": "https://www.usaspending.gov/award/CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-"
16}
Pricing
Pay-per-event: $0.001 per saved record, charged once per successfully returned row. A ~1,000-record run is ~$1.00, and maxItems caps both volume and cost.
Tips
- Lead with NAICS or PSC codes for GovCon prospecting — they map directly to the products/services you sell and return the cleanest set of relevant awards.
- Use
byCategorymode to rank the top recipients or agencies for a market before pulling individual award detail. - Geography mode returns the first page (up to 100 rows) per date-range/award-type combination — narrow the filters rather than raising
maxItemsfor state/county/district roll-ups.
Frequently Asked Questions
Do I need an API key?
Why are mixed award-type codes split into multiple requests?
What geographic breakdowns are available?
How is a run priced?
Related Tools
ClinicalTrials.gov Scraper — Studies, Eligibility & Results
Search ClinicalTrials.gov studies, eligibility, and results.
Learn moreCourtListener Scraper — Opinions, Dockets & Full Text
US case law, dockets, and full opinion text for legal AI.
Learn moreSEC EDGAR Scraper — Filings, Full-Text & XBRL Financials
SEC filings, 10-K/10-Q text, and XBRL financials — RAG-ready.
Learn more