Guide
SAM.gov opportunities API: your options
Two ways to do it: the free manual method, step by step, and a weekly feed if you need it regularly.
Updated 20 Nov 2026 · Source: SAM.gov public Contract Opportunities data extract · Pay per result on Apify
Opens the actor on Apify. Pay per result; no Rowsift account needed. Apify's free plan includes monthly credit.
TL;DR
Quickest manual route
Use the SAM.gov Contract Opportunities search, filter by NAICS, set-aside and date, and download the results. Or request a free public API key on your SAM.gov Account Details page and call https://api.sam.gov/opportunities/v2/search with postedFrom and postedTo (MM/dd/yyyy). Free, and fine for a one-off.
If you need this every week
Run the SAM.gov Opportunities actor on a weekly schedule and export the rows.
Set up the SAM.gov Opportunities feed (opens Apify)Ways to get SAM.gov contract opportunities
SAM.gov is the official home of US federal contract notices: solicitations, presolicitations, sources sought and award notices. There are four realistic ways to get them as data:
1. SAM.gov search and download
The Contract Opportunities search on SAM.gov is free and lets you filter by NAICS, set-aside, agency, place of performance and dates, then download results. Fine for a weekly look; you repeat the search each time.
2. The Get Opportunities API
GSA documents a public Get Opportunities API at https://api.sam.gov/opportunities/v2/search. You need an API key from your SAM.gov Account Details page, and postedFrom and postedTo are required (MM/dd/yyyy, at most one year apart). Pages hold up to 1,000 notices (limit, default 1). Daily request limits depend on your role: GSA lists 10 requests a day for non-government users, and 1,000 for users associated with an entity. Filters include ncode (NAICS), ptype (notice type), typeOfSetAside and state.
curl --get https://api.sam.gov/opportunities/v2/search \
--data-urlencode "api_key=$SAM_API_KEY" \
--data-urlencode "postedFrom=11/01/2026" \
--data-urlencode "postedTo=11/17/2026" \
--data-urlencode "ncode=541512" \
--data-urlencode "limit=1000"Keep your key out of shared scripts and logs; it sits in the URL.
3. The daily CSV extract
SAM.gov Data Services publishes a daily CSV of all active contract opportunities. No request limit, but it is a large file and you do the filtering and de-duplication yourself.
4. A scheduled feed on Apify
Our SAM.gov Opportunities actor reads that official daily extract, so you need no SAM.gov key and hit no 10-requests-a-day cap. Filter by keyword, NAICS prefix, agency, set-aside and state, and use incremental mode to get only new notices each day, with the same columns every run. You pay per result, with no Rowsift account.
See the actor and its API on Apify (opens Apify)Step by step
Decide what you need: NAICS codes, keywords, set-asides, agencies or states, and how many days back.
For a quick test, call the SAM.gov Get Opportunities API with your own key and a postedFrom/postedTo window (example above).
Doing this every week? Schedule the feed once and it repeats these steps for you.
Schedule it on Apify (opens Apify)For a daily job, open the SAM.gov Opportunities actor on Apify and set NAICS prefixes, keywords or set-asides.
Run it, then pull results from the Apify dataset API as JSON or CSV, or export to Excel.
Schedule it daily with incremental mode so each run returns only new notices; send them on with a webhook, Zapier, Make or n8n.
Real sample output
| Opportunity | Type | Agency | NAICS | Deadline |
|---|---|---|---|---|
| Post Quantum Cryptography (PQC) Readiness and Validation Status | Sources Sought | GENERAL SERVICES ADMINISTRATION | 541519 | 8 Dec 2026 |
| DA10--Joint Credentialing and Privileging (C&P) Solution (VA-27-00006966) | Sources Sought | VETERANS AFFAIRS, DEPARTMENT OF | 541512 | 20 Nov 2026 |
| Software Management for Alaris Infusion Pumps | Award Notice | VETERANS AFFAIRS, DEPARTMENT OF | 541519 |
From a real test run of the actor. Full records have more fields.
Example input
{"keywords":[],"naicsPrefixes":["5415"],"lastDays":7,"maxItems":20}Questions about this feed
Do I need an API key?
Not for the feed: it reads the official SAM.gov daily extract. Calling the SAM.gov API yourself needs a free key from your SAM.gov account, and GSA lists a limit of 10 requests a day for non-government users.
What formats can I export?
JSON, CSV, Excel, XML, RSS or HTML from the Apify dataset, plus the Apify API and integrations with Google Sheets, Zapier, Make and n8n.
How much does it cost?
$3.00 per 1,000 results ($0.003 each) plus $0.003 per run, as listed on the Apify actor page (checked 9 Nov 2026). Paid Apify plans get 10–30% off per result (Bronze, Silver, Gold). Apify's free plan includes monthly credit, so a small test run costs nothing.
Where does the data come from?
From the SAM.gov public Contract Opportunities data extract. The feed only collects publicly available data.
Related guides and feeds
SAM.gov contract opportunities feed
US federal contract opportunities from SAM.gov with NAICS, set-aside, deadline and…
SAM.gov contract opportunities
5,444 notices · last 7 days · updated 20 Nov 2026
Get this every week, without the copy-paste
Schedule the SAM.gov Opportunities feed and get fresh rows as CSV, Excel or JSON.
- Same columns every run
- Schedule it on Apify
- Pay per result, no Rowsift account
Opens the actor on Apify. Pay per result; no Rowsift account needed. Apify's free plan includes monthly credit.
Opportunity data from the SAM.gov Contract Opportunities public data extract (US General Services Administration), US government public data. Always read the full notice on SAM.gov before bidding.