SAM.gov Federal Contract Opportunities Scraper
Pricing
from $2.00 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 days ago
Last modified
Categories
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:
| Field | Description |
|---|---|
noticeId | SAM.gov unique notice identifier |
solicitationNumber | Official solicitation or contract number |
title | Opportunity title |
noticeType | Solicitation, Award Notice, Presolicitation, Sources Sought, etc. |
postedDate | Date the opportunity was posted |
responseDeadline | Proposal or response deadline |
naicsCode | NAICS industry classification code |
setAside | Small business set-aside type (if applicable) |
agency | Federal agency posting the opportunity |
office | Contracting office within the agency |
placeOfPerformance | City and state where work will be performed |
awardAmount | Contract award value in USD (award notices only) |
awardee | Company awarded the contract (award notices only) |
contactName | Contracting officer or point of contact name |
contactEmail | Point of contact email address |
url | Direct link to the opportunity on SAM.gov |
scrapedAt | ISO timestamp when this record was collected |
Getting your API key
- Register or log in at sam.gov
- Go to Account Details (top-right menu)
- Under Public API Key, click Generate Key and copy it
- Paste it into the
SAM.gov API Keyinput 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
| Parameter | Type | Required | Description |
|---|---|---|---|
apiKey | string | Yes | Your SAM.gov public API key |
postedFrom | string | Yes | Start date in MM/dd/yyyy format |
postedTo | string | Yes | End date in MM/dd/yyyy format (max 1-year range) |
keywords | string | No | Search term for title/description (e.g. IT services, construction) |
noticeType | string | No | Notice type code — see table below |
naicsCode | string | No | NAICS code (e.g. 541512 for Computer Systems Design) |
state | string | No | Two-letter state code for place of performance (e.g. TX, CA) |
organizationName | string | No | Federal agency name (e.g. Department of Defense, NASA) |
setAside | string | No | Set-aside type code — see table below |
maxResults | integer | No | Max opportunities to return (default: 100, 0 = no limit) |
Notice type codes
| Code | Notice Type |
|---|---|
o | Solicitation |
p | Presolicitation |
k | Combined Synopsis/Solicitation |
r | Sources Sought |
s | Special Notice |
a | Award Notice |
i | Intent to Bundle Requirements |
u | Justification |
g | Sale of Surplus Property |
Set-aside type codes
| Code | Set-Aside Type |
|---|---|
SBA | Total Small Business |
8A | 8(a) Program |
HZC | HUBZone |
SDVOSBC | Service-Disabled Veteran-Owned Small Business |
WOSB | Women-Owned Small Business |
EDWOSB | Economically 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
postedFromandpostedTocannot 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