SAM.gov Federal Contractor Entity Scraper avatar

SAM.gov Federal Contractor Entity Scraper

Pricing

from $3.50 / 1,000 results

Go to Apify Store
SAM.gov Federal Contractor Entity Scraper

SAM.gov Federal Contractor Entity Scraper

Scrape federal contractor registrations from SAM.gov API. Search by NAICS code, state, business type, certification and more. Extract UEI, CAGE code, business names, addresses, NAICS codes, small business certifications and exclusion status. Requires free SAM.gov API key.

Pricing

from $3.50 / 1,000 results

Rating

0.0

(0)

Developer

Haketa

Haketa

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

4 days ago

Last modified

Share

What does SAM.gov Federal Contractor Scraper do?

SAM.gov Federal Contractor Scraper extracts federal contractor entity registrations from the SAM.gov Entity Management API — the official U.S. government system where every company that wants to do business with the federal government must register. It returns structured data including UEI numbers, CAGE codes, legal and trade names, NAICS industry codes, small business certifications, exclusion (debarment) status, and physical addresses.

The scraper supports powerful filtering by NAICS code, state, city, business type certification, registration date range, and exclusion status — letting you pull precisely the entities you need from SAM.gov's database of 600,000+ active registrations.

Requires a free SAM.gov API key (takes 2 minutes to get — no federal account needed for public data).

Why scrape SAM.gov entity data?

SAM.gov is the gateway to the $750B+ U.S. federal contracting market. Every company that bids on federal contracts, receives grants, or serves as a government vendor must maintain an active SAM registration. This makes SAM.gov the most comprehensive database of federal market participants in existence.

Here's why this data is valuable:

  • 💼 GovTech sales teams — Find federal contractors by industry (NAICS) and location. A query like "Active IT firms in Texas" returns a CRM-ready lead list in minutes
  • 📋 Federal bid/proposal teams — Analyze competitors in your NAICS codes. See how many firms compete in your space, their certifications, and locations
  • Compliance & vendor risk teams — Verify SAM registration status and check exclusion (debarment) flags during vendor onboarding. Automate what today takes manual lookups
  • 🤝 Prime contractors seeking subs — Federal contracts require small business subcontracting goals. Find "HUBZone certified, Construction, Virginia" firms in one query
  • 📊 Policy researchers & lobbyists — Track federal market entry trends by sector, state, and year using registration date filters
  • 🏷️ Certification-based targeting — Filter by Woman-Owned, Veteran-Owned, 8(a), HUBZone, Service-Disabled Veteran-Owned and other SBA certifications

The Apify platform adds scheduling, API access, webhook integrations, and proxy rotation — turning a manual SAM.gov search into an automated intelligence pipeline.

How to scrape SAM.gov entity data

  1. Get a free API key: Go to sam.gov, create an account, navigate to Profile, and generate a Public API key. Takes about 2 minutes
  2. Go to the SAM.gov Federal Contractor Scraper on Apify Store
  3. Click Try for free and paste your API key into the input
  4. Set your filters — NAICS code, state, city, business type, date range
  5. Set Max Records (up to 10,000 per query) and click Start
  6. Download your dataset in JSON, CSV, Excel, or XML — or connect via API

💡 Pro tip: Combine NAICS code + state + business type for laser-focused results. Example: naicsCode=541512, stateCode=VA, businessType=Small Business returns small IT firms in Virginia that are SAM-registered.

What data can you extract from SAM.gov?

FieldDescriptionExample
UEI (SAM)12-digit Unique Entity IdentifierZQGGHJH74DW7
CAGE Code5-digit govt entity code855J5
Legal Business NameLegal entity nameACME ENGINEERING LLC
DBA NameDoing Business As / trade nameACME Solutions
Registration StatusActive or ExpiredActive
Registration DateInitial registration (YYYY-MM-DD)2021-03-15
Expiration DateRegistration expiry (YYYY-MM-DD)2025-03-14
Purpose of RegistrationContract type eligibilityAll Awards
Excluded (Debarred)Debarment/suspension flagfalse
Entity StructureBusiness structureLimited Liability Company
State of IncorporationWhere entity is incorporatedTX
Primary NAICSMain industry code541330
All NAICS CodesAll registered industry codes["541330", "541519"]
Business TypesCertifications and categories["Small Business", "Woman Owned"]
StreetPhysical address1234 Main St
CityCityHouston
StateState codeTX
ZIP CodePostal code77001
CountryCountry codeUSA

Common NAICS codes for SAM.gov searches

NAICSIndustryTypical registrations
541512Computer Systems DesignIT contractors
541330Engineering ServicesEngineering firms
541611Admin Management ConsultingManagement consultants
236220Commercial Building ConstructionGeneral contractors
238210Electrical ContractorsElectrical
561210Facilities Support ServicesFacility management
541519Other Computer Related ServicesIT services
561612Security Guards & Patrol ServicesSecurity firms
541990All Other Professional ServicesMisc professional

SAM.gov business type certifications

The businessTypes field contains SBA and other federal certifications. Common values you can filter by:

Small Business, Woman Owned Business, Veteran Owned Business, Service Disabled Veteran Owned Business, 8(a), HUBZone, Economically Disadvantaged Woman Owned Small Business, Self Certified Small Disadvantaged Business, Minority Owned Business, Native American Owned, Asian Pacific American Owned, Black American Owned

Output example

{
"ueiSAM": "ZQGGHJH74DW7",
"cageCode": "855J5",
"legalBusinessName": "ACME ENGINEERING LLC",
"dbaName": "ACME Solutions",
"registrationStatus": "Active",
"registrationDate": "2021-03-15",
"expirationDate": "2025-03-14",
"activationDate": "2024-03-20",
"purposeOfRegistration": "All Awards",
"isExcluded": false,
"entityStructure": "Limited Liability Company",
"stateOfIncorporation": "TX",
"primaryNaics": "541330",
"naicsCodes": ["541330", "541519"],
"businessTypes": ["Small Business", "Woman Owned Business"],
"street": "1234 Main St",
"city": "Houston",
"state": "TX",
"zipCode": "77001",
"country": "USA",
"scrapedAt": "2026-04-23T09:00:00.000Z"
}

How much does it cost to scrape SAM.gov?

SAM.gov Federal Contractor Scraper uses a pay-per-result pricing model:

PlanPrice per 1,000 recordsExample: 5,000 recordsExample: 10,000 records
Free (No discount)$5.00$25$50
Bronze$4.50$22.50$45
Silver$4.00$20$40
Gold$3.50$17.50$35

Why is SAM.gov data priced higher? Because it includes UEI + CAGE codes (unique federal identifiers), small business certification flags, exclusion/debarment status, and NAICS-filtered targeting across the entire U.S. federal marketplace. This is intelligence-grade data for the $750B federal contracting market.

The SAM.gov API key is free. The Actor runs on ~0.01 CU per 1,000 records — API overhead is minimal.

Input configuration

Click on the Input tab for full details. Key parameters:

ParameterDefaultDescription
API Key(required)Free SAM.gov API key
Registration StatusActiveActive, Expired, or All
NAICS Code(empty)Industry filter (e.g., 541330)
State Code(empty)US state (e.g., TX)
City(empty)City filter
Business Type(empty)Certification (e.g., Woman Owned Business)
Exclude DebarredtrueSkip excluded/debarred entities
Max Records200Up to 10,000 per query
Request Delay600 msDelay between API calls

Integrations and API access

Connect SAM.gov Federal Contractor Scraper with any cloud service via Apify's built-in integrations. Connect with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more. Access datasets programmatically via the Apify API.

Recommended workflow: Schedule a monthly run filtered by registrationDateFrom = first of last month → pipe new SAM registrations into your CRM via webhook → instant lead alerts for newly registered federal contractors.

FAQ

How do I get a SAM.gov API key?

Go to sam.gov, click "Sign In" (or create an account), navigate to your Profile page, and scroll to the API Key section. Generate a "Public API Key" — it's free and instant. No federal employee account needed.

What's the difference between UEI and DUNS?

UEI (Unique Entity Identifier) replaced the DUNS number in April 2022 as the official federal entity identifier. UEI is a 12-character alphanumeric code assigned by SAM.gov. All SAM records now use UEI. This Actor returns the UEI in the ueiSAM field.

What does "excluded" mean?

An excluded entity has been debarred or suspended from federal contracting — meaning they cannot receive new federal contracts or subcontracts. The isExcluded field flags these entities. Use excludeExcluded: true (default) to filter them out, or set it to false if you specifically need to find debarred entities for compliance screening.

What's the maximum number of records I can extract?

The SAM.gov sync API supports up to 10,000 records per query. For larger datasets, narrow your search with NAICS codes, state filters, or date ranges to stay within the limit. Each filtered query can return up to 10,000 results.

Is SAM.gov data public?

Yes. SAM.gov entity registration data at the Public tier is freely accessible with a registered API key. No sensitive information (like bank accounts or tax IDs) is included in the public data. This Actor only accesses the public data tier.

Where can I get support?

For issues or feature requests, use the Issues tab on the Actor page. I actively monitor feedback and respond promptly.

Other scrapers

Looking for more license, permit, and contractor data? Check out: