SAM.gov Federal Contracts & Bid Opportunities avatar

SAM.gov Federal Contracts & Bid Opportunities

Pricing

from $1.40 / 1,000 notices

Go to Apify Store
SAM.gov Federal Contracts & Bid Opportunities

SAM.gov Federal Contracts & Bid Opportunities

Search SAM.gov federal contract opportunities from the official daily public data file: solicitations, sources sought and award notices with agency, NAICS, PSC, set-aside, deadline and award amount. Filter by date, keyword, NAICS, PSC, set-aside, notice type, agency and state. No login, no API key.

Pricing

from $1.40 / 1,000 notices

Rating

0.0

(0)

Developer

Justaduck

Justaduck

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

3 hours ago

Last modified

Features

Limited permissions

Share

SAM.gov Federal Contracts & Bid Opportunities

SAM.gov federal contract opportunities as a clean table: solicitations, sources sought, award notices and more, filtered by date, keyword, NAICS, PSC, set-aside, agency and state.

  • What you get: one row per notice with title, noticeType, solicitationNumber, department / office, postedDate, responseDeadline, naicsCode, pscCode, setAside, place of performance, award fields (awardDate, awardAmount, awardee), description and links to SAM.gov. Contracting officer contacts only if you turn them on.
  • What it costs: US$2.00 per 1,000 notices plus US$0.0005 per run start. Apify's free plan (US$5 of usage a month) covers about 2,500 notices. That is the price on Apify's Free plan; on paid Apify plans it goes down to US$1.40 per 1,000 notices, the "from" price on the Store page.
  • Try it: Click Start on the prefilled form: it returns up to 5 notices from the newest posting day (at most US$0.01005) in a few seconds.

Search US federal contract opportunities (solicitations, presolicitations, sources sought, award notices, special notices and more) and get them as clean JSON, CSV or Excel. The data comes from SAM.gov's official public data extract – the Contract Opportunities file that SAM.gov publishes for download under Data Services (ContractOpportunitiesFullCSV.csv, public version). No login, no API key.

  • Updated once a day. SAM.gov regenerates the file once a day (around 04:30 UTC in our checks). Every result carries dataUpdatedAt, the time SAM.gov last updated the file, so you always know how fresh the data is. This Actor is not real-time: a notice posted an hour ago appears after SAM.gov's next daily refresh.
  • Quick for recent notices. The file is about 230 MB, newest notices first. The Actor reads only the beginning of the file and stops as soon as it has enough notices (maxItems) or has passed your date range – a quick 5-notice run reads only a few kilobytes. It checks on every run that the dates really are in newest-first order; if they are not, it reads the whole file instead and says so in the log, so nothing is missed.
  • Contracting officer contacts only if you ask. SAM.gov's notices list a primary and secondary point of contact (name, title, work e-mail, phone, fax). They are left empty by default; turn on includeContacts to get them exactly as SAM.gov publishes them. The description is SAM.gov's original text: e-mail addresses and phone numbers in it are always masked, but names mentioned in it are not removed (see below; you can turn the description off).

How to use the SAM.gov scraper

  1. Open this Actor on Apify Store and try it in Apify Console. A free Apify account is enough; no credit card is needed.
  2. The input form is prefilled with a small example: it returns up to 5 notices from the newest posting day in SAM.gov's file. Click Start to try it; it finishes in a few seconds.
  3. Set your own filters: Keywords, NAICS codes, PSC codes, Set-aside codes, Notice types, Agencies or Place-of-performance states, and a date range (Posted within the last N days or Posted from / Posted to). Set Max items to cap the run and its cost.
  4. Click Start and open the Output tab when the run finishes. Preview the notices as a table, or export them as JSON, CSV or Excel.
  5. To automate it, save the input as a task and schedule it, call the Actor through the Apify API, or send the results to Make, Zapier, n8n, Slack or a webhook with Apify integrations.

What you can filter

All filters are optional. Different filters are combined with AND; several values inside one filter are combined with OR. All filtering happens on the official file rows.

InputWhat it does
postedWithinDaysCalendar days counted back from the newest posting date in today's file, including that day. 1 (default) = the newest day, usually yesterday (US Eastern time).
postedFrom, postedToFixed date range (YYYY-MM-DD, inclusive). postedFrom overrides postedWithinDays; leave postedTo empty for "up to the newest day".
keywordsWords or phrases found in the title or description (case-insensitive).
naicsCodesNAICS code or prefix, 2–6 digits (5415 matches 541511, 541512, …).
pscCodesProduct/Service Code (PSC, SAM.gov ClassificationCode) or prefix, e.g. R4, D3, 7030.
setAsideCodesSAM.gov set-aside codes, e.g. SBA, SBP, 8A, 8AN, HZC, SDVOSBC, WOSB, EDWOSB, ISBEE, VSA, NONE.
noticeTypesExact notice types, e.g. Solicitation, Combined Synopsis/Solicitation, Presolicitation, Sources Sought, Award Notice, Special Notice, Justification.
agenciesPart of the department, sub-tier or office name, e.g. Veterans Affairs, Army, NASA.
statesTwo-letter code of the place-of-performance state, e.g. VA, CA.
maxItemsMaximum number of notices to return. Default 1,000, maximum 20,000 (the form is pre-filled with 5 for a quick first try). The Actor stops reading as soon as it has that many; the log then says that more matching notices are available.
includeContactsReturn the contracting officer points of contact published in each notice (default false). Off: the ten contact fields are null. On: they are returned exactly as in SAM.gov's file. See FAQ.
includeDescriptionInclude the description text (default true). Set to false to leave it out completely (description = null), for example if you do not want any names that appear in the original text.

Values that are not valid (for example a NAICS code with letters) are skipped and listed in the run's SUMMARY record with the reason; the rest of the search still runs.

Input example

{
"postedWithinDays": 7,
"naicsCodes": ["5415"],
"setAsideCodes": ["SBA", "SDVOSBC"],
"states": ["VA", "MD", "DC"],
"maxItems": 500
}

Output example

A real result (posted 2026-11-20, from the 2026-11-21 file; default settings, so the contact fields are null):

{
"noticeId": "40d6703a465b4814802f744ca9f00df4",
"title": "JAX and TBW WFO CARPET REPLACEMENT",
"solicitationNumber": "1305M327Q0043",
"department": "COMMERCE, DEPARTMENT OF",
"cgac": "013",
"subTier": "NATIONAL OCEANIC AND ATMOSPHERIC ADMINISTRATION",
"fpdsCode": "1330",
"office": "DEPT OF COMMERCE NOAA",
"aacCode": "1305M3",
"postedDate": "2026-11-20",
"postedDateTimeRaw": "2026-11-20 16:11:59",
"noticeType": "Combined Synopsis/Solicitation",
"baseType": "Combined Synopsis/Solicitation",
"archiveType": "auto15",
"archiveDate": "2026-12-25",
"setAsideCode": "SDVOSBC",
"setAside": "Service-Disabled Veteran-Owned Small Business (SDVOSB) Set-Aside (FAR 19.14)",
"responseDeadline": "2026-12-10T17:00:00.000Z",
"responseDeadlineRaw": "2026-12-10T12:00:00-05:00",
"naicsCode": "238330",
"pscCode": "S214",
"popStreetAddress": null,
"popCity": null,
"popState": "FL",
"popZip": null,
"popCountry": "USA",
"active": true,
"awardNumber": null,
"awardDate": null,
"awardAmount": null,
"awardCurrency": null,
"awardAmountRaw": null,
"awardee": null,
"organizationType": "OFFICE",
"officeState": "WA",
"officeCity": "SEATTLE",
"officeZip": "98115",
"officeCountryCode": "USA",
"additionalInfoLink": null,
"description": "JAX and TBW Weather Forecast Office (WFO) Carpet Replacement Services Please see the attachments for all details. Pay special attention to sections 2, 6, and 7 if interested in this RFQ.",
"primaryContactTitle": null,
"primaryContactName": null,
"primaryContactEmail": null,
"primaryContactPhone": null,
"primaryContactFax": null,
"secondaryContactTitle": null,
"secondaryContactName": null,
"secondaryContactEmail": null,
"secondaryContactPhone": null,
"secondaryContactFax": null,
"sourceUrl": "https://sam.gov/workspace/contract/opp/40d6703a465b4814802f744ca9f00df4/view",
"dataUpdatedAt": "2026-11-21T04:30:20.000Z"
}

Output fields

Values are copied from the official file; empty cells become null (nothing is guessed or filled in by AI).

FieldTypeDescription (SAM.gov column)
noticeIdstringSAM.gov notice ID (NoticeId); unique key
titlestring | nullNotice title (Title)
solicitationNumberstring | nullSolicitation number (Sol#)
departmentstring | nullDepartment / independent agency (Department/Ind.Agency)
cgacstring | nullCGAC agency code (CGAC)
subTierstring | nullSub-tier agency (Sub-Tier)
fpdsCodestring | nullFPDS agency code (FPDS Code)
officestring | nullContracting office (Office)
aacCodestring | nullActivity address code (AAC Code)
postedDatestringPosting date, YYYY-MM-DD (date part of PostedDate)
postedDateTimeRawstringPostedDate exactly as published. The file gives no time zone; it appears to be US Eastern time, so it is not converted to UTC
noticeTypestring | nullCurrent notice type (Type)
baseTypestring | nullOriginal notice type (BaseType)
archiveTypestring | nullArchive rule (ArchiveType)
archiveDatestring | nullArchive date, YYYY-MM-DD (ArchiveDate)
setAsideCodestring | nullSet-aside code as published (SetASideCode; a few rows use the form ["SBA"], which the set-aside filter understands)
setAsidestring | nullSet-aside description (SetASide)
responseDeadlinestring | nullResponse deadline in ISO 8601 UTC when SAM.gov gives a UTC offset; YYYY-MM-DD when only a date is given; null when a time is given without a time zone (ResponseDeadLine)
responseDeadlineRawstring | nullResponseDeadLine exactly as published
naicsCodestring | nullNAICS code (NaicsCode)
pscCodestring | nullProduct/Service Code (ClassificationCode)
popStreetAddressstring | nullPlace of performance street address (PopStreetAddress)
popCitystring | nullPlace of performance city (PopCity)
popStatestring | nullPlace of performance state (PopState)
popZipstring | nullPlace of performance ZIP (PopZip)
popCountrystring | nullPlace of performance country (PopCountry)
activeboolean | nullActive (Yes → true, No → false)
awardNumberstring | nullAward number (AwardNumber)
awardDatestring | nullAward date, YYYY-MM-DD (AwardDate)
awardAmountnumber | nullAward amount as a number (Award$); null when the cell is not a plain amount
awardCurrencystring | nullUSD when awardAmount is set
awardAmountRawstring | nullAward$ exactly as published
awardeestring | nullAwardee name and address as published (Awardee)
organizationTypestring | nullOrganization type of the office (OrganizationType)
officeStatestring | nullContracting office state (State)
officeCitystring | nullContracting office city (City)
officeZipstring | nullContracting office ZIP (ZipCode)
officeCountryCodestring | nullContracting office country (CountryCode)
additionalInfoLinkstring | nullAdditional information link, when it is an absolute URL (AdditionalInfoLink)
descriptionstring | nullDescription text from the file (Description), with e-mail addresses and phone numbers replaced by [email removed] / [phone removed]; names in the text are kept. null when includeDescription is false
primaryContactTitlestring | nullPrimary point of contact, job title (PrimaryContactTitle). null unless includeContacts is on
primaryContactNamestring | nullPrimary point of contact, name (PrimaryContactFullname). null unless includeContacts is on
primaryContactEmailstring | nullPrimary point of contact, work e-mail (PrimaryContactEmail). null unless includeContacts is on
primaryContactPhonestring | nullPrimary point of contact, work phone (PrimaryContactPhone). null unless includeContacts is on
primaryContactFaxstring | nullPrimary point of contact, fax (PrimaryContactFax). null unless includeContacts is on
secondaryContactTitlestring | nullSecondary point of contact, job title (SecondaryContactTitle). null unless includeContacts is on
secondaryContactNamestring | nullSecondary point of contact, name (SecondaryContactFullname). null unless includeContacts is on
secondaryContactEmailstring | nullSecondary point of contact, work e-mail (SecondaryContactEmail). null unless includeContacts is on
secondaryContactPhonestring | nullSecondary point of contact, work phone (SecondaryContactPhone). null unless includeContacts is on
secondaryContactFaxstring | nullSecondary point of contact, fax (SecondaryContactFax). null unless includeContacts is on
sourceUrlstringOfficial SAM.gov notice page (Link)
dataUpdatedAtstring | nullWhen SAM.gov last updated the file (ISO 8601 UTC)

Contacts and personal data

The file has ten contact columns: PrimaryContactTitle, PrimaryContactFullname, PrimaryContactEmail, PrimaryContactPhone, PrimaryContactFax and the same five for the secondary contact. These are the contracting officers SAM.gov names in each official notice, with their government work contact details. By default they are not returned (the fields are null). If you turn on includeContacts, they are returned exactly as SAM.gov publishes them – the Actor does not add, guess or enrich anything. They come from a public official source, but they are still details of individual people: you are responsible for using them lawfully (for example anti-spam and data-protection rules).

The description is the official text as SAM.gov published it. The Actor masks e-mail addresses and phone numbers in it (best effort: unusual spellings can slip through), but it does not remove names: many descriptions say things like "contact the Contract Specialist, Jane Doe". If you want to avoid that text entirely, set includeDescription to false. Each notice's sourceUrl links to the official SAM.gov page, where the contracting office's points of contact are shown in context.

Attachments are not downloaded; the description is the text included in SAM.gov's file.

Run time limit and scheduled runs

  • Time limit: one run lasts at most 20 minutes. Results are written page by page as they arrive, so when the limit is reached everything already written is kept (and charged as usual). In the run summary (SUMMARY in the run's key-value store) the input that was running is marked partial ("time budget … more results are available") and inputs not reached are marked not-run (nothing charged for them).
  • Speed: Reading the whole SAM.gov file (about 230 MB) takes about 4–5 minutes; a 1-day window reads only the first few MB. For long date ranges, use fewer days per run.
  • When the source fails: a page that fails its format check is not written and the run ends as failed (results from earlier pages are kept); an input that keeps failing (timeouts, server errors) is marked failed or partial, and after 3 such inputs in a row the remaining inputs of that source are marked not-run.
  • SAM.gov maintenance: during SAM.gov's scheduled maintenance the download link shows a web page instead of the file. The Actor waits 30 seconds and tries again, 3 times (about 1.5 minutes in total); if SAM.gov is still down, the run fails with "SAM.gov answered with a web page (probably scheduled maintenance)…" and no results are charged (only the run start fee applies). Run it again later.
  • Scheduled runs: This Actor does not keep track of what earlier runs returned. For a daily feed, schedule it with postedWithinDays: 2 (a little overlap so nothing falls between runs): each run returns, and charges for, every notice in that window, including ones you got the day before. Remove those repeats by noticeId (the same notice returned again has the same noticeId). An amendment is published by SAM.gov as a new notice with a new noticeId and the same solicitationNumber, so to follow one solicitation and its amendments, group rows by solicitationNumber. Some notices have no solicitation number (solicitationNumber is null); those can only be told apart by noticeId.

Pricing

Pay per result: US$2.00 per 1,000 notices (US$0.002 each) plus US$0.0005 per run start. You pay only for notices returned; a run that finds nothing costs only the start fee.

RunCost
Quick try (pre-filled form, 5 notices)5 × 0.002 + 0.0005 = US$0.0105
200 noticesUS$0.40005
1,000 noticesUS$2.00005

Discounts by Apify plan (per 1,000 results): Free $2.00, Bronze $1.80, Silver $1.60, Gold $1.40.

Free plan: Apify's free plan includes US$5 of prepaid usage every month (no credit card needed). With this Actor that is enough for about 2,500 notices a month.

Use with AI agents (MCP)

AI agents can run this Actor through the Apify MCP server (Model Context Protocol). There are two ways to connect:

  • Load this Actor as its own tool: add https://mcp.apify.com?tools=justaduck/sam-gov-contract-opportunities to your MCP client. The server exposes it as the tool justaduck--sam-gov-contract-opportunities.
  • Let the agent find it: connect to https://mcp.apify.com (default tools). The agent can find this Actor with search-actors, read its input schema with fetch-actor-details and start it with call-actor.

On first connection you sign in to Apify with OAuth (or send your Apify API token as a Bearer header). The agent passes the same fields as in the Input section. A run returns its dataset ID, and the agent reads the rows with get-dataset-items. Runs started this way run on your Apify account and are charged as in the Pricing section; call-actor also accepts maxTotalChargeUsd in callOptions to cap what one run can spend.

FAQ

How fresh is the data? As fresh as SAM.gov's daily file. Check dataUpdatedAt on any result. Running more than once a day returns the same data until SAM.gov's next refresh.

What does "last 1 day" mean? The newest posting date found in the file (normally yesterday, US Eastern time) – not the last 24 hours. postedWithinDays: 7 returns that day plus the six calendar days before it.

Why can a large request take longer? The file is ordered newest first. The Actor stops as soon as it has maxItems notices, so a small request is quick whatever the date range (5 notices: about 33 KB read, 1–2 seconds in our tests from Asia). Asking for every notice of a long range means reading further into the file: all notices of the last 7 days needed 29 MB, of the last 30 days 88 MB (about 24 and 94 seconds on that connection).

What if SAM.gov changes the file? The Actor checks the columns on every run. If a column it needs is missing or a row has the wrong number of columns, the run fails with "Source format changed" instead of returning shifted or partial data. New extra columns are noted in the log.

Can I get the contracting officer's name, e-mail and phone? Yes: turn on includeContacts. You then get the primary and secondary points of contact that SAM.gov publishes in the notice (name, title, work e-mail, phone, fax), exactly as in the official file; empty in the file means null. Without the option these fields are always null.

How much memory does it need? The default 512 MB is enough for normal runs. If you set maxItems above about 10,000, use 1 GB.

How is this different from other SAM.gov tools? Several SAM.gov tools work by calling the search endpoints behind the SAM.gov website. SAM.gov's terms of use state: "Automated data gathering, web scraping tools are prohibited". The same terms say "You may also download some SAM.gov data"; this Actor uses only that public download file (and the official file storage it redirects to). The trade-off is freshness: the download is refreshed once a day, while the website changes during the day.

Is the data official? Yes – every value comes from SAM.gov's public Contract Opportunities extract. This Actor is not affiliated with or endorsed by SAM.gov or the U.S. General Services Administration.

Other public procurement Actors by the same author, with the same kind of output: