SAM.gov Contract Opportunities Scraper (No Key Required)
Pricing
from $2.00 / 1,000 opportunity notices
SAM.gov Contract Opportunities Scraper (No Key Required)
Search U.S. federal contract opportunities on SAM.gov: solicitations, RFPs, sources sought & award notices. Works with NO API key via GSA's official public extract, or add your free SAM.gov key for live API queries. Filter by NAICS, set-aside & state.
Pricing
from $2.00 / 1,000 opportunity notices
Rating
0.0
(0)
Developer
Professor
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
11 hours ago
Last modified
Categories
Features
Share
SAM.gov Contract Opportunities: federal bids, RFPs and solicitations
Search live U.S. federal contract opportunities on SAM.gov: solicitations, combined synopses, presolicitations, sources sought, special notices, award notices and justifications. Filter by keyword, NAICS code, set-aside, notice type, place-of-performance state and posted date, and get a clean table with agency, deadline, set-aside, contacts and a link to the notice.
This Actor does not scrape the SAM.gov website. It has two official modes:
- Live API (recommended) — with your free SAM.gov public API key, it calls the official Get Opportunities Public API v2 (
https://api.sam.gov/opportunities/v2/search) and returns current notices. - Daily extract fallback (no key) — if
apiKeyis empty, it streams GSA's public Contract Opportunities data extract (ContractOpportunitiesFullCSV.csvvia SAM.gov Data Services). No account and no API key are required. The file is rebuilt about once a day (usually each morning), so a notice posted today often appears tomorrow. The Actor streams the CSV newest-first and stops at your date window /maxResults, so a default run stays small and fast.
Get a free SAM.gov API key
- Create a free account at SAM.gov. Sign-in uses Login.gov.
- Sign in, open Account Details (your profile / account settings).
- Re-enter your account password when prompted so SAM.gov can show API key information.
- Generate a public API key if you do not already have one. The key is shown on that page until you navigate away.
- Paste the key into this Actor's SAM.gov API key field. Apify stores secret inputs encrypted and decrypts them only inside the run.
- Official documentation: SAM.gov Get Opportunities Public API.
There is no charge from GSA for a public API key. Daily request limits depend on the role on the account (federal, non-federal, or general). Official docs do not publish the exact numbers in the Opportunities API page; widely reported caps (confirm in your own Account Details) are about 10 requests/day for a personal account with no role, 1,000/day with a role or a non-federal system account, and 10,000/day for a federal system account. This Actor defaults maxApiCalls to 8 so one run is unlikely to exhaust a 10-request personal key. If you omit the key, none of this quota applies: the run uses the public extract instead.
Who uses this
- Government contractors and BD teams: a daily list of new bids in your NAICS codes, set-aside and state, with response deadlines.
- Small, 8(a), HUBZone, SDVOSB and WOSB firms: filter to the set-asides you can bid.
- Sales and partner teams selling into GovCon: see which agencies are buying and who won award notices.
- Journalists and researchers: track federal solicitations by keyword, agency or state.
What you can filter
| Filter | Official API parameter | Example |
|---|---|---|
| Keywords (title search) | title | janitorial, cybersecurity |
| NAICS codes | ncode | 561720, 541511 |
| Set-aside | typeOfSetAside | SBA, 8A, HZC, SDVOSBC, WOSB |
| Notice type | ptype | Solicitation, Sources Sought, Award Notice |
| Place-of-performance state | state | FL, TX, DC |
| Posted date range or look-back days | postedFrom / postedTo (MM/dd/yyyy, max 1 year) | last 7 days |
Posted-from and posted-to are required by the API; if you leave the dates blank, the Actor fills them from Look back (days) (default 7) through today. The window cannot be longer than one year. The same date window and filters are applied in extract mode (keywords match the title; NAICS, set-aside, notice type and place-of-performance state are applied while streaming the file).
ptype accepts multiple notice types in one request. title, ncode, typeOfSetAside and state are single-value filters: extra keywords, NAICS codes, set-asides or states are searched as separate combinations and each combination uses more of your daily quota. Prefer one value per filter when your key has a low cap. Page size is 1,000 (the official maximum) so pagination uses as few requests as possible. The official offset parameter is a page index (the second page is offset=1, not 1000).
Output fields
noticeId, title, solicitationNumber, noticeType, baseType, postedDate, responseDeadline, naicsCode, classificationCode, setAside, setAsideCode, active, archiveType, archiveDate, department, subTier, office, organizationName, organizationCode, popStreet, popCity, popState, popZip, popCountry, officeCity, officeState, officeZip, contacts (name, title, type, email, phone as published on the notice), awardNumber, awardAmount, awardDate, awardeeName, awardeeUei, awardeeCity, awardeeState, descriptionUrl, resourceLinks, additionalInfoLink, noticeUrl, uiLink.
In API mode the Actor does not download notice description HTML or attachments (each download would spend another API call). descriptionUrl and resourceLinks are returned with any api_key query parameter stripped; append your own key if you fetch them yourself. In extract mode those URL fields are typically empty because the daily file does not include the keyed description endpoint or attachment links; the other fields are mapped to the same schema. noticeUrl is always the public https://sam.gov/opp/{noticeId}/view link.
Sample record
{"title": "Janitorial Services","noticeType": "Solicitation","postedDate": "2026-11-20","responseDeadline": "2026-12-05T17:00:00-05:00","naicsCode": "561720","setAside": "Total Small Business Set-Aside (FAR 19.5)","setAsideCode": "SBA","department": "DEPARTMENT OF VETERANS AFFAIRS","popState": "FL","noticeUrl": "https://sam.gov/opp/abc123/view"}
Example inputs
Florida janitorial solicitations posted in the last week:
{"apiKey": "YOUR_SAM_GOV_PUBLIC_API_KEY","keywords": ["janitorial"],"naicsCodes": ["561720"],"noticeTypes": ["o", "k"],"states": ["FL"],"lookbackDays": 7,"maxResults": 50}
Small-business set-asides nationwide, last 3 days:
{"apiKey": "YOUR_SAM_GOV_PUBLIC_API_KEY","setAsideTypes": ["SBA"],"lookbackDays": 3,"maxResults": 100}
Schedule it as a bid-alert feed
Create an Apify Schedule to run daily with lookbackDays: 1 and your NAICS / set-aside / state filters, then send new rows to Google Sheets, Slack, a CRM or Zapier/Make. Watch maxApiCalls so a scheduled run cannot burn a small daily quota. Personal keys with a ~10 request/day cap are enough for a tight daily scan; they are not enough for large historical dumps.
Pricing
Pay per event: you pay for each opportunity saved to your dataset (the opportunity event) plus a small Actor-start fee. See the Pricing tab. The same price applies in API mode and extract mode. This Actor does not bundle or share a SAM.gov API key; live API mode uses only the key you paste into the secret input.
Data source and fair use
Data comes from the official SAM.gov Get Opportunities Public API, which returns the latest active version of each notice. Active notices are updated daily; archived notices are updated weekly (GSA). This Actor is not affiliated with or endorsed by GSA or SAM.gov. Always confirm details on the official notice before bidding.
Contact names, emails and phone numbers appear only when SAM.gov publishes them as points of contact on the notice. Use the data lawfully and follow anti-spam and privacy laws (CAN-SPAM, TCPA, GDPR where relevant) when contacting anyone.
FAQ
Do I have to provide an API key? No. Leave apiKey empty to use the official public daily extract (no login). Add a free SAM.gov public API key when you want live API results rather than yesterday's file.
Why would I still get a key? The Get Opportunities API is live and supports server-side filters. The extract is a daily snapshot of active notices, usually a few hours to a day behind, and is the official no-key source published on SAM.gov Data Services and data.gov.
The run stopped after a few requests. Check maxApiCalls (default 8) and your daily key quota. Narrow keywords, NAICS, state or the date window rather than raising the cap on a 10-request/day key.
Why is the description empty? The API returns a URL to the description, not the full text, and fetching that URL costs another request plus your key. The Actor keeps the sanitized URL in descriptionUrl.
Date errors? SAM.gov requires postedFrom and postedTo in MM/dd/yyyy and rejects ranges longer than one year. Enter dates as YYYY-MM-DD in the input form; the Actor converts them.
Does the Actor log or store my key in the dataset? No. The key is a secret input. Request URLs are never logged, and api_key is stripped from any output URLs. A key is never used unless you paste it into apiKey (or, on a local machine only, set SAM_GOV_API_KEY).