SAM.gov Federal Contractor Entity Scraper
Pricing
from $3.50 / 1,000 results
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
Actor stats
0
Bookmarked
1
Total users
1
Monthly active users
4 days ago
Last modified
Categories
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
- 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
- Go to the SAM.gov Federal Contractor Scraper on Apify Store
- Click Try for free and paste your API key into the input
- Set your filters — NAICS code, state, city, business type, date range
- Set Max Records (up to 10,000 per query) and click Start
- 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?
| Field | Description | Example |
|---|---|---|
| UEI (SAM) | 12-digit Unique Entity Identifier | ZQGGHJH74DW7 |
| CAGE Code | 5-digit govt entity code | 855J5 |
| Legal Business Name | Legal entity name | ACME ENGINEERING LLC |
| DBA Name | Doing Business As / trade name | ACME Solutions |
| Registration Status | Active or Expired | Active |
| Registration Date | Initial registration (YYYY-MM-DD) | 2021-03-15 |
| Expiration Date | Registration expiry (YYYY-MM-DD) | 2025-03-14 |
| Purpose of Registration | Contract type eligibility | All Awards |
| Excluded (Debarred) | Debarment/suspension flag | false |
| Entity Structure | Business structure | Limited Liability Company |
| State of Incorporation | Where entity is incorporated | TX |
| Primary NAICS | Main industry code | 541330 |
| All NAICS Codes | All registered industry codes | ["541330", "541519"] |
| Business Types | Certifications and categories | ["Small Business", "Woman Owned"] |
| Street | Physical address | 1234 Main St |
| City | City | Houston |
| State | State code | TX |
| ZIP Code | Postal code | 77001 |
| Country | Country code | USA |
Common NAICS codes for SAM.gov searches
| NAICS | Industry | Typical registrations |
|---|---|---|
541512 | Computer Systems Design | IT contractors |
541330 | Engineering Services | Engineering firms |
541611 | Admin Management Consulting | Management consultants |
236220 | Commercial Building Construction | General contractors |
238210 | Electrical Contractors | Electrical |
561210 | Facilities Support Services | Facility management |
541519 | Other Computer Related Services | IT services |
561612 | Security Guards & Patrol Services | Security firms |
541990 | All Other Professional Services | Misc 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:
| Plan | Price per 1,000 records | Example: 5,000 records | Example: 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:
| Parameter | Default | Description |
|---|---|---|
| API Key | (required) | Free SAM.gov API key |
| Registration Status | Active | Active, 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 Debarred | true | Skip excluded/debarred entities |
| Max Records | 200 | Up to 10,000 per query |
| Request Delay | 600 ms | Delay 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:
- 🍷 TTB Alcohol Permit Scraper — Federal alcohol permits for wineries, distilleries, importers, and wholesalers
- 🏛️ Virginia DPOR License Scraper — 45K+ contractor and tradesman license records from Virginia
- 🏗️ Minnesota DLI License Scraper — 200K+ contractor, electrician, plumber, and HVAC bond records from Minnesota