SAM.gov Scraper — Federal Contract Opportunities
Pricing
from $1.60 / 1,000 opportunity returneds
SAM.gov Scraper — Federal Contract Opportunities
Search public SAM.gov federal contract opportunities through SAM.gov's public API. Returns solicitations, sources sought, awards, contacts, deadlines, set-asides and direct SAM.gov links.
Pricing
from $1.60 / 1,000 opportunity returneds
Rating
0.0
(0)
Developer
Khadin Akbar
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
a day ago
Last modified
Categories
Features
Share
What it does: searches public U.S. federal contract notices on SAM.gov and returns one clean row per notice: solicitations, sources sought, presolicitations, special notices and awards. No SAM.gov account, no login and no key needed.
Why people use it: capture teams, bid writers, sales teams selling to government, and AI agents need a daily list of new bids that match their NAICS or PSC codes, with the contracting contact, deadline and full text in the same row.
| You get | Example |
|---|---|
| Notice and solicitation numbers, type, status, amendments | Combined Synopsis/Solicitation, Published, 2 amendments |
| Posted, modified and response dates, plus days left | 2026-12-17, daysUntilDeadline: 25 |
| NAICS, PSC, set-aside | 541512, R499, SBA |
| Department, sub-tier agency, office, place of work | DEPT OF THE NAVY, Norfolk, VA |
| Contracting contacts (public business details on the notice) | name, email, phone |
| Full description as plain text | cleaned of formatting |
| Attachment list with file names and download links | SOW.pdf, Amendment 001.pdf |
| Award winner, award amount and date on award notices | winner name, UEI, CAGE |
| Direct SAM.gov link to the notice | https://sam.gov/opp/<id>/view |
What's new in 1.1
- Works again after SAM.gov stopped accepting the old public search route. Runs no longer need any key.
- Full description text, PSC and several NAICS, set-aside and state codes in one run.
- Look up notices by notice ID, SAM.gov link or solicitation number.
- Closed notices and awards, going back years. Long date ranges are split automatically past SAM.gov's 10,000-per-search limit.
- Monitor mode for schedules: only new or changed notices, unchanged ones are free.
- Optional filters to leave out departments or PSC groups (for example defense or weapons notices).
- Lower, tiered price and a smaller default memory size.
How to use it
Recent software solicitations in two NAICS codes:
{ "query": "software", "noticeTypes": ["o", "k"], "naicsCodes": ["541511", "541512"], "maxResults": 100 }
Small-business notices due in December, Virginia only:
{ "setAsideCodes": ["SBA"], "states": ["VA"], "responseDueFrom": "2026-12-01", "responseDueTo": "2026-12-31", "maxResults": 250 }
Look up notices you already track:
{ "solicitationNumbers": ["N0038327QPA59"], "noticeUrls": ["https://sam.gov/opp/5e91e0ad90a74667bb6130629c7a4158/view"] }
Daily alert (schedule it in Apify; the first run returns everything, later runs only what is new or changed):
{ "naicsCodes": ["541512"], "noticeTypes": ["o", "k", "r"], "postedFrom": "2026-11-01", "monitorMode": true, "maxResults": 500 }
Past awards for a PSC code:
{ "pscCodes": ["R499"], "noticeTypes": ["a"], "status": "closed", "postedFrom": "2025-01-01", "maxResults": 1000 }
Inputs
| Field | Purpose |
|---|---|
query | Words to search for. |
noticeTypes | o solicitation, k combined synopsis, p presolicitation, r sources sought, s special notice, a award, u justification, g surplus sale, i intent to bundle. |
naicsCodes, pscCodes, setAsideCodes, states | Lists of codes. Old single fields (naicsCode, setAsideCode, state) still work. |
agency | Department or agency name. |
status | all (default), open or closed. |
postedFrom, postedTo | Posted-date range. Defaults to the last 30 days when you give no dates, deadlines or IDs. |
responseDueFrom, responseDueTo, modifiedFrom | Deadline range, or "changed since". |
noticeIds, noticeUrls, solicitationNumbers | Look up specific notices (up to 500). Search filters are ignored. |
monitorMode | Only new or changed notices since the last run with the same filters. |
excludeDepartments, excludePscGroups | Leave out notices from these departments or PSC groups. Not charged. |
includeDetails | On by default (contacts, full text, attachments). Turn off for lighter rows. |
maxResults | Cap on rows written and charged. Default 100, up to 100,000. Free plan: 25 per run. |
Output
The default dataset has one row per notice. Fields SAM.gov leaves empty are null, never missing. detailsComplete is false if a notice page could not be read; that row then holds search-level fields only. Open the dataset's Overview view for a table sorted for triage, or download JSON, CSV or Excel.
The key-value store also holds OUTPUT and RUN_SUMMARY with the run outcome, counts, warnings and an agentSummary for AI agents.
Run outcomes
COMPLETE: everything fetched.PARTIAL: rows returned, but some pages or notice pages failed, or your charge limit was reached. SeeRUN_SUMMARY.VALID_EMPTY: SAM.gov answered and nothing matched. Widen the filters.INVALID_INPUT: a filter needs fixing; the run says which.UPSTREAM_FAILED: SAM.gov gave no usable data. The run fails and you are not charged for rows that were not delivered.
Pricing
Pay per event. You pay for notices delivered, tiered by your Apify plan, plus a tiny start fee.
| Plan | Per notice returned |
|---|---|
| Free | $0.0025 |
| Bronze | $0.0022 |
| Silver | $0.0019 |
| Gold and above | $0.0016 |
Start fee: $0.00005 per GB of run memory. Memory is chosen from your maxResults (256 MB up to 500, 512 MB up to 5,000, 1 GB above).
| Run size | Free plan | Gold plan |
|---|---|---|
| 25 notices | $0.063 | $0.040 |
| 100 notices | $0.250 | $0.160 |
| 1,000 notices | $2.50 | $1.60 |
Notices you exclude with the exclude filters and notices skipped by monitor mode are not charged.
API and AI agents
curl -X POST 'https://api.apify.com/v2/acts/khadinakbar~sam-gov-scraper/runs?token=YOUR_APIFY_TOKEN' \-H 'content-type: application/json' \-d '{"query":"cybersecurity","noticeTypes":["o","r"],"maxResults":25}'
Agents can read agentSummary in OUTPUT for counts and a next step, then page through the dataset.
Good to know
- Data is public notice information published by U.S. federal agencies on SAM.gov. This Actor is not affiliated with or endorsed by SAM.gov or the U.S. General Services Administration.
- SAM.gov returns at most 10,000 results per search; date ranges are split automatically so you get more, and the run tells you if one day alone is larger.
- Contracting contacts are business contact details that agencies publish on the notice. Use them for lawful procurement purposes and follow the rules in each solicitation.
- Always check the notice on SAM.gov before bidding.
Questions
Do I need a SAM.gov account or key? No.
Can I get closed notices and awards? Yes: status: "closed" or notice type a.
How do I get alerts? Schedule the Actor with monitorMode: true.
Why was a run FAILED? SAM.gov did not answer after retries. Try again later; undelivered rows are not charged.