SAM.gov Scraper - Federal Contracts, RFPs, Contacts & Awards avatar

SAM.gov Scraper - Federal Contracts, RFPs, Contacts & Awards

Pricing

from $0.05 / 1,000 notices

Go to Apify Store
SAM.gov Scraper - Federal Contracts, RFPs, Contacts & Awards

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

Top Api

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

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

  1. Create a free Apify account (you get $5 of free credit every month).
  2. Open SAM.gov Scraper and type keywords, e.g. janitorial, or NAICS codes, or paste a SAM.gov search address.
  3. Pick filters (notice types, set-asides, states, dates) and set Max results.
  4. Leave Notice record and Attachment list on; turn on Version history or Download attachment files if you need them.
  5. Press Start, then download the results from the Output tab as JSON, CSV or Excel.

โฌ‡๏ธ Input

FieldWhat it does
keywordsWords to search for, e.g. janitorial, cybersecurity.
keywordModeALL words (default), ANY word, or the EXACT phrase.
searchKeywordsSeparatelyOne search per keyword instead of one for all.
keywordScopeanywhere (default) or title.
excludeKeywordsDrop notices whose title or description holds one of these words.
startUrlsSAM.gov search addresses (sam.gov/search/?index=opp&..., your filters are kept) or notice pages (sam.gov/opp/<id>/view).
noticeIdsNotice ids (32 characters) or notice addresses; current or archived.
solicitationNumbersEvery notice filed under these solicitation numbers.
urlsFromFileA text or CSV file of notice ids or addresses.
noticeTypeso 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.
naicsCodesNAICS codes or prefixes: 541511, 5415, 54.
pscCodesPSC codes or prefixes: R425, R4.
setAsideCodesSBA, SBP, 8A, 8AN, HZC, HZS, SDVOSBC, SDVOSBS, WOSB, WOSBSS, EDWOSB, EDWOSBSS, LAS, IEE, ISBEE, BICiv, VSA, VSS, NONE.
agenciesDepartment, agency or office names (Veterans Affairs, Defense Logistics Agency) or organization ids.
states, placeOfPerformanceZip, countriesPlace of performance: state codes or names, a ZIP code, three-letter country codes.
statusactive (default), inactive or all.
postedFrom / postedTo / postedWithinDaysPosted date range, or the last N days.
modifiedFrom / modifiedToUpdated date range.
responseDeadlineFrom / responseDeadlineToResponse deadline range (notices without a deadline are left out).
openForResponsesOnlyDrop notices whose deadline has passed (notices without one stay).
awardedOnly, minAwardAmount, maxAwardAmountAward notices only; award amount range in US dollars.
onlyWithContactEmailOnly notices that name a contact e-mail.
dedupeBySolicitationOnly the newest notice of each solicitation number.
maxResultsMost notices for the run (default 100; 0 = every match).
maxResultsPerSearchMost notices per keyword or address.
sortBynewest (recently updated first, default), oldest, relevance, title, title_desc.
includeDetailsThe notice record (description, codes, contacts, award). On by default, in the notice price.
includeDescription, descriptionFormat, descriptionMaxCharsDescription on/off, text, html or both, and a length limit.
includeAttachmentsThe attachment and link list. On by default; charged per notice that has one.
includeHistoryEvery version of the notice. Charged per notice.
downloadAttachments, maxAttachmentSizeMb, maxAttachmentDownloadsSave the public files to the key-value store, up to a size and a count. Charged per file.
mode, groupByaggregate = Summary mode, counted by noticeType, setAside, state, naicsSector, department or month.
monitorMode, monitorStoreName, skipFirstRun, includeUpdates, emitUnchanged, resetMonitorMonitor mode (below).
webhookUrl, webhookHeaders, slackWebhookUrl, discordWebhookUrl, notificationLimitAlerts after a run that found notices.
proxyConfiguration, maxConcurrency, maxRequestRetriesAdvanced.

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:

FieldFilledNotes
noticeId, title, noticeType, publishDate, modifiedDate, archiveDate, samUrl, contacts100%
primaryContactEmail100%
solicitationNumber97%
department, agency, office, organizationPath97% (100% at run time)the rest are named from SAM.gov's federal hierarchy during the run
officeCity / officeAddress95%
descriptionText94%
pscCode + pscTitle94%
naicsCode + naicsTitle93%
attachments82%the other notices have none
responseDate70%84 of 84 solicitations; sources sought and special notices often have none
placeOfPerformance62%
primaryContactPhone43%agencies often give only an e-mail
setAsideCode37%full-and-open buys have none
awardNumber, awardDate, awardAmount, awardeeName40 of 40 award noticesaward notices only
awardeeUei, awardeeCageCode39 of 40 award notices
awardeeCity, awardeeState, awardeeZip9 of 40 award noticesSAM.gov fills the awardee's location on few
justificationAuthority40 of 40 justifications
history100%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:

EventPrice
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

  1. Turn on Monitor mode and give it a Monitor name (e.g. janitorial-va).
  2. Save the input as a task and add a daily schedule.
  3. Each run returns only notices that are new since the last run (changeType: NEW) and amendments of solicitations seen before (UPDATED, with previousNoticeId); a day with nothing new returns nothing and charges nothing.
  4. Add a webhookUrl, slackWebhookUrl or discordWebhookUrl to 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 newest or oldest sort, larger searches are read in date ranges; with relevance or title sort 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.