SAM.gov Contract Opportunities (official daily extract)
Pricing
$2.50 / 1,000 opportunity founds
SAM.gov Contract Opportunities (official daily extract)
Pulls US federal contract opportunities by keyword or NAICS code from SAM.gov's official, key-free daily Contract Opportunities CSV extract.
Pricing
$2.50 / 1,000 opportunity founds
Rating
0.0
(0)
Developer
Korhan Coşan Ergün
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 days ago
Last modified
Categories
Features
Share
Filters SAM.gov's (the US federal contractor/procurement system) official daily Contract Opportunities Full Data Extract by keyword and/or NAICS code.
Why NOT api.sam.gov/opportunities/v2/search?
That REST API is real and documented
(https://open.gsa.gov/api/get-opportunities-public-api/) but requires a
key: the key is generated from the user's own SAM.gov account (Login.gov
sign-in + password re-confirmation) and unregistered accounts get only 10
requests per day. That violates the "no API key" rule — verified on
9–10 November 2026 (DEMO_KEY returned 404; a real key requires a personal
account).
The alternative used: the official daily CSV extract
https://sam.gov/data-services/Contract Opportunities/datagov?privacy=Public-> https://sam.gov/api/prod/fileextractservices/v1/api/download/Contract%20Opportunities/datagov/ContractOpportunitiesFullCSV.csv?privacy=Public-> 303-redirects to a signed, publicly accessible S3 URL (no key needed)
This is the official raw CSV form of the same SAM.gov data (all active/archived opportunities). robots.txt (verified 9–10 November 2026):
https://sam.gov/robots.txtUser-agent: *Disallow: /core/Disallow: /profiles/Disallow: /README.md
/api/prod/fileextractservices/... is not disallowed.
Input
| Field | Description |
|---|---|
keyword | Keyword to search for in the title/description (e.g. "software") |
naicsCode | Exact-match NAICS code (e.g. "541511") |
activeOnly | Active opportunities only (default: true) |
maxItems | Maximum number of records |
Output (each record)
{"id": "...","title": "...","link": "https://sam.gov/workspace/contract/opp/.../view","date": "...","agency": "...","opportunity_type": "...","response_deadline": "...","naics_code": "...","set_aside": "...","state": "...","active": "Yes"}
The CSV file is ~220MB; the actor processes it line by line (streaming) and
stops the download as soon as maxItems matches are found (memory- and
time-friendly). sample_output.json contains 20 records taken from a
real local run (keyword="software").
Pricing (PPE)
An opportunity-found event is fired for every opportunity found.
Suggested price: $0.0025 per opportunity-found event.
Local run
cd ~/rua/products/apify/sam-gov-contractsmkdir -p storage/key_value_stores/defaultcat > storage/key_value_stores/default/INPUT.json <<'EOF'{"keyword": "software", "naicsCode": "", "activeOnly": true, "maxItems": 20}EOFAPIFY_LOCAL=1 python3 main.py