SAM.gov Public Opportunities API
Pricing
from $1.00 / 1,000 opportunity rows
SAM.gov Public Opportunities API
Search U.S. federal contract opportunities via the official GSA Get Opportunities Public API (api.sam.gov). Uses your own free SAM.gov api_key. No HTML scraping.
Pricing
from $1.00 / 1,000 opportunity rows
Rating
0.0
(0)
Developer
Bryce
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
20 days ago
Last modified
Categories
Features
Share
Search U.S. federal contract opportunities using the official GSA Get Opportunities Public API
(https://api.sam.gov/opportunities/v2/search).
This Actor is an API client only. It does not scrape sam.gov HTML, does not harvest contacts, and does not use paid proxies.
Get a free SAM.gov API key
- Create / sign in at sam.gov.
- Open Account Details.
- Request a Public API Key (instant for registered users).
- Paste that key into this Actor’s apiKey input (kept secret in Apify).
Docs: open.gsa.gov — Get Opportunities Public API.
What you get
| Field | Description |
|---|---|
noticeId | SAM notice id |
title | Opportunity title |
solicitationNumber | Solicitation number |
agency | Organization path / agency |
postedDate | Posted date |
responseDeadline | Response deadline |
type / baseType | Notice type |
naicsCode / classificationCode | Codes |
setAside / setAsideCode | Set-aside info |
active | Yes / No |
uiLink | SAM.gov UI link when provided |
descriptionLink | Official noticedesc API URL (not scraped HTML) |
descriptionSummary | Inline text only if the API returns text instead of a URL |
placeOfPerformance | City / state / zip / country summary |
awardAmount / awardDate / awardNumber | Award fields when present |
Contact fields (pointOfContact) are intentionally omitted — no contact harvesting.
Input
- apiKey (required, secret) — your SAM.gov public API key
- postedFrom / postedTo (required) —
MM/dd/yyyy, max 1-year span - keywords — mapped to official
title=filter - ptype, status, organizationCode, organizationName, ncode, ccode, state, zip, solnum, noticeid, typeOfSetAside, rdlfrom / rdlto
- limit — max rows to write (default 25)
- offset — starting SAM page index (default 0)
- pageSize — rows per API page (max 1000)
Example
{"apiKey": "YOUR_SAM_GOV_PUBLIC_API_KEY","postedFrom": "10/01/2026","postedTo": "11/04/2026","keywords": "software","ptype": "o","limit": 10}
How it works
- Calls
https://api.sam.gov/opportunities/v2/searchonly. - Sends a descriptive
User-AgentandAccept: application/json. - Stays around ~1 request/second and honors HTTP 429.
- Paginates with SAM
offset(page index) +limit. - Writes one dataset item per opportunity (contacts stripped).
- Fails clearly if
apiKeyis missing or rejected by SAM.gov.
Pricing (pay-per-event)
Intended Store pricing (synthetic events — configure in Apify Console when payout/billing info is available):
- $0.005 per Actor start (
apify-actor-start) - $0.001 per opportunity row written to the default dataset (
apify-default-dataset-item)
Until Console monetization is enabled (requires payout / billing info on the account), the Actor still uses Actor.pushData() so synthetic PPE events will charge automatically once configured. No custom Actor.charge() events are required.
Limitations & rules
- No HTML scraping of sam.gov.
- No contact harvesting (PoC email/phone/name dropped).
- No residential / upgraded proxies — plain HTTPS to
api.sam.gov. - You must supply your own free SAM.gov
api_key. Daily quotas are enforced by GSA based on account role. - Keep
limitmodest while exploring.
Use cases
- Monitor new solicitations by keyword / NAICS / agency
- Export award notices for analysis
- Feed a govcon pipeline without fragile HTML scrapers
Output
Open the run’s Dataset tab (or download via API). Each item is one opportunity record.