USAspending Scraper - Federal Contracts & Awards avatar

USAspending Scraper - Federal Contracts & Awards

Pricing

from $3.00 / 1,000 results

Go to Apify Store
USAspending Scraper - Federal Contracts & Awards

USAspending Scraper - Federal Contracts & Awards

Scrape and export USAspending federal awards as a clean JSON API: recipients, agencies, amounts, contract types, NAICS, CFDA, dates, and locations.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Evp Labs

Evp Labs

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

1

Monthly active users

7 hours ago

Last modified

Features

Limited permissions

Share

Pull US federal contract, grant, loan and assistance awards from the official USAspending.gov public API into clean flat JSON. Filter by recipient name, awarding agency, minimum amount and date window; every award is enriched with NAICS / CFDA codes, recipient UEI, recipient city/state/country and a link to its USAspending profile. No headless browser, no CAPTCHAs, no API key.

Why use it

  • GovCon business development teams: track competitors' contract wins, monitor an agency's largest obligations, and build account lists from real award data.
  • Federal contractors & consultants: watch a rival's portfolio (recipientSearch: "LOCKHEED") or find who holds the biggest awards in your NAICS market.
  • Journalists & watchdogs: get structured, citable records of where federal money goes, straight from the Treasury's official source.
  • Investors & analysts: monitor government-exposed companies and agencies without paying for a GovCon data subscription.

What it scrapes

StepTriggerSource
Award searchevery runPOST api.usaspending.gov/api/v2/search/spending_by_award/
Detail enrichmentincludeDetails: true (default)GET api.usaspending.gov/api/v2/awards/{id}/

All endpoints are the same public JSON API that powers usaspending.gov. No auth required.

Quick start input

Target source: usaspending.gov. Paste this JSON into the Actor input tab for a fast first run, or use it as the body of the Apify API run call:

{
"awardTypes": "contracts",
"agency": "Department of Defense",
"minAmount": 1000000,
"sortBy": "amount",
"includeDetails": true,
"maxItems": 10
}

The default input is intentionally small. Raise maxItems only after validating the first federal award records.

Input

FieldTypeDefaultDescription
recipientSearchstring""Recipient (contractor/grantee) name filter, e.g. "LOCKHEED", "BOOZ ALLEN". Empty = all recipients.
awardTypesenum"contracts"contracts (type codes A-D), grants (grants & cooperative agreements 02-05), or all (adds direct payments 06-08 and loans 09-11).
agencystring""Top-tier awarding agency name as on USAspending, e.g. "Department of Defense". Empty = all agencies.
startDatestring90 days agoStart of activity window YYYY-MM-DD. USAspending returns awards whose period of performance overlaps the window.
endDatestringtodayEnd of activity window YYYY-MM-DD.
minAmountintegernoneOnly awards with total obligation at or above this USD value.
sortByenum"amount"amount = largest obligations first, date = newest start dates first.
includeDetailsbooleantrueEnrich each award via its detail endpoint (adds NAICS/CFDA, UEI, recipient location).
maxItemsinteger10Maximum awards to output (1-500), strictly enforced.
proxyConfigurationobject{ "useApifyProxy": false }Optional. The USAspending API is public and needs no proxy.

Output

One flat JSON item is produced per federal award. Download the dataset as JSON, CSV, Excel, or HTML, or consume it through the Apify API.

Field reference

FieldTypeDescription
awardIdstringPublic award identifier (PIID for contracts, FAIN/URI for assistance)
generatedIdstringUSAspending generated unique award ID
recipientNamestringLegal name of the award recipient (contractor / grantee)
recipientUeistringUnique Entity Identifier (UEI) of the recipient
awardAmountnumberTotal obligated amount in USD
awardTypestringAward type description (e.g. DEFINITIVE CONTRACT, COOPERATIVE AGREEMENT)
awardCategorystringUSAspending award category (contract, grant, direct payment, loan, idv)
startDatestringPeriod of performance start date
endDatestringPeriod of performance current end date
awardingAgencystringTop-tier awarding agency
awardingSubAgencystringSub-tier awarding agency / office
fundingAgencystringTop-tier funding agency
fundingSubAgencystringSub-tier funding agency / office
descriptionstringAward description / purpose text
naicsCodestringNAICS industry code (contracts only)
naicsDescriptionstringNAICS industry description (contracts only)
pscCodestringProduct or Service Code (contracts only)
cfdaNumberstringAssistance Listing (CFDA) number (grants and assistance only)
cfdaTitlestringAssistance Listing (CFDA) program title (grants and assistance only)
recipientCitystringRecipient city
recipientStatestringRecipient state name
recipientCountrystringRecipient country
urlstringAward profile page on usaspending.gov

Real sample output (latest live dataset)

{
"awardId": "DENA0003525",
"generatedId": "CONT_AWD_DENA0003525_8900_-NONE-_-NONE-",
"recipientName": "NATIONAL TECHNOLOGY & ENGINEERING SOLUTIONS OF SANDIA, LLC",
"recipientUei": "LUJEPCRRT377",
"awardAmount": 44093914875.26,
"awardType": "DEFINITIVE CONTRACT",
"awardCategory": "contract",
"startDate": "2017-01-18",
"endDate": "2027-04-30",
"awardingAgency": "Department of Energy",
"awardingSubAgency": "Department of Energy",
"fundingAgency": "Department of Energy",
"fundingSubAgency": "Department of Energy",
"description": "IGF::CL,CT::IGF CONTRACT AWARD DE-NA0003525 TO THE NATIONAL TECHNOLOGY&ENGINEERING SOLUTIONS OF SANDIA, LLC (NTESS) FOR THE MANAGEMENT AND OPERATION OF THE DEPARTMENT OF ENERGY, NATIONAL NUCLEAR SECURITY ADMINISTRATION'S SANDIA NATIONAL LABORATORIES (SNL)",
"naicsCode": "561210",
"naicsDescription": "FACILITIES SUPPORT SERVICES",
"pscCode": "M1JZ",
"recipientCity": "ALBUQUERQUE",
"recipientState": "NEW MEXICO",
"recipientCountry": "UNITED STATES",
"url": "https://www.usaspending.gov/award/CONT_AWD_DENA0003525_8900_-NONE-_-NONE-"
}

Use with AI agents (MCP), n8n, Make, and Python

  • AI agents / MCP: add https://mcp.apify.com/?tools=evpp/usaspending to your MCP client, then ask the agent to scrape USAspending data or export the latest dataset.
  • n8n / Make / Zapier: run Actor evpp/usaspending with the quick-start input, then map dataset items into Google Sheets, a CRM, a webhook, or a monitoring workflow.
  • Python: install the client with pip install apify-client and run:
import json
from apify_client import ApifyClient
client = ApifyClient()
run_input = json.loads('''{"awardTypes":"contracts","agency":"Department of Defense","minAmount":1000000,"sortBy":"amount","includeDetails":true,"maxItems":10}''')
run = client.actor("evpp/usaspending").call(run_input=run_input)
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(items[0])

The same dataset is available as JSON, CSV, Excel, XML, RSS, and HTML through the Apify API.

Cost

The Actor makes lightweight JSON calls only: about 1 search call plus 1 detail call per award. A 10-item run finishes in seconds on minimal memory (256 MB). At the pay-per-event price of $3 per 1,000 results, monitoring the top-100 awards of a competitor or agency every day costs cents per month.

FAQ

Is this official data? Yes. It calls the same public API (api.usaspending.gov) that powers usaspending.gov, the Treasury Department's official open-data source mandated by the DATA Act. No key, no login.

Why did a contract signed in 2016 show up in my 2025 date window? The time_period filter matches awards whose period of performance overlaps the window, so large multi-year contracts that are still active (and still being funded) correctly appear.

How do I track one contractor? Set recipientSearch to a distinctive part of the recipient's official name, e.g. "LOCKHEED" or "LEIDOS", and optionally narrow with agency and minAmount.

How do I get only big new contracts? Combine awardTypes: "contracts", minAmount: 10000000, sortBy: "date" and a short startDate/endDate window.

Why are naicsCode or cfdaNumber missing on some items? NAICS/PSC only exist on procurement contracts; CFDA only on assistance awards. Awards without a detail record keep their search fields. Empty fields are omitted from output.

Does it need proxies? No. Defaults run direct against the public API. proxyConfiguration exists for users who want their own pool.