VOOZH about

URL: https://apify.com/magicfingers/sam-gov-scraper

โ‡ฑ SAM.gov Scraper - Government Contract Opportunities ยท Apify


Pricing

Pay per usage

Go to Apify Store

SAM.gov Contracts Scraper

Scrape government contract opportunities, entity registrations, and award data from SAM.gov. Search by keyword, NAICS code, set-aside type, agency, date range, and more. Uses the official SAM.gov public API.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

๐Ÿ‘ abdulrahman alrashid

abdulrahman alrashid

Maintained by Community

Actor stats

0

Bookmarked

24

Total users

4

Monthly active users

3 months ago

Last modified

Categories

Share

SAM.gov Government Contract Scraper

Scrape government contract opportunities, entity/vendor registrations, and award data from SAM.gov โ€” the U.S. federal government's official system for award management.

Government contracting is a $700B+ annual market. This actor helps small businesses, government contractors, BD professionals, and researchers find relevant federal contract opportunities programmatically.

What data can you scrape?

Contract Opportunities

  • Title, solicitation number, notice type
  • Agency, sub-agency, office
  • Posted date, response deadline, archive date
  • Set-aside type (small business, 8(a), HUBZone, SDVOSB, WOSB, etc.)
  • NAICS codes, product/service classification codes
  • Full description text
  • Point of contact (name, email, phone)
  • Place of performance (city, state, ZIP)
  • Attached documents list
  • Direct URL to SAM.gov listing

Entity/Vendor Registrations

  • Legal business name, DBA name
  • UEI (Unique Entity Identifier), CAGE code
  • Registration status, dates
  • Physical and mailing addresses
  • NAICS codes with descriptions
  • Business types and SBA certifications
  • Points of contact
  • Congressional district
  • Parent entity information

Award Data

  • Contract/award number
  • Award amount
  • Awardee name, UEI, CAGE code
  • Period of performance
  • Associated solicitation data

How it works

This actor uses a dual approach:

  1. SAM.gov Public API (primary) โ€” Uses the official api.sam.gov endpoints for structured, reliable data access
  2. Web scraping fallback โ€” Falls back to scraping SAM.gov's internal web APIs when no API key is provided

API Key

A SAM.gov API key is free and gives you the best results. Entity searches require an API key.

To get your free API key:

  1. Create an account at SAM.gov
  2. Go to Profile โ†’ System Account Management
  3. Request a public API key (select "Read Public" permission)
  4. Enter the key in the actor's input configuration

Without an API key, the actor will attempt web scraping for opportunity searches, but results may be limited.

Input examples

Search for cybersecurity contracts (small business set-aside)

{
"scrapeMode":"opportunities",
"apiKey":"YOUR_SAM_GOV_API_KEY",
"keyword":"cybersecurity",
"setAsideType":"SBA",
"maxResults":50
}

Search by NAICS code with date range

{
"scrapeMode":"opportunities",
"apiKey":"YOUR_SAM_GOV_API_KEY",
"naicsCode":"541512",
"postedFrom":"01/01/2024",
"postedTo":"12/31/2024",
"maxResults":200
}

Find 8(a) set-aside opportunities from the Department of Defense

{
"scrapeMode":"opportunities",
"apiKey":"YOUR_SAM_GOV_API_KEY",
"setAsideType":"8A",
"agency":"100006688",
"maxResults":100
}

Search for registered IT vendors in Virginia

{
"scrapeMode":"entities",
"apiKey":"YOUR_SAM_GOV_API_KEY",
"keyword":"information technology",
"naicsCode":"541512",
"placeOfPerformanceState":"VA",
"maxResults":50
}

Search for recent contract awards

{
"scrapeMode":"awards",
"apiKey":"YOUR_SAM_GOV_API_KEY",
"keyword":"cloud computing",
"postedFrom":"01/01/2024",
"maxResults":100
}

Output format

Each result is a clean JSON object. Here's an example opportunity:

{
"dataType":"opportunity",
"opportunityId":"abc123def456",
"title":"Enterprise Cybersecurity Support Services",
"solicitationNumber":"W911NF-24-R-0042",
"noticeType":"Solicitation",
"noticeTypeCode":"o",
"agency":"Department of Defense",
"agencyCode":"DOD",
"subAgency":"Department of the Army",
"subAgencyCode":"ARMY",
"office":"Army Contracting Command",
"officeCode":"ACC",
"postedDate":"2024-03-15",
"responseDeadline":"2024-04-30T14:00:00-04:00",
"archiveDate":"2024-05-30",
"setAsideType":"Total Small Business Set-Aside",
"setAsideCode":"SBA",
"naicsCodes":["541512"],
"classificationCode":"D306",
"description":"The Army seeks qualified small businesses to provide...",
"placeOfPerformance":{
"city":"Arlington",
"state":"Virginia",
"stateCode":"VA",
"country":"United States",
"countryCode":"US",
"zip":"22201"
},
"pointsOfContact":[
{
"type":"primary",
"fullName":"John Smith",
"email":"john.smith@army.mil",
"phone":"703-555-0100"
}
],
"award":null,
"attachments":[],
"active":true,
"url":"https://sam.gov/opp/abc123def456",
"scrapedAt":"2024-03-20T10:30:00.000Z"
}

Set-aside type codes

CodeDescription
SBATotal Small Business Set-Aside
8A8(a) Set-Aside
8AN8(a) Sole Source
HZCHUBZone Set-Aside
HZSHUBZone Sole Source
SDVOSBCService-Disabled Veteran-Owned SB Set-Aside
SDVOSBSService-Disabled Veteran-Owned SB Sole Source
WOSBWomen-Owned Small Business
EDWOSBEconomically Disadvantaged WOSB
VSAVeteran-Owned Small Business Set-Aside
VSBVeteran-Owned Small Business Sole Source

Common NAICS codes for government contracting

CodeIndustry
541512Computer Systems Design Services
541511Custom Computer Programming
541330Engineering Services
541611Administrative Management Consulting
541519Other Computer Related Services
236220Commercial Building Construction
561210Facilities Support Services
561612Security Guards and Patrol Services
541690Other Scientific and Technical Consulting
238210Electrical Contractors

Rate limits and pricing

SAM.gov API rate limits (daily):

  • Non-federal, no role: 10 requests/day
  • Non-federal with role: 1,000 requests/day
  • Federal system account: 10,000 requests/day

Actor pricing: Pay-Per-Event โ€” $1.50 per 1,000 results ($0.0015 per result)

Legal

All data scraped by this actor is 100% public government data published on SAM.gov by the U.S. General Services Administration (GSA). SAM.gov provides a public API specifically for programmatic access to this data. There are no legal restrictions on accessing or redistributing this public government information.

Support

You might also like

SAM.gov Scraper - Contracts, Exclusions & Grants

jungle_synthesizer/samgov-scraper

Scrape SAM.gov for federal contract opportunities, exclusion records (debarment list), wage determinations, and assistance listings. No API key required. Filter by keyword, NAICS code, opportunity type, set-aside category, agency, and state.

๐Ÿ‘ User avatar

BowTiedRaccoon

139

1.0

SAM.gov Scraper - Federal Contracts & RFP Monitor (No API Key)

omarchydev/government-contract-monitor

Scrape SAM.gov + USASpending for federal RFPs, solicitations, and contract awards. No API key required. AI-ranked by relevance to your business. Filter by NAICS, set-aside, agency, state, value. Attachment URLs included. For govcon BD teams, proposal writers, and competitive intelligence.

SAM.gov Federal Contracts Scraper

fortuitous_pirate/sam-gov-scraper

Search federal contract opportunities on SAM.gov. Extract solicitations, awards, set-asides, NAICS codes, and agency info. Essential for government contractors.

๐Ÿ‘ User avatar

Fortuitous Pirate

72

Tester MCP Client

jiri.spilka/tester-mcp-client

A model context protocol (MCP) client that connects to any MCP server using Streamable HTTP and displays the conversation in a chat-like UI. It is a standalone Actor server designed for testing MCP servers over Stremable HTTP.

๐Ÿ‘ User avatar

Jiล™รญ Spilka

1.4K

5.0

SAM.gov Contract Opportunities

dash_authority/sam-gov-opportunities

Search federal contract opportunities from the SAM.gov API. Filter by keyword, agency, NAICS code, state, set-aside type, and posting dates. Categories: government contracts, procurement, federal opportunities, SAM.gov.

๐Ÿ‘ User avatar

Dash Authority

1

Gov Contracts Scraper

labrat011/gov-contracts-scraper

Search U.S. federal contract opportunities, awards, and agencies from SAM.gov. Filter by keyword, NAICS code, set-aside type, state, agency, and more. Returns structured data including contacts, deadlines, award amounts, and direct SAM.gov links. Requires a free SAM.gov API key.

SAM.gov Contracts - Federal Opportunities Search

alizarin_refrigerator-owner/sam-gov-contracts---federal-opportunities-search

Search SAM.gov for federal contract opportunities, solicitations, and awards. Find government contracts by NAICS code, set-aside type, agency, location, and keywords. Perfect for government contractors, business development teams, and procurement intelligence.

SAM.gov Contract Opportunities Scraper

crawlerbros/sam-gov-scraper

Scrape US federal contract opportunities from SAM.gov - search by keyword, NAICS code, set-aside type, and date range. Returns solicitations, pre-solicitations, sources sought, awards, and more.