USAspending Scraper | Federal Contracts & Grants avatar

USAspending Scraper | Federal Contracts & Grants

Pricing

from $2.13 / 1,000 awards

Go to Apify Store
USAspending Scraper | Federal Contracts & Grants

USAspending Scraper | Federal Contracts & Grants

Get US federal contracts, grants, loans and IDVs from USAspending.gov: recipient name and UEI, award amount, awarding agency, dates, NAICS/PSC codes and place of performance. Filter by keyword, agency, recipient, date, state. No API key.

Pricing

from $2.13 / 1,000 awards

Rating

0.0

(0)

Developer

Flowo

Flowo

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

USAspending Scraper | Federal Contracts & Grants

This actor returns US federal awards from USAspending.gov, one row per award. Each row has the recipient name and UEI, the award amount and total outlays, the awarding and funding agency, start and end dates, NAICS/PSC codes and the place of performance. Search by keyword, agency, recipient, date, state, industry code or amount, without an API key.

What does USAspending Scraper do?

It searches the official USAspending.gov award search and returns flat, ready-to-use rows for contracts, IDVs, grants, loans, direct payments and other assistance. You can combine many keywords, recipients and award categories in one run. It suits government-contracting business developers, grant writers, journalists, researchers and compliance analysts who need to know who received federal money for what.

How to scrape USAspending.gov awards

How USAspending Scraper works: Validates agencies, dates and codes before the first request; Queries the official USAspending.gov award search API; Runs one search per keyword, recipient and category;

  1. Open the actor in Apify Console and go to the Input tab.
  2. Enter keywords, or leave them empty and filter by agency, recipient, state, NAICS or dates.
  3. Choose the award categories (default: contracts and grants).
  4. Set Max awards per search and, if needed, Max awards in total.
  5. Click Start and download the dataset as JSON, CSV or Excel.

How much does it cost to scrape USAspending?

Price per event by Apify plan:

EventFreeBronzeSilverGold and above
Award$2.50 per 1,000$2.25 per 1,000$2.00 per 1,000$1.75 per 1,000
Actor start$0.00005$0.00005$0.00005$0.00005

A test run with the API example input below returned 200 rows in 5 s.

You pay per award returned: $2.50 per 1,000 awards, plus a tiny start fee of $0.00005 per run (charged per GB of memory). Searches with no matches are free.

ScenarioAwardsCost on the Free plan
Quick look: default run, 100 awards for one keyword and category100about $0.25
One vendor's contracts and IDVs, 2 searches of 100200about $0.50
Two keywords × contracts and grants, 250 each1,000about $2.50
Market scan, 5,000 awards5,000about $12.50

Input

USAspending Scraper input example: Keywords, Award categories, State filter, Sort by, Max awards per search, Max awards in total

All fields are optional. An empty input returns the 100 largest contracts and the 100 largest grants since fiscal year 2008.

FieldWhat it does
queriesKeywords, each one a separate search (at least 3 characters)
awardCategoriescontracts, grants, idvs, loans, directPayments, other
agenciesTop-level awarding agencies by name or abbreviation (DOD, NASA, Department of Energy)
recipientsRecipient names or UEIs, each a separate search
startDate, endDateAction date range, YYYY-MM-DD, from 2007-10-01
statesTwo-letter state or territory codes
stateFilterplaceOfPerformance (default) or recipient: what states matches. IDVs have no place of performance, so they are always matched by recipient address
naicsCodes, pscCodesIndustry and product/service codes (contracts and IDVs only)
minAmount, maxAmountAward amount range in USD (loan value for loans)
sortByLargest amount first (default) or newest start date first
maxItemsPerSearch, maxItemsCaps per search (default 100) and per run (default 1000)
{
"queries": ["cybersecurity"],
"awardCategories": ["contracts"],
"startDate": "2023-10-01",
"endDate": "2024-09-30",
"maxItemsPerSearch": 500
}

What data can you extract from USAspending?

USAspending Scraper output example: Award ID, Recipient, Amount (USD), Category, Type

FieldDescription
awardId, id, urlAward ID, internal ID and USAspending page
query, recipientSearch, positionWhich search found the award and its rank
awardCategory, awardTypeCategory searched and award type
descriptionAward description
recipientName, recipientUei, recipientUrlRecipient and profile link
recipientCity, recipientState, recipientCountryRecipient location
amount, totalOutlays, loanValue, subsidyCostMoney (amount is empty for loans)
awardingAgency, awardingSubAgency, fundingAgency, fundingSubAgencyAgencies
startDate, endDate, baseObligationDate, updatedAtDates
naicsCode, pscCode, cfdaNumber, cfdaTitle (and descriptions)Classification codes
defCodesDisaster emergency fund codes
popCity, popState, popCountryCode, popZipPlace of performance

Example row (shortened):

{
"awardId": "HQ085722F8003",
"url": "https://www.usaspending.gov/award/CONT_AWD_HQ085722F8003_9700_HQ079617D0001_9700",
"query": "cybersecurity",
"position": 1,
"awardCategory": "contracts",
"awardType": "DELIVERY ORDER",
"recipientName": "AMENTUM TECHNOLOGY, INC.",
"recipientUei": "DTRJLHVLK8F4",
"amount": 524055138.18,
"totalOutlays": 169456787.25,
"currency": "USD",
"awardingAgency": "Department of Defense",
"awardingSubAgency": "Missile Defense Agency",
"startDate": "2022-09-05",
"endDate": "2025-09-01",
"naicsCode": "541712",
"pscCode": "AC23",
"popCity": "COLORADO SPRINGS",
"popState": "CO",
"scrapedAt": "2026-11-04T17:56:15.726Z"
}

Use cases

  • GovCon market scans: find the largest contracts for a topic, with NAICS/PSC codes and recipient UEI.
  • Vendor and competitor tracking (KYB): list every contract and IDV of a company or UEI.
  • Agency spending analysis: see what the Department of Energy or NASA awarded for a topic.
  • Grant prospecting: find grants of an agency performed in a given state, or awards to recipients located there (stateFilter: recipient).
  • New-award feed: sort by newest to follow fresh awards for a NAICS code and state.

Limitations

  • One row per award found by one search: the same award found by two keywords appears twice, once per keyword.
  • IDVs carry no place of performance in USAspending, so states always matches their recipient address.
  • Sub-awards, analytics and monitoring modes are not included.
  • Agencies must be top-level (parent departments); sub-agencies such as Army are rejected. Put them in keywords instead.
  • NAICS and PSC filters apply only to contracts and IDVs; other categories are skipped with a warning.
  • Sorting by newest returns at most 50,000 awards per search; sorting by amount has no such cap.
  • Search covers actions since 2007-10-01. Many fields can be empty, for example recipientUei for aggregated recipients and amount for loans (use loanValue).
  • The source can be slow (some answers take minutes); the actor retries failed requests.

Tips and troubleshooting

  • Each keyword × recipient × category is a separate search, so many values multiply the searches. Use maxItemsPerSearch and maxItems to control size.
  • For more than 100 awards raise maxItemsPerSearch; sort by amount to go past 50,000.
  • A run with 0 rows is valid: check dates (future dates usually return nothing) and state codes. If a place-of-performance state filter returns nothing, try stateFilter: recipient.
  • Keywords shorter than 3 characters, unknown agencies, reversed date ranges or min above max stop the run with a message before any request.
  • No proxy is needed.

API, MCP and integrations

Run the actor from your code with the same JSON input as in Console. Your API token is in Console → Settings → API & Integrations.

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("genial_candlestand/usaspending-federal-awards-scraper").call(run_input={
"queries": ["cybersecurity"],
"awardCategories": ["contracts", "grants"],
"maxItemsPerSearch": 100,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

Node.js (npm install apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('genial_candlestand/usaspending-federal-awards-scraper').call({
"queries": ["cybersecurity"],
"awardCategories": ["contracts", "grants"],
"maxItemsPerSearch": 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

HTTP — one request runs the actor and returns the results (runs up to 5 minutes; longer ones: run asynchronously):

curl -X POST "https://api.apify.com/v2/acts/genial_candlestand~usaspending-federal-awards-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"queries":["cybersecurity"],"awardCategories":["contracts","grants"],"maxItemsPerSearch":100}'

AI agents (MCP). Add the actor as a tool of the Apify MCP server. Claude Code:

$claude mcp add --transport http apify "https://mcp.apify.com?tools=genial_candlestand/usaspending-federal-awards-scraper"

Claude Desktop, Cursor or VS Code: {"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=genial_candlestand/usaspending-federal-awards-scraper"}}}. Then ask, for example:

  • "Find the 50 largest cybersecurity contracts awarded in fiscal year 2024"
  • "List all contracts and IDVs of Lockheed Martin from USAspending"
  • "Show USDA broadband grants performed in Texas"

Integrations. Run it on a schedule with Apify Schedules and send the results to Google Sheets, Slack, Zapier, Make, n8n or your webhook — see Apify integrations.

FAQ

Is it legal to scrape USAspending.gov?
USAspending is the official, public US government spending site. The actor reads public award data only; you are responsible for how you use it and for complying with applicable laws.

Do I need an API key?
No. The actor uses the open USAspending.gov API without login or key.

How is it different from other USAspending actors?
It returns 40 fields per row including UEI, NAICS/PSC with titles, outlays and loan values, accepts agency names in any case or as abbreviations, and prices at $2.50 per 1,000 awards with no result cap on the free plan.

Can I search by UEI?
Yes. Enter the 12-character UEI in Recipients, for example KDT2YLB34NT6.

Also useful