SAM.gov Contract Opportunities Scraper avatar

SAM.gov Contract Opportunities Scraper

Pricing

Pay per usage

Go to Apify Store
SAM.gov Contract Opportunities Scraper

SAM.gov Contract Opportunities Scraper

Search US government contract opportunities from SAM.gov. Filter by keyword, NAICS code, set-aside type, agency, location, and date range. Get solicitations, awards, and contact info.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

lulz bot

lulz bot

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

a day ago

Last modified

Categories

Share

SAM.gov Government Contract Opportunities Scraper

Search and extract federal government contract opportunities from SAM.gov (System for Award Management). Find solicitations, presolicitations, award notices, and more with powerful filtering by agency, NAICS code, set-aside type, location, and deadline.

Features

  • Keyword search -- Find contract opportunities by keyword across all federal agencies
  • NAICS code filtering -- Target specific industries (e.g., 541512 for Computer Systems Design)
  • Set-aside filtering -- Filter by small business, 8(a), HUBZone, SDVOSB, WOSB, and more
  • Agency filtering -- Search opportunities from specific departments (DoD, NASA, HHS, etc.)
  • Location filtering -- Filter by state and ZIP code for place of performance
  • Opportunity details -- Fetch full descriptions and contact info for specific notices
  • Award data -- Includes award amounts, awardee info, and contract numbers when available
  • Automatic pagination -- Handles multi-page result sets with rate limiting

Input Parameters

ParameterTypeDefaultDescription
modestring"search"search to find opportunities, details for a specific notice
apiKeystringrequiredSAM.gov public API key (free at api.sam.gov)
searchQuerystring""Keyword search (e.g., "cybersecurity", "construction")
opportunityIdstring""Notice ID for details mode
solicitationNumberstring""Solicitation number for details mode
naicsCodestring""NAICS code filter (up to 6 digits)
setAsideTypestring""Set-aside type: SBA, 8A, HZC, SDVOSBC, WOSB, etc.
opportunityTypestring""Type: solicitation, presolicitation, sources sought, award, etc.
agencystring""Agency or department name (partial match)
postedFromstring""Posted after date (MM/DD/YYYY)
postedTostring""Posted before date (MM/DD/YYYY)
deadlineFromstring""Response deadline start (MM/DD/YYYY)
deadlineTostring""Response deadline end (MM/DD/YYYY)
statestring""Place of performance state (2-letter code)
zipstring""Place of performance ZIP code
limitinteger100Max results (0 for all available)

Example Inputs

Search for IT security contracts:

{
"mode": "search",
"apiKey": "YOUR_SAM_GOV_API_KEY",
"searchQuery": "cybersecurity",
"naicsCode": "541512",
"setAsideType": "SBA",
"limit": 50
}

Find DoD opportunities in Virginia:

{
"mode": "search",
"apiKey": "YOUR_SAM_GOV_API_KEY",
"agency": "Department of Defense",
"state": "VA",
"opportunityType": "o",
"limit": 100
}

Get details for a specific opportunity:

{
"mode": "details",
"apiKey": "YOUR_SAM_GOV_API_KEY",
"opportunityId": "abc123def456"
}

Output Fields

FieldTypeDescription
noticeIdstringUnique notice identifier
titlestringOpportunity title
solicitationNumberstringSolicitation number
typestringHuman-readable opportunity type
typeCodestringSingle-letter type code
agencystringFull agency path
agencyCodestringAgency hierarchy code
naicsCodestringNAICS industry code
classificationCodestringProduct/service classification code
setAsideTypestringSet-aside description
activebooleanWhether the opportunity is currently active
postedDatestringDate posted
responseDeadlinestringResponse submission deadline
placeOfPerformanceobjectCity, state, country, ZIP of performance
pointOfContactarrayContact names, emails, phones
awardobjectAward date, number, amount, and awardee info
awardAmountnumberContract award dollar amount
descriptionstringFull description (in details mode)
urlstringSAM.gov opportunity URL
officeAddressobjectContracting office location

Use Cases

  • Government contracting -- Find and bid on federal contract opportunities
  • Small business outreach -- Discover set-aside opportunities for SBA, 8(a), HUBZone, SDVOSB
  • Market research -- Analyze government spending patterns by agency, NAICS, or region
  • Competitive intelligence -- Track awards to competitors and analyze win rates
  • Subcontracting -- Find prime contractors winning large awards for teaming opportunities

Data Source

Data is sourced from the official SAM.gov Opportunities API. A free API key is required (register at api.sam.gov).


Run on Apify

This scraper runs on the Apify platform -- a full-stack web scraping and automation cloud. Sign up for a free account to get started with 30-day trial of all features.

Try Apify free ->