US Contracts Scraper avatar

US Contracts Scraper

Pricing

from $2.10 / 1,000 results

Go to Apify Store
US Contracts Scraper

US Contracts Scraper

Scrape federal contract awards from USAspending.gov. Search by keyword, agency, NAICS code, and value. Get award amounts, recipients, dates, and more.

Pricing

from $2.10 / 1,000 results

Rating

0.0

(0)

Developer

Artificially

Artificially

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

4 hours ago

Last modified

Share

US Government Contracts Scraper - Enhanced

Scrape federal contract awards from USAspending.gov with contractor profiles, subawards, and contract analytics. Access billions of dollars in government procurement data.

What's new (September 2026)

This Actor was rebuilt. If you tried an earlier version, here's what changed:

  • NAICS, PSC, set-aside, competition and contract value fields restored after USAspending API changes
  • Contractor profiles now use each contractor's own contracts; large runs are about 3x faster, survive API outages and stop cleanly before the run timeout
  • You only pay for complete results: failed, blocked and empty results are free

Use with AI agents (MCP)

This actor works as a tool for AI agents through Apify's MCP server at https://mcp.apify.com, so Claude, ChatGPT, Cursor and other MCP clients can look up US federal contract awards directly. For agents, set "compactOutput": true and keep maxContracts small (5-20) to get short, token-friendly results.

Quick setup (sign in with your Apify account when asked):

  • Claude (claude.ai or Claude Desktop): Settings → Connectors → Add custom connector, and paste https://mcp.apify.com?tools=artificially/us-contracts-scraper
  • Claude Code or Cursor via the Apify CLI (latest version, apify upgrade): apify mcp install claude-code --tools artificially/us-contracts-scraper (use cursor instead of claude-code for Cursor)
  • Any MCP client (Cursor, VS Code, Windsurf):
{
"mcpServers": {
"apify": { "url": "https://mcp.apify.com?tools=artificially/us-contracts-scraper" }
}
}

Try asking:

  • "Which companies won the largest US federal cybersecurity contracts last year?"
  • "Find federal contracts awarded to Palantir with amounts, agencies and dates."

Features

  • Keyword Search: Find contracts by description or title
  • Agency Filter: Filter by federal agency
  • NAICS Codes: Search by industry classification
  • Value Range: Filter by contract amount
  • Date Range: Specify award period

Set-Aside Filters (NEW)

  • Small Business: Filter by SBA small business set-asides
  • 8(a) Program: Find 8(a) certified contractor awards
  • HUBZone: HUBZone certified businesses
  • WOSB: Women-Owned Small Business
  • SDVOSB: Service-Disabled Veteran-Owned
  • ISBEE: Indian Small Business Economic Enterprise

Contractor Enrichment (NEW)

  • Contractor Profile: Detailed business info, CAGE code, DUNS
  • Business Types: Small business certifications and categories
  • Location Details: Full address with congressional district
  • Contract History: See contractor's other federal awards

Contract Analytics (NEW)

  • Subawards Tracking: View subcontractor awards under prime contracts
  • Transaction History: All modifications and funding actions
  • Contract Health: Duration analysis and modification tracking
  • Related Contracts: Find other awards to same contractor

Use Cases

  • Government contracting business intelligence
  • Small business set-aside opportunity tracking
  • Contractor vetting and due diligence
  • Subcontracting opportunity discovery
  • Agency spending pattern analysis
  • Build procurement databases for analysis

Input

FieldTypeRequiredDefaultDescription
searchQuerystringNo-Keyword search in contract descriptions (min. 3 characters)
agencystringNo-Awarding top-tier agency name, exactly as on USAspending.gov
naicsCodesarrayNo-NAICS industry codes
pscCodesarrayNo-Product and Service Codes
maxContractsnumberNo100Maximum contracts (1-1000)
minValuenumberNo-Minimum award amount (USD)
maxValuenumberNo-Maximum award amount (USD)
dateFromstringNo2020-01-01Contracts with activity on or after this date (earliest 2007-10-01)
dateTostringNoTodayContracts with activity on or before this date
setAsideTypestringNo-Small business set-aside filter (SBA, 8A, HUB, WOSB, SDVOSB, ISBEE)
includeContractorProfilebooleanNotrueContractor business types, certifications, contract count, top agencies/NAICS, recent contracts
includeSubawardsbooleanNofalseFetch subcontractor awards (largest first)
maxSubawardsnumberNo10Subawards per contract
includeTransactionHistorybooleanNofalseUp to 100 most recent modifications per contract
includeRelatedContractsbooleanNofalseLargest other contracts awarded to the same contractor
maxRelatedContractsnumberNo5Related contracts per contract
compactOutputbooleanNofalseSlim items with only key fields (see below); recommended for AI agents

Results are sorted by award amount, largest first.

Example Input

{
"searchQuery": "cybersecurity",
"agency": "Department of Defense",
"setAsideType": "SBA",
"maxContracts": 50,
"includeContractorProfile": true,
"includeSubawards": true,
"dateFrom": "2023-01-01"
}

Output

Each contract produces one dataset item (abbreviated):

{
"awardId": "CONT_AWD_36C10B23F0346_3600_47QSWA18D008Q_4732",
"piid": "36C10B23F0346",
"title": "VA CYBERSECURITY OPERATIONS CENTER NEXT GENERATION II (CSOC NG II) SUPPORT",
"description": "VA CYBERSECURITY OPERATIONS CENTER NEXT GENERATION II (CSOC NG II) SUPPORT",
"awardingAgency": "Department of Veterans Affairs",
"awardingSubAgency": "Department of Veterans Affairs",
"awardingOffice": "TECHNOLOGY ACQUISITION CENTER NJ (36C10B)",
"fundingAgency": "Department of Veterans Affairs",
"recipientName": "MAVERIS LLC",
"recipientUei": "NEKWPBM5VT33",
"recipientLocation": { "addressLine1": "8180 GREENSBORO DR STE 1000", "city": "MCLEAN", "stateCode": "VA", "zip": "22102", "countryCode": "USA", "congressionalDistrict": "11" },
"awardAmount": 217817200.48,
"obligatedAmount": 217817200.48,
"potentialValue": 331158125.88,
"baseAndExercisedOptionsValue": 217817200.48,
"startDate": "2023-09-29",
"endDate": "2027-09-28",
"potentialEndDate": "2028-12-28",
"signedDate": "2023-09-28",
"naicsCode": "541511",
"naicsDescription": "CUSTOM COMPUTER PROGRAMMING SERVICES",
"pscCode": "R499",
"pscDescription": "SUPPORT- PROFESSIONAL: OTHER",
"contractType": "DELIVERY ORDER",
"pricingType": "FIRM FIXED PRICE",
"parentAwardId": "CONT_IDV_47QSWA18D008Q_4732",
"setAsideType": "SERVICE DISABLED VETERAN OWNED SMALL BUSINESS SET-ASIDE",
"setAsideCode": "SDVOSBC",
"competitionType": "FULL AND OPEN COMPETITION",
"numberOfOffers": 3,
"isCompetitive": true,
"subawardCount": 25,
"totalSubawardAmount": 76546267.95,
"placeOfPerformance": { "city": "MARTINSBURG", "stateCode": "WV", "zip": "25401" },
"contractDurationDays": 1460,
"contractHealth": "on-track",
"contractorProfile": {
"name": "MAVERIS LLC",
"uei": "NEKWPBM5VT33",
"duns": "079819668",
"businessTypes": ["category_business", "limited_liability_corporation", "other_than_small_business"],
"isSmallBusiness": false,
"totalContractsWon": 7,
"totalContractValue": 72469485.62,
"topAgencies": [{ "name": "Department of Veterans Affairs", "value": 349049380.6 }],
"topNaicsCodes": [{ "code": "541511", "value": 262873842.12 }],
"recentContracts": [{ "awardId": "CONT_AWD_...", "title": "...", "agency": "...", "amount": 13151106.84, "startDate": "2024-11-06", "url": "..." }]
},
"subawards": [{ "subawardNumber": "PRI-0004-S11", "recipientName": "VCH PARTNERS LLC", "amount": 20130362.28, "description": "PROFESSIONAL SERVICES" }],
"transactionHistory": [{ "modificationNumber": "P00012", "actionDate": "2026-08-20", "actionType": "C", "federalActionObligation": 1234567, "description": "..." }],
"relatedContracts": [{ "awardId": "CONT_AWD_...", "title": "...", "amount": 49813661.38 }],
"url": "https://www.usaspending.gov/award/CONT_AWD_36C10B23F0346_3600_47QSWA18D008Q_4732",
"scrapedAt": "2026-09-23T09:02:15.368Z"
}

contractHealth is one of completed, modified-heavily, early-stage, on-track. contractorProfile.totalContractsWon counts all contract awards since 2007-10-01; totalContractValue is USAspending's trailing 12-month total. Fields not reported by USAspending are null.

A SUMMARY record (counts of saved and skipped contracts) and a FAILED_REQUESTS record (API lookups that failed after retries) are written to the run's key-value store.

Compact output

With "compactOutput": true each item keeps only the key decision fields: awardId, piid, title, awardingAgency, awardingSubAgency, recipientName, recipientUei, recipientState, awardAmount, potentialValue, startDate, endDate, potentialEndDate, naicsCode, naicsDescription, pscCode, awardType, setAsideType, competitionType, numberOfOffers, placeOfPerformanceState, subawardCount, totalSubawardAmount, transactionCount, relatedContractsCount, contractorTotalContractsWon, contractorIsSmallBusiness, contractHealth, url, scrapedAt. Descriptions, full contractor profiles, subaward lists, transaction history and related contract lists are left out (counts are kept).

Cost

This actor uses pay-per-result pricing; see the Pricing tab for current rates.

You only pay for valid results: contracts whose details could not be loaded are skipped and not charged. The run stops cleanly when your maximum cost per run is reached.

No API key required - Uses USAspending.gov's public API.

Tips

  1. Set-aside codes:

    • SBA - Small Business Set-Aside (total and partial)
    • 8A - 8(a) Business Development (competitive and sole source)
    • HUB - HUBZone (set-aside and sole source)
    • WOSB - Women-Owned Small Business (incl. EDWOSB)
    • SDVOSB - Service-Disabled Veteran-Owned (set-aside and sole source)
    • ISBEE - Indian Small Business Economic Enterprise
  2. Contractor enrichment: Enable includeContractorProfile to get business types and certifications

  3. Subcontracting: Large prime contracts often have significant subcontracting - enable includeSubawards to discover these opportunities

  4. Contract tracking: Use includeTransactionHistory to see all modifications and funding changes

Data Source

Data from USAspending.gov, the official source for federal spending data.

Support

  • Built by: Artificially
  • Issues: Report bugs or request features via Apify Console

Feedback

If this Actor saved you time, a short review on its Store page helps a lot and helps other people find it. Found a problem or missing a field? Open an issue on the Issues tab and we'll look at it quickly.