USAspending.gov Scraper: Awards, Recipients & Aggregates avatar

USAspending.gov Scraper: Awards, Recipients & Aggregates

Pricing

$1.00 / 1,000 federal spending records

Go to Apify Store
USAspending.gov Scraper: Awards, Recipients & Aggregates

USAspending.gov Scraper: Awards, Recipients & Aggregates

Search federal awards, subawards, recipients, NAICS/PSC filters, category totals, and state/county/district geography aggregates from the official public USAspending.gov API. No API key required.

Pricing

$1.00 / 1,000 federal spending records

Rating

0.0

(0)

Developer

Richard Feng

Richard Feng

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

19 hours ago

Last modified

Share

Export federal spending data from the public USAspending.gov API: award search results, exact award details, subawards, recipient profiles, category totals, and geography aggregates.

πŸ“– At a glance

FieldDetails
SourceOfficial USAspending.gov public API
AuthenticationNo API key required
CoverageU.S. federal awards, contracts, grants, recipients, subawards, agencies, NAICS/PSC classifications, and geography aggregates
GeographyState, county, congressional district, country, place of performance, and recipient location views
Best forUSAspending scraper, federal contracts API, grants data extraction, contractor market research, agency spend analysis, geographic funding dashboards
Pricing$0.001 per saved row

🎯 Features

FeatureDescription
Public APIUses USAspending.gov API v2 directly; no API key is required.
Award searchSearch by keywords, fiscal year/date range, agency, recipient text, NAICS, PSC, amount, and award type.
Award detailsFetch full award detail records by USAspending generated award ID.
SubawardsPull subaward rows for a parent generated award ID.
Recipient profileFetch recipient profile records by USAspending recipient hash.
Category aggregatesExport 18 aggregation categories including recipient, NAICS, PSC, agency, county, district, state, country, CFDA, account, object class, program activity, and TAS.
Geography aggregatesExport state, county, district, or country totals with population and per-capita fields when returned by the API.

πŸš€ Quick Start

{
"mode": "awards",
"keywords": ["diabetes"],
"fiscalYear": 2025,
"awardTypes": ["A", "B", "C", "D"],
"maxItems": 100
}

πŸ“‹ Input

FieldTypeRequiredDefaultDescription
modestringnoawardsawards, awardDetail, subawards, recipient, byCategory, or geography.
keywordsstring[]no-Free-text search terms.
fiscalYearintegerno-Federal fiscal year date range.
dateFrom, dateTostringno-Explicit YYYY-MM-DD range. Use together.
dateSlicestringnononeSplit large date ranges by month or quarter.
awardTypesstring[]noall groups for award searchUSAspending award type codes. Mixed groups are split into valid API requests.
agencystringno-Exact agency name.
agencyTypestringnoawardingawarding or funding.
agencyTierstringnotoptiertoptier or subtier.
naicsCodesstring[]no-Required NAICS codes.
excludeNaicsCodesstring[]no-NAICS codes to exclude.
pscCodesstring[]no-PSC codes.
recipientSearchstringno-Recipient text filter for award search.
minAmount, maxAmountnumberno-Award amount bounds.
awardIdstringawardDetail/subawards-USAspending generated award ID.
recipientIdstringrecipient-USAspending recipient hash ending in -C or -P.
categorystringbyCategoryrecipient_dunsAggregation category.
geoLayerstringgeographystatestate, county, district, or country.
scopestringgeographyplace_of_performanceplace_of_performance or recipient_location.
spendingLevelstringnotransactionsAggregation level for category/geography modes.
maxItemsintegerno100Maximum saved records.

πŸ“€ Output

Dataset rows are one of:

itemTypeDescription
awardNormalized award search row with recipient, agencies, amount, NAICS/PSC, performance location, dates, description, and URL.
awardDetailFull raw award detail record plus key display fields.
subawardSubaward row for a parent generated award ID.
recipientFull raw recipient profile record plus key display fields.
categoryAggregate category row with key, name, amount, count, and metadata.
geographyGeographic aggregate row with key, name, amount, population, and per-capita fields.

Example Item

{
"itemType": "award",
"awardId": "HT940216C0001",
"generatedId": "CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-",
"recipient": { "name": "HUMANA GOVERNMENT BUSINESS INC" },
"amount": 51269205263.03,
"awardingAgency": "Department of Defense",
"url": "https://www.usaspending.gov/award/CONT_AWD_HT940216C0001_9700_-NONE-_-NONE-"
}

🍳 Recipes

NAICS market scan

{
"mode": "awards",
"fiscalYear": 2025,
"naicsCodes": ["524114"],
"awardTypes": ["A", "B", "C", "D"],
"maxItems": 500
}

Use this for contractor business development and competitor research in a specific NAICS market.

Congressional district funding

{
"mode": "geography",
"geoLayer": "district",
"fiscalYear": 2025,
"keywords": ["broadband"],
"maxItems": 100
}

This produces BI-friendly district rows with spending totals and geographic keys.

Top recipients by category

{
"mode": "byCategory",
"category": "recipient_duns",
"fiscalYear": 2025,
"agency": "Department of Defense",
"maxItems": 100
}

Use category output to discover recipient IDs and then fetch exact recipient profiles.

πŸ’³ Pricing

This Actor uses pay-per-event pricing: $0.001 per saved row. A run fetching 1,000 rows costs approximately $1.00.

❓ FAQ

Do I need an API key?

No. USAspending.gov API v2 is public and does not require an API key.

Why are mixed award type codes split into multiple requests?

USAspending rejects a single award search containing codes from multiple award type groups. The Actor groups codes automatically and emits the matched awardTypeCodes on each row.

How do I fetch award details or subawards?

Run mode: "awards" first and use the returned generatedId as awardId for awardDetail or subawards.

USAspending.gov is an official public federal spending data source. This Actor uses the public API with conservative request spacing and stores the data returned by the API. Review USAspending.gov terms and your downstream compliance requirements before making legal, procurement, or investment decisions from exported data.


πŸ€– Use with AI agents

This Actor is callable as a tool by any MCP-capable agent β€” Claude, Cursor, VS Code β€” or by your own code, with no wrapper and nothing extra to deploy.

Connect over MCP

https://mcp.apify.com?tools=autofacts/usaspending-scraper

In a client that reads an mcpServers configuration block:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=autofacts/usaspending-scraper",
"headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
}
}
}

The agent reads this Actor's parameters and their descriptions straight from the input schema, and the hosted server infers the result field types from the dataset schema β€” so a model knows what to send and what comes back before it ever calls anything.

Or call the API directly

curl -X POST "https://api.apify.com/v2/acts/autofacts~usaspending-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"mode": "awards", "keywords": ["diabetes"], "fiscalYear": 2025, "awardTypes": ["A", "B", "C", "D"], "maxItems": 100}'

The response body is the dataset records described above.

🧰 Other Actors by autofacts

Apify only auto-recommends Actors in the same category, so here are the ones that actually pair with this scraper:

ActorWhat it's for
SEC EDGAR ScraperCompany filings, full text and XBRL financial facts
CourtListener ScraperUS court opinions and dockets
Clinical Trials ScraperStudies, sponsors and results from ClinicalTrials.gov
Universal Web PrinterTurn any URL or HTML into PDF, PNG, JPEG or WebP

All of them: apify.com/autofacts