US Federal Contracts Scraper (SAM + awards, hard cap) avatar

US Federal Contracts Scraper (SAM + awards, hard cap)

Pricing

from $1.60 / 1,000 contract record delivereds

Go to Apify Store
US Federal Contracts Scraper (SAM + awards, hard cap)

US Federal Contracts Scraper (SAM + awards, hard cap)

Join public U.S. federal contract opportunities from SAM.gov with USAspending.gov award history: agency, NAICS/PSC, set-aside, deadlines, value and incumbent company names. User-supplied SAM API key; awards work with no key. Hard maxItems cap. No personal contacts. Pay per record.

Pricing

from $1.60 / 1,000 contract record delivereds

Rating

0.0

(0)

Developer

ScrapeMole

ScrapeMole

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

US Federal Contracts: SAM.gov opportunities + USAspending awards

Get public U.S. federal contract data in one LLM-ready row: the notice (when you add a free SAM.gov API key), the awarding agency, NAICS and PSC codes, set-aside, deadlines, value, and matched past awards with incumbent company names. Award history comes from the official USAspending.gov API and needs no key. No login to SAM for awards. Export to JSON, CSV, Excel or Google Sheets, or call it from your app, n8n, Make, Zapier or an AI agent.

Built for GovCon sales, bid writers and agents that need a reliable contracts feed — and for anyone already calling a SAM-only Actor who would rather keep the same input and also see who won last time.

What you get

One dataset row per opportunity (SAM path) or per award (no-key path):

FieldMeaning
recordTypeopportunity or award
title, descriptionPublic title and description (emails and phone numbers redacted)
agency, subAgency, officeAwarding organisation
naics, pscIndustry and product/service codes
setAsideSet-aside, when the source publishes it
postedDate, responseDeadline, startDate, endDateDates
valueAward or estimated amount in USD
incumbentsCompany names only (recipient and parent on matched awards)
awardsNested past awards: PIID, company, amount, dates, NAICS/PSC, USAspending URL
noticeUrl, awardUrlLinks to SAM.gov and USAspending.gov
solicitationNumber, piid, noticeIdIdentifiers for joins

Error rows (status: "error" with errorCode / errorMessage) are free. You are not charged for empty searches or invalid filters.

This Actor does not output contracting-officer names, emails, phone numbers, corporate-officer lists, or street addresses. Incumbents are company-level names only. That is intentional.

Switching from another SAM Actor

Already calling fortuitous_pirate/sam-gov-scraper or jungle_synthesizer/samgov-scraper? Change the Actor ID to scrapemole/us-gov-contracts-scraper and keep your search input. Add samApiKey if you want live opportunities; without it you still get USAspending awards.

Coming fromTheir input that works here unchanged
fortuitous_pirate/sam-gov-scraper (40 users/30d, 0 reviews, 10.5% fail, $3/1K as of 14 Nov 2026)keywords / keywordList, keywordMode, naicsCodes, pscCodes, setAsideTypes, opportunityTypes, agencies, states, activeOnly, status, postedWithinDays, postedFrom, postedTo, solicitationNumbers, noticeIds, maxOpportunities
jungle_synthesizer/samgov-scraper (13 users/30d, 1.0★, 32.9% fail as of 14 Nov 2026)keyword, naicsCodes, opportunityType, setAsideType, postedFrom, postedTo, activeOnly, agency, state, maxItems

Monitor webhooks, attachment file downloads, and jungle_synthesizer’s exclusions / wage / assistance dataType values are accepted so saved inputs still validate, and ignored. This Actor does not download files or store the sp_contact field.

Without a SAM key, the no-key path is a feature, not a failure: RUN_SUMMARY.sam.skipped is true and award rows are still delivered.

{
"keywords": ["cybersecurity"],
"naicsCodes": ["541512"],
"maxItems": 50,
"includeAwards": true
}

With a free SAM.gov key (Account Details on SAM.gov):

{
"keyword": "janitorial",
"naicsCodes": ["561720"],
"setAsideType": "SBA",
"postedWithinDays": 30,
"maxItems": 50,
"samApiKey": "YOUR_SAM_PUBLIC_API_KEY"
}

Built for AI agents

Rows are flat JSON with stable field names, ISO dates, numeric value, and nested awards / incumbents already joined — no HTML to parse and no personal contacts to filter later. A hard maxItems cap is reserved before charge, so a tool-calling agent cannot overrun a budget. Error rows are free and machine-readable (errorCode). RUN_SUMMARY says whether SAM was skipped for lack of a key. The Actor is pay-per-record, has no start fee beyond Apify’s $0.00005 platform event, and does not escalate to paid residential proxies.

How it works

  • USAspending.gov (always, when includeAwards is on): official /api/v2/search/spending_by_award plus award detail for NAICS, PSC, set-aside and solicitation id. No API key.
  • SAM.gov (optional): official Opportunities v2 search. You supply your own free public API key as the secret input samApiKey. If the key is missing or rejected, the Actor logs that clearly and falls back to awards.
  • Matched awards are attached to each opportunity by solicitation number when possible, otherwise by NAICS and agency.
  • A hard maxItems cap is reserved across the run. The Actor also stops about 60 seconds before the run timeout and keeps the records it already has.
  • Apify Proxy uses datacenter / AUTO only. Official APIs do not need residential IPs, and we will not switch to them.

Input

FieldNotes
keywordsOne or more search phrases. keyword, keywordList, query and q also work.
naicsCodes / pscCodesIndustry and product/service codes.
agencies / statesAwarding agency name, place-of-performance state.
setAsideTypes / opportunityTypesSAM filters when a key is set.
postedFrom / postedTo / postedWithinDaysDates: YYYY-MM-DD, today, or 7 days. Default window is 365 days.
maxItemsHard run cap. Default 100. maxOpportunities and limit also work.
samApiKeySecret. Free key from SAM.gov Account Details. Leave empty for the awards-only path.
includeAwardsDefault true. Required (default) when no SAM key is set.
maxAwardsPerNoticeCap on nested awards per opportunity. Default 5.

Pricing

$3.00 per 1,000 records on the Free plan (PPE $0.003 per delivered opportunity or award row). Nested awards on an opportunity row are not billed separately. Higher Apify plan tiers pay less. The platform start event is $0.00005. Error rows are never charged.

Limits and honesty

  • Live opportunities require a free SAM.gov public API key that you create in your own account. We cannot invent one for you, and we never log or store it in the dataset.
  • SAM’s official API allows at most a one-year posted-date window per request; longer ranges are split automatically.
  • “Incumbent” is a best-effort match from public USAspending awards (solicitation number, then NAICS + agency). It is not a legal determination of the current contractor.
  • USAspending list search often omits NAICS/PSC; we fetch the official award detail to fill them. If a detail call fails, the list row is still delivered.
  • This Actor only uses public official APIs. It does not collect personal contacts.

Example output (award, no-key path)

{
"status": "ok",
"recordType": "award",
"source": "usaspending",
"title": "Enterprise IT-related services and technical solutions that span cybersecurity and IT management.",
"agency": "General Services Administration",
"subAgency": "Federal Acquisition Service",
"naics": [{ "code": "541512", "description": "Computer Systems Design Services" }],
"psc": [{ "code": "D318", "description": "IT SOLUTIONS" }],
"setAside": null,
"solicitationNumber": "47QFCA20R0015",
"piid": "47QFCA20F0049",
"value": 396604521.78,
"currency": "USD",
"startDate": "2020-09-25",
"endDate": "2025-10-24",
"recipientName": "GENERAL DYNAMICS INFORMATION TECHNOLOGY, INC.",
"incumbents": ["GENERAL DYNAMICS INFORMATION TECHNOLOGY, INC.", "GENERAL DYNAMICS CORP"],
"awardUrl": "https://www.usaspending.gov/award/CONT_AWD_47QFCA20F0049_4732_47QTCK18D0003_4732",
"placeOfPerformance": { "city": "DORAL", "state": "FL", "country": "UNITED STATES", "zip": null },
"scrapedAt": "2026-11-14T00:00:00.000Z"
}

More from ScrapeMole

ScrapeMole builds focused, reliable scrapers for public data: pay per result, no start fees, clear error rows that are never charged, and a RUN_SUMMARY on every run.

Building an AI agent with its own wallet? The YouTube and Google Trends data is also sold per call over x402 (USDC on Base, no account): see scrapemole.pages.dev or all ScrapeMole scrapers. Questions or a missing field? Open an issue on this Actor. ScrapeMole is the maker of this Actor.