SAM.gov Federal Contract Opportunities Scraper avatar

SAM.gov Federal Contract Opportunities Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
SAM.gov Federal Contract Opportunities Scraper

SAM.gov Federal Contract Opportunities Scraper

Scrapes federal contract opportunities from SAM.gov — solicitation number, agency, NAICS code, award amount, set-aside type, point of contact, and more. Requires a free SAM.gov public API key.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

COSENT GROUP

COSENT GROUP

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Share

Scrape federal contract opportunities from SAM.gov — the official US government source for contract solicitations, awards, and procurement notices. Filter by keyword, agency, NAICS code, state, set-aside type, and more.

Requires a free public API key from your SAM.gov account (no government email needed — anyone can register).

What it scrapes

Each opportunity returns:

FieldDescription
noticeIdSAM.gov unique notice identifier
solicitationNumberOfficial solicitation or contract number
titleOpportunity title
noticeTypeSolicitation, Award Notice, Presolicitation, Sources Sought, etc.
postedDateDate the opportunity was posted
responseDeadlineProposal or response deadline
naicsCodeNAICS industry classification code
setAsideSmall business set-aside type (if applicable)
agencyFederal agency posting the opportunity
officeContracting office within the agency
placeOfPerformanceCity and state where work will be performed
awardAmountContract award value in USD (award notices only)
awardeeCompany awarded the contract (award notices only)
contactNameContracting officer or point of contact name
contactEmailPoint of contact email address
urlDirect link to the opportunity on SAM.gov
scrapedAtISO timestamp when this record was collected

Getting your API key

  1. Register or log in at sam.gov
  2. Go to Account Details (top-right menu)
  3. Under Public API Key, click Generate Key and copy it
  4. Paste it into the SAM.gov API Key input field

Input

{
"apiKey": "YOUR_SAM_GOV_API_KEY",
"postedFrom": "07/01/2026",
"postedTo": "08/02/2026",
"keywords": "cybersecurity",
"noticeType": "o",
"naicsCode": "541512",
"state": "TX",
"organizationName": "Department of Defense",
"setAside": "SBA",
"maxResults": 200
}

Parameters

ParameterTypeRequiredDescription
apiKeystringYesYour SAM.gov public API key
postedFromstringYesStart date in MM/dd/yyyy format
postedTostringYesEnd date in MM/dd/yyyy format (max 1-year range)
keywordsstringNoSearch term for title/description (e.g. IT services, construction)
noticeTypestringNoNotice type code — see table below
naicsCodestringNoNAICS code (e.g. 541512 for Computer Systems Design)
statestringNoTwo-letter state code for place of performance (e.g. TX, CA)
organizationNamestringNoFederal agency name (e.g. Department of Defense, NASA)
setAsidestringNoSet-aside type code — see table below
maxResultsintegerNoMax opportunities to return (default: 100, 0 = no limit)

Notice type codes

CodeNotice Type
oSolicitation
pPresolicitation
kCombined Synopsis/Solicitation
rSources Sought
sSpecial Notice
aAward Notice
iIntent to Bundle Requirements
uJustification
gSale of Surplus Property

Set-aside type codes

CodeSet-Aside Type
SBATotal Small Business
8A8(a) Program
HZCHUBZone
SDVOSBCService-Disabled Veteran-Owned Small Business
WOSBWomen-Owned Small Business
EDWOSBEconomically Disadvantaged Women-Owned Small Business

Example output

{
"noticeId": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"solicitationNumber": "W912BU26Q0045",
"title": "Cybersecurity Assessment and Penetration Testing Services",
"noticeType": "Solicitation",
"postedDate": "2026-07-15",
"responseDeadline": "2026-08-15T17:00:00-04:00",
"naicsCode": "541519",
"setAside": "Total Small Business",
"agency": "DEPT OF DEFENSE",
"office": "US ARMY CORPS OF ENGINEERS",
"placeOfPerformance": "Fort Worth, TX",
"awardAmount": null,
"awardee": null,
"contactName": "Jane Smith",
"contactEmail": "jane.smith@army.mil",
"url": "https://sam.gov/opp/a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4/view",
"scrapedAt": "2026-08-02T20:14:00.309Z"
}

Use cases

  • Business development — monitor new solicitations in your industry before competitors
  • Market research — analyze federal spending by agency, NAICS code, or geography
  • Set-aside tracking — find small business, veteran-owned, or HUBZone opportunities
  • Award intelligence — track which companies are winning contracts in your space
  • Lead generation — build prospect lists from contracting officer contact details

Notes

  • Date range between postedFrom and postedTo cannot exceed 1 year
  • Over 23,000 new opportunities are posted monthly across all agencies
  • Award notices include the awardee name and contract value
  • API rate limits are set by SAM.gov based on account type; the scraper adds a 300ms delay between pages to stay within limits