SAM.gov Scraper - Federal Contracts, RFPs, Contacts & Awards
Pricing
from $0.05 / 1,000 notices
SAM.gov Scraper - Federal Contracts, RFPs, Contacts & Awards
Scrape SAM.gov federal contract opportunities: solicitations, RFPs, sources sought and award notices with contracting officer e-mail and phone, NAICS/PSC titles, set-aside, deadline, attachments and history. Filters, monitor mode, market counts. No API key. $0.045 per 1,000 notices.
Pricing
from $0.05 / 1,000 notices
Rating
0.0
(0)
Developer
Top Api
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Features
Share
What does SAM.gov Scraper do?
SAM.gov Scraper turns SAM.gov Contract Opportunities, where every US federal agency posts the contracts it plans to award, into a dataset: one row per notice with the title, solicitation number, notice type, agency path, posted date and response deadline, plus the full notice record: description, NAICS and PSC codes with their titles, set-aside, the contracting officer's name, e-mail and phone, place of performance, and on award notices the award number, date, amount and the awardee's UEI, CAGE code and location. Add the attachment list (SOW, PWS, pricing sheets, amendments) with download addresses, the version history, or the files themselves.
- Every notice type: solicitations, combined synopsis/solicitations (RFQs), presolicitations, sources sought (RFIs), special notices, award notices, justifications, surplus sales and intent-to-bundle notices; active (about 45,000) or archived (5.6 million).
- Every way in: keywords (all words, any word or exact phrase), SAM.gov search addresses with your filters, notice ids or addresses, solicitation numbers, a file of ids.
- Every SAM.gov filter: notice type, NAICS and PSC codes or prefixes, set-aside, agency (by name or organization id), place of performance state, ZIP code and country, active or archived, posted, updated and response-due date ranges. SAM.gov applies them itself, so only matching notices are read and charged.
- Our own filters, before any charge: still open for responses, keywords in the title only, excluded words, award amount range, contact e-mail present, one notice per solicitation.
- Past the 10,000 limit: SAM.gov pages one search to 10,000 notices; larger searches are read in date ranges.
- Summary mode: counts of matching notices by notice type, set-aside, state, NAICS sector, department or month, without reading them.
- Monitor mode: only new notices and amendments on each scheduled run, with alerts to a webhook, Slack or Discord.
- No SAM.gov account, no API key, no login. Export as JSON, CSV or Excel, or read it through the Apify API and MCP.
What data can you get from SAM.gov?
| ๐ Title, solicitation number, notice id | ๐ท๏ธ Notice type, status, active, cancelled, archived | ๐ Posted, updated, response deadline + time zone, days left, archive date |
| ๐๏ธ Department, agency, office, office code | ๐ Contracting office address | ๐ข NAICS codes + titles, PSC code + title |
| ๐ฏ Set-aside code + name | ๐บ๏ธ Place of performance: address, city, state, ZIP, country | ๐ค Contracting officer name, title, e-mail, phone, fax |
| ๐ฅ Every point of contact | ๐ Award number, date, amount | ๐ข Awardee name, UEI, CAGE code, city, state, ZIP |
| ๐ Full description (text or HTML) | ๐ Attachments and links with download addresses | ๐ Version history: original, amendments, cancellations |
| ๐พ Downloaded files (key-value store) | ๐ Parent and related notice ids | ๐ Change type in monitor mode |
How to scrape SAM.gov with SAM.gov Scraper
- Create a free Apify account (you get $5 of free credit every month).
- Open SAM.gov Scraper and type keywords, e.g.
janitorial, or NAICS codes, or paste a SAM.gov search address. - Pick filters (notice types, set-asides, states, dates) and set Max results.
- Leave Notice record and Attachment list on; turn on Version history or Download attachment files if you need them.
- Press Start, then download the results from the Output tab as JSON, CSV or Excel.
โฌ๏ธ Input
| Field | What it does |
|---|---|
keywords | Words to search for, e.g. janitorial, cybersecurity. |
keywordMode | ALL words (default), ANY word, or the EXACT phrase. |
searchKeywordsSeparately | One search per keyword instead of one for all. |
keywordScope | anywhere (default) or title. |
excludeKeywords | Drop notices whose title or description holds one of these words. |
startUrls | SAM.gov search addresses (sam.gov/search/?index=opp&..., your filters are kept) or notice pages (sam.gov/opp/<id>/view). |
noticeIds | Notice ids (32 characters) or notice addresses; current or archived. |
solicitationNumbers | Every notice filed under these solicitation numbers. |
urlsFromFile | A text or CSV file of notice ids or addresses. |
noticeTypes | o Solicitation, k Combined Synopsis/Solicitation, p Presolicitation, r Sources Sought, s Special Notice, a Award Notice, u Justification, g Sale of Surplus Property, i Intent to Bundle. Names work too. |
naicsCodes | NAICS codes or prefixes: 541511, 5415, 54. |
pscCodes | PSC codes or prefixes: R425, R4. |
setAsideCodes | SBA, SBP, 8A, 8AN, HZC, HZS, SDVOSBC, SDVOSBS, WOSB, WOSBSS, EDWOSB, EDWOSBSS, LAS, IEE, ISBEE, BICiv, VSA, VSS, NONE. |
agencies | Department, agency or office names (Veterans Affairs, Defense Logistics Agency) or organization ids. |
states, placeOfPerformanceZip, countries | Place of performance: state codes or names, a ZIP code, three-letter country codes. |
status | active (default), inactive or all. |
postedFrom / postedTo / postedWithinDays | Posted date range, or the last N days. |
modifiedFrom / modifiedTo | Updated date range. |
responseDeadlineFrom / responseDeadlineTo | Response deadline range (notices without a deadline are left out). |
openForResponsesOnly | Drop notices whose deadline has passed (notices without one stay). |
awardedOnly, minAwardAmount, maxAwardAmount | Award notices only; award amount range in US dollars. |
onlyWithContactEmail | Only notices that name a contact e-mail. |
dedupeBySolicitation | Only the newest notice of each solicitation number. |
maxResults | Most notices for the run (default 100; 0 = every match). |
maxResultsPerSearch | Most notices per keyword or address. |
sortBy | newest (recently updated first, default), oldest, relevance, title, title_desc. |
includeDetails | The notice record (description, codes, contacts, award). On by default, in the notice price. |
includeDescription, descriptionFormat, descriptionMaxChars | Description on/off, text, html or both, and a length limit. |
includeAttachments | The attachment and link list. On by default; charged per notice that has one. |
includeHistory | Every version of the notice. Charged per notice. |
downloadAttachments, maxAttachmentSizeMb, maxAttachmentDownloads | Save the public files to the key-value store, up to a size and a count. Charged per file. |
mode, groupBy | aggregate = Summary mode, counted by noticeType, setAside, state, naicsSector, department or month. |
monitorMode, monitorStoreName, skipFirstRun, includeUpdates, emitUnchanged, resetMonitor | Monitor mode (below). |
webhookUrl, webhookHeaders, slackWebhookUrl, discordWebhookUrl, notificationLimit | Alerts after a run that found notices. |
proxyConfiguration, maxConcurrency, maxRequestRetries | Advanced. |
Field names from other SAM.gov actors are accepted too (maxItems, noticeType, setAsides, onlyNew, fetchDetails, openOnly...), so an input you already have works as it is.
Input JSON
{"keywords": ["janitorial"],"noticeTypes": ["o", "k"],"setAsideCodes": ["SBA", "SDVOSBC"],"states": ["VA", "MD", "DC"],"openForResponsesOnly": true,"maxResults": 200}
Paste the search you already built on SAM.gov
Set up a search on sam.gov/search with keywords and filters, copy the address from the browser and paste it into startUrls. Its keywords, keyword match, status, notice types, NAICS, PSC, set-asides, agencies, states and dates are read from the address.
Count a market without reading it (Summary mode)
{ "mode": "aggregate", "groupBy": "state", "naicsCodes": ["5415"], "noticeTypes": ["o", "k"] }
returns one row per state with the number of matching notices, its share and the search behind it. Group by noticeType, setAside, state, naicsSector, department or month (posted month, last 12 months or your posted range).
โฌ๏ธ Output
One row per notice. A real row from the prefill run on 2026-11-13 (run OmWyzKZTAE9ieVz8h; shortened: the description is cut and some empty columns are left out here, every column is in every row):
{"recordType": "opportunity","noticeId": "c355d58bb7ab4a2192559a967c98f38c","title": "Cleaning of MSGR guard and Embassy support staff assigned areas","solicitationNumber": "19SP5027Q0003","noticeType": "Solicitation","noticeTypeCode": "o","status": "active","active": true,"publishDate": "2026-11-13T08:41:31.000Z","modifiedDate": "2026-11-13T08:41:31.000Z","responseDate": "2026-12-14T17:30:00+01:00","responseTimeZone": "Europe/Madrid","daysUntilDeadline": 31,"archiveDate": "2026-12-29","department": "STATE, DEPARTMENT OF","agency": "STATE, DEPARTMENT OF","office": "U.S. EMBASSY MADRID","officeCode": "19SP50","organizationPath": "STATE, DEPARTMENT OF > STATE, DEPARTMENT OF > U.S. EMBASSY MADRID","officeCity": "WASHINGTON","officeState": "DC","naicsCode": "561720","naicsTitle": "Janitorial Services","pscCode": "S201","pscTitle": "HOUSEKEEPING- CUSTODIAL JANITORIAL","setAsideCode": "NONE","setAside": "No Set aside used","placeOfPerformance": {"streetAddress": null,"streetAddress2": null,"city": "Madrid","state": "ES-MD","stateName": "Madrid","zip": "28006","country": "ESP","countryName": "SPAIN"},"primaryContactName": "Jerad S. Tietz","primaryContactTitle": null,"primaryContactEmail": "tietzjs@state.gov","primaryContactPhone": "34915872161","descriptionText": "The U.S. Embassy in Madrid requires cleaning services at the US Government-owned property located at Calle Tambre, 35, Madrid.\n\nThe work covers the cleaning of the guard booth, guard dressing room and guard bathroom, and the Embassy support staff room and bathroom. The total area is approximately 27...","attachments": [{"name": "Signed Invitation Letter.pdf","type": "file","url": "https://sam.gov/api/prod/opps/v3/opportunities/resources/files/3bcdb9d996f84aa0b60223d857e5cd98/download","size": 252827,"mimeType": ".pdf","postedDate": "2026-11-13T08:41:31.327Z"},{"name": "RFQ 19SP5027Q0003.pdf","type": "file","url": "https://sam.gov/api/prod/opps/v3/opportunities/resources/files/65cc6f80fe944b8780eff0fe64359726/download","size": 442962,"mimeType": ".pdf","postedDate": "2026-11-13T08:41:31.327Z"}],"attachmentCount": 2,"samUrl": "https://sam.gov/opp/c355d58bb7ab4a2192559a967c98f38c/view","detailsFetched": true,"attachmentsFetched": true,"source": "sam.gov","scrapedAt": "2026-11-13T09:09:36.878Z"}
Fields
How often each field is filled, counted on 319 notices (the 40 newest active notices of every type, plus 20 archived ones) read on 2026-11-13:
| Field | Filled | Notes |
|---|---|---|
noticeId, title, noticeType, publishDate, modifiedDate, archiveDate, samUrl, contacts | 100% | |
primaryContactEmail | 100% | |
solicitationNumber | 97% | |
department, agency, office, organizationPath | 97% (100% at run time) | the rest are named from SAM.gov's federal hierarchy during the run |
officeCity / officeAddress | 95% | |
descriptionText | 94% | |
pscCode + pscTitle | 94% | |
naicsCode + naicsTitle | 93% | |
attachments | 82% | the other notices have none |
responseDate | 70% | 84 of 84 solicitations; sources sought and special notices often have none |
placeOfPerformance | 62% | |
primaryContactPhone | 43% | agencies often give only an e-mail |
setAsideCode | 37% | full-and-open buys have none |
awardNumber, awardDate, awardAmount, awardeeName | 40 of 40 award notices | award notices only |
awardeeUei, awardeeCageCode | 39 of 40 award notices | |
awardeeCity, awardeeState, awardeeZip | 9 of 40 award notices | SAM.gov fills the awardee's location on few |
justificationAuthority | 40 of 40 justifications | |
history | 100% | Version history on |
Every column is in every row (empty ones are null or []), so a CSV export keeps one shape. The dataset has four views: Opportunities, Contracting officers, Awards and Summary rows.
How can I use SAM.gov data?
- Bid pipelines: a daily list of solicitations in your NAICS codes and set-asides, with deadlines and the contracting officer's e-mail, straight into a CRM or a spreadsheet.
- Capture planning: award notices with the awardee, UEI, amount and date show who wins which work at which office.
- Subcontracting and teaming: award notices name the prime contractor; presolicitations and sources sought show work before it is solicited.
- Market sizing: Summary mode counts notices by state, set-aside, NAICS sector, department or month in seconds.
- Document pipelines: the attachment list (or the files themselves) feeds proposal tools and AI assistants.
How much does it cost to scrape SAM.gov?
Pay per result, no monthly fee, no start fee:
| Event | Price |
|---|---|
| Notice (with its record), or one summary row | $0.045 per 1,000 ($0.000045 each) |
| Attachment list (only notices that have one) | $0.063 per 1,000 ($0.000063 each) |
| Version history (when on) | $0.0009 per notice |
| Attachment file saved (when on) | $0.0009 per file |
100 notices with their records and attachment lists cost about $0.01; 10,000 cost about $1. Platform usage is included. Set Maximum cost per run in the run options and the run stops cleanly at it: notices are fitted to the limit before they are charged, and nothing is charged twice.
Integrations, API, scheduling & MCP
Run SAM.gov Scraper from the Apify API, the Apify JavaScript or Python client, Zapier, Make, n8n, Google Sheets, or an AI agent through the Apify MCP server. Results are in the run's dataset as JSON, CSV, Excel, XML or HTML.
Run it on a schedule
- Turn on Monitor mode and give it a Monitor name (e.g.
janitorial-va). - Save the input as a task and add a daily schedule.
- Each run returns only notices that are new since the last run (
changeType: NEW) and amendments of solicitations seen before (UPDATED, withpreviousNoticeId); a day with nothing new returns nothing and charges nothing. - Add a
webhookUrl,slackWebhookUrlordiscordWebhookUrlto be told when something new comes in.
With the API:
curl -X POST "https://api.apify.com/v2/acts/TopApi~sam-gov-scraper/runs?token=<YOUR_TOKEN>" \-H "Content-Type: application/json" \-d '{"keywords":["cybersecurity"],"noticeTypes":["o","k","r"],"monitorMode":true,"monitorStoreName":"cyber"}'
Turning an add-on on later (say Version history) brings each notice delivered earlier without it back once with it (changeType: DETAILS).
Limits & empty runs
- SAM.gov pages one search to 10,000 notices. With
newestoroldestsort, larger searches are read in date ranges; withrelevanceortitlesort a search stops at 10,000. - The search index holds the latest version of each notice; earlier versions are read by notice id or through Version history.
- Speed: about 1,000 notices with their records in 6-10 seconds at the default 256 MB; for pulls of thousands, pick 1 GB memory in the run options (3,000 notices in 25 seconds, same price per notice).
- SAM.gov refuses a connection that has sent tens of thousands of requests in a few minutes; the actor then moves to an Apify datacenter proxy (and a US residential one if needed) by itself and carries on.
- Only public attachments are listed and downloaded; files SAM.gov marks for registered users only are left out.
- An empty result says why in the run's status: no match, everything filtered out, nothing new since the last monitor run, or the spending limit.
FAQ
How much does SAM.gov Scraper cost?
$0.045 per 1,000 notices with their full records, plus $0.063 per 1,000 for the attachment list on notices that have one. No start fee and no monthly fee.
Do I need a SAM.gov account or an API key?
No. The actor reads the same public pages anyone can open on SAM.gov, without logging in and without an api.sam.gov key.
Does it give the contracting officer's e-mail and phone?
Yes: every point of contact SAM.gov shows (name, title, e-mail, phone, fax), with the primary and secondary contact also in their own columns. Agencies give an e-mail on almost every notice and a phone on about four in ten.
Can it get award notices and the winning contractor?
Yes. Award notices carry the award number, date, amount and the awardee's name, UEI, CAGE code and location. Use awardedOnly and minAwardAmount to list only awards above a size.
Can I get the solicitation documents?
The attachment list gives every public file and link with a download address that needs no account. Turn on Download attachment files to save the files themselves to the run's key-value store.
Can I search archived notices?
Yes: set status to inactive or all. SAM.gov keeps about 5.6 million archived notices.
How do I monitor new SAM.gov opportunities every day?
Turn on Monitor mode and schedule the actor daily; see Run it on a schedule.
Can I use SAM.gov Scraper with the Apify API or an MCP server?
Yes, see Integrations.
Why did my run return no results?
The status message says which: no notice matched (widen the keywords, or set status to all), everything matched was filtered out, nothing was new since the last monitor run, or the spending limit was below the price of one notice.
Your feedback
Something missing or not working? Open an issue on the actor's Issues tab and it will be looked at.