SAM.gov Contract Opportunities Scraper — Federal RFPs & Awards avatar

SAM.gov Contract Opportunities Scraper — Federal RFPs & Awards

Pricing

from $0.70 / 1,000 opportunities

Go to Apify Store
SAM.gov Contract Opportunities Scraper — Federal RFPs & Awards

SAM.gov Contract Opportunities Scraper — Federal RFPs & Awards

Search US federal contract opportunities on SAM.gov by keyword, NAICS, PSC, set-aside, agency or response deadline. Get notice details, agency hierarchy, contacts, deadlines and public attachment links, or full details for notices you name. Daily new-only feed. JSON, CSV or Excel export.

Pricing

from $0.70 / 1,000 opportunities

Rating

0.0

(0)

Developer

Philip Kirkbride

Philip Kirkbride

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 hours ago

Last modified

Categories

Features

Limited permissions

Share

SAM.gov Contract Opportunities Scraper

Search US federal contract opportunities on SAM.gov and export notice details, deadlines, agency paths, published contacts and public attachment links. One row per opportunity, ready for a spreadsheet, a database or an alerting workflow. This Actor does not submit bids, download attachments or retrieve restricted documents.

What you can do with it

  • Bid and capture teams search by keyword, NAICS, PSC, set-aside, agency or response deadline and get the notice details, the agency hierarchy and the published point of contact in one row.
  • Tender-alert services run it on a schedule with Only new or changed since the last run and forward the new opportunities to email, Slack, a CRM or a spreadsheet.
  • Market research collect a month of solicitations and awards for an industry code and compare agencies, notice types and award amounts.

Also available

The US and international tenders suite: pick the job.

ActorUse when
SAM.gov Opportunities (this Actor)US federal RFPs, set-asides and awards
BidNet Direct TendersUS state and local bids
UNGM UN TendersUN agency procurement notices
World Bank TendersWorld Bank-funded bids in 120+ countries
TED EU TendersEU-wide notices, lots, winners and values

Quick start

Run with {} to collect 10 recently updated active opportunities. No account or API key is required for the default search.

{"mode":"search","activeOnly":true,"maxResults":10}

Bus opportunities for a NAICS code, closing soon:

{
"keywords": "bus",
"naicsCodes": ["485113"],
"responseDeadlineFrom": "2026-11-10",
"responseDeadlineTo": "2026-12-31",
"maxResults": 50
}

New solicitations and sources-sought notices from the Department of Defense:

{
"agency": "100000000",
"noticeTypes": ["solicitation", "sourcesSought"],
"postedFrom": "2026-11-01",
"postedTo": "2026-11-10"
}

Full details for specific notices:

{"mode":"details","noticeIds":["https://sam.gov/opp/53e9119230bc4467884e7227ee2aef52/view"]}

The first run above costs about $0.015; the 50-row run costs about $0.055 — see Price.

How it works

  1. Pick the search filters you need — every one is optional — and a maxResults you are happy to pay for.
  2. Run it once in the Console to check the rows, then save the same input.
  3. Add a schedule and turn on Only new or changed since the last run for a clean daily feed.
  4. Read the rows in the Console, download them as JSON, CSV or Excel, or pass them on to your own system.

Input

FieldTypeDefaultWhat it does
modestringsearchsearch finds opportunities; details reads the notices you name in noticeIds.
noticeIdsarray[]Details mode only: 32-character notice IDs or https://sam.gov/opp/ID/view links, up to 100. All of them are read unless you set a lower maxResults.
keywordsstring""Search terms. The default search reads notice text; the optional API key route searches titles.
naicsCodesarray[]Six-digit NAICS codes; any of them matches.
pscCodesarray[]Two to four character PSC codes; any of them matches.
noticeTypesarray[]Any of solicitation, presolicitation, sourcesSought, award, specialNotice, combinedSynopsisSolicitation, justification, saleOfSurplusProperty, intentToBundle.
setAsidestring""A SAM set-aside code such as SBA.
agencystring""A numeric SAM organization ID, for example 100000000 for the Department of Defense.
postedFrom, postedTostring""Publication date window, inclusive YYYY-MM-DD, UTC boundaries.
responseDeadlineFrom, responseDeadlineTostring""Response deadline window, inclusive YYYY-MM-DD, UTC boundaries.
activeOnlybooleantrueActive notices only; set it to false to include inactive notices. status, when set, overrides this switch.
statusstring(empty)Which notices to search: active (open), inactive (the public archive: closed, awarded, cancelled and expired notices) or all. Empty follows activeOnly.
maxResultsinteger10Rows to save, 1–100,000. In details mode, leaving it empty reads every pasted notice ID.
apiKeystring""Optional personal SAM.gov public API key; leave it empty to use the default search. Stored as a secret.
bulkDownloadbooleanfalseRead the whole posted-date window in publish-time slices with no 10,000-result limit; see Download the full archive.
bulkCursorobject(empty)The continuation from OUTPUT.bulk.nextInput; leave empty to start a new window.

Code lists match any selected value within one field; different fields combine. Search results are ordered by last update.

Details mode

Set mode to details and supply noticeIds as 32-character IDs or SAM.gov notice links. This mode retrieves exactly the notices you name, whatever their status, and accepts no search filters. Each row includes the current public attachment names and URLs; controlled, export-restricted and deleted attachments are excluded. Attachment links are returned without fetching the files and may later expire or become unavailable.

The optional API key

An API key is required to search through the official SAM.gov API; supply it in the optional apiKey input. Obtain your personal public API key through your SAM.gov account profile and follow SAM.gov's access and quota rules. That route supports one value per code or type filter, does not accept website agency IDs, and searches titles with keywords. A posted-date window is required: omitted bounds default to the past 30 days through today, and the maximum span is 365 days. Only active matches are saved when activeOnly is true. The official search returns fewer fields and excludes description text and attachment lists. The key is used only with the official API; details mode needs it to be omitted.

Use it as a daily feed

Turn on Only new or changed since the last run (onlyNewSinceLastRun) and run the Actor on a schedule with the same input. It then returns only opportunities this search has not delivered before, or whose watched fields changed since the last run, so there is nothing to deduplicate on your side.

  • Every returned row carries changeType (new or changed) and changedFields.
  • The first run has no saved history, so it returns everything and reports feed.firstRun in the run's OUTPUT.
  • The history lives in the named key-value store sam-gov-opportunities-scraper-feed-state, one record per search. Leave feedName empty to name the record from the input, so different searches keep separate histories; set a name to share one or to start a fresh feed (inputs that still send stateKey keep working).
  • An entry leaves the history once its deadline is more than 90 days past and it has not been delivered in the last 90 days, so the history stays bounded.
  • The watched fields are the title, the response deadline, the active flag, the award and the attachments.

With the flag off (the default) the Actor returns every match, exactly as before.

Download the full archive

SAM.gov keeps every notice it has ever published: about 5.6 million inactive notices (closed, awarded, cancelled and expired) back to 1999, with a handful from earlier decades, next to the ~45,000 open ones. A plain search reads only the first 10,000 matches of a query. The bulk download reads all of them.

  • Every notice in a posted-date window, oldest first, with the filters you need: status, agency, NAICS, PSC, notice type, set-aside, keyword, response deadline.
  • No 10,000-result limit. The window is read in publish-time slices that are each complete by construction, several pages at a time.
  • Resumes with no gap and no duplicates. A run that stops at maxResults, at the charge cap or at the time budget writes OUTPUT.bulk.nextInput; run that input next and the walk continues at the exact second where it stopped. Nothing is read or delivered twice.
  • The same rows, the same key. Every row carries noticeId, so your dedupe, your database and the daily feed keep working after the backfill.

Backfill example: the inactive notices of one agency, in runs of up to 50,000 rows each.

{
"bulkDownload": true,
"status": "inactive",
"agency": "100000000",
"maxResults": 50000
}

Run it, then run OUTPUT.bulk.nextInput again and again until OUTPUT.bulk.done is true. Leave postedFrom/postedTo empty for the whole archive, or set them to backfill one period at a time. OUTPUT.bulk also lists every slice read with its row count, so you can audit the download.

Daily sync after the backfill: the same search as a feed that returns only what is new or changed.

{
"status": "all",
"agency": "100000000",
"postedFrom": "2026-11-01",
"onlyNewSinceLastRun": true,
"maxResults": 1000
}

Schedule that input daily; the first feed run delivers the current matches, later runs only the new and changed ones.

What it returns

Every row has rowType: opportunity, noticeId, and a canonical url. Output includes title, solicitation number, agency path/hierarchy, notice type, posted/updated dates, response deadline and source timezone when supplied, set-aside, NAICS/PSC codes, place of performance, plain-text description, published points of contact, award fields, and attachment metadata. Missing values are null or empty arrays. Award amounts and attachment sizes are numbers. Date-only source values remain ISO dates; timestamps retain their published timezone offset. detailsComplete is true for details-mode rows; search rows have no attachment enrichment. Source omissions remain omissions.

Output example

{"rowType": "opportunity", "noticeId": "53e9119230bc4467884e7227ee2aef52", "url": "https://sam.gov/opp/53e9119230bc4467884e7227ee2aef52/view", "title": "REQUEST FOR QUOTATION NO. N4008426Q1020 PROCUREMENT OF (1) MICRO BUS FOR NAVAL AIR FACILITY ATSUGI TRANSPORATION DEPARMENT, AYASE, JAPAN", "solicitationNumber": "N4008426Q1020", "agencyPath": "DEPT OF DEFENSE > DEPT OF THE NAVY > NAVFAC > NAVFAC PACIFIC CMD > NAVFAC FAR EAST > NAVFACSYSCOM FAR EAST", "agencyHierarchy": [{"id": "100000000", "code": "9700", "name": "DEPT OF DEFENSE"}, {"id": "300000188", "code": "1700", "name": "DEPT OF THE NAVY"}, {"id": "100007016", "code": "NAVFAC", "name": "NAVFAC"}, {"id": "100037985", "code": "NAVFAC PACIFIC CMD", "name": "NAVFAC PACIFIC CMD"}, {"id": "100076582", "code": "NAVFAC FAR EAST", "name": "NAVFAC FAR EAST"}, {"id": "100513870", "code": "N40084", "name": "NAVFACSYSCOM FAR EAST"}], "noticeType": "Combined Synopsis/Solicitation", "noticeTypeCode": "k", "postedAt": "2026-10-30T00:22:20+00:00", "updatedAt": "2026-10-30T00:22:20+00:00", "responseDeadline": "2026-11-09T11:00:00+09:00", "responseTimeZone": "Asia/Seoul", "setAsideCode": null, "setAside": null, "naicsCodes": ["485113"], "pscCodes": ["2310"], "active": true, "description": "*** This combined synopsis/solicitation. Requesting a quote must not be construed as obligating the Government to award a contract or authorizing work to commence and must not serve as a basis for any future claims against the Government. ***(i) This is a combined synopsis/solicitation for commercial products or commercial services prepared in accordance with part 12. This announcement constitutes the only solicitation; offers are being requested and a separate written solicitation will not be issued. Solicitation number N4008426Q1020 is issued as a Request for Quotation (RFQ) for procurement of a Micro Bus for Naval Air Facility Atsugi in Ayase, Japan. This acquisition is not set-aside for small business concerns. This solicitation incorporates provisions and clauses by reference. The full text of provisions and clauses may be accessed electronically at www.acquisition.gov. See attached 26Q1020_Combined_Synopsis-Soliciation.pdf for combined synopsis/solicitation details.", "pointsOfContact": [{"fullName": "Sheila Wieser", "title": null, "type": "primary", "email": "sheila.a.wieser.civ@us.navy.mil", "phone": null, "fax": null}], "placeOfPerformance": [{"streetAddress": "Ayase, Japan", "streetAddress2": null, "city": null, "state": null, "zip": null, "country": null}], "award": {"number": null, "date": null, "amount": null, "awardeeName": null, "awardeeUei": null, "awardeeCageCode": null}, "attachments": [], "detailsComplete": false}

Limits and caveats

  • A plain search can examine only the first 10,000 source matches; use narrower filters, or turn on bulkDownload to read a whole window in slices.
  • Shifting source data can move notices between pages. Duplicate notice IDs are suppressed.
  • The bulk download uses the keyless search, saves whole slices (so it stops exactly at maxResults, with a few extra requests at the very end of a run) and is not combined with the daily feed; run the feed separately after the backfill. A single second holding more than 10,000 notices cannot be read past the 10,000th row; OUTPUT.bulk.unreachableRows says so when it happens. Bulk rows keep a response deadline without a timezone offset exactly as SAM.gov published it.
  • Runs with saved rows succeed and name failed targets in the status. With no rows, a failed source fails the run; an empty result succeeds. If the source is slow or unavailable, results may be partial.
  • Only public notices and their published official points of contact are collected. No login, identity enrichment, private accounts or restricted content is accessed. This Actor is independent of the US government.

FAQ

What does a run cost? $0.001 for each delivered opportunity plus one run-start charge of $0.005 for the default 512 MB run. The 10-row default costs $0.015, 100 rows cost $0.105 and 1,000 rows cost $1.005. Rows that are not delivered are not charged.

Can I run it on a schedule? Yes. Save the input, add a schedule in the Apify Console and choose where the results should go — email, webhook, Google Sheets or your own server. Daily is typical for opportunity monitoring.

Why are some fields empty? SAM.gov does not publish every field for every notice. A field the source leaves out stays null or []; nothing is guessed or filled in.

Where are the attachments? Details mode returns each attachment's name and public URL. The files themselves stay on SAM.gov and are not downloaded by the Actor.

Why are there fewer rows than maxResults? The filters matched fewer notices, or the source stopped answering. The run status says which; rows already saved stay in the dataset. In a bulk download, OUTPUT.bulk.stopReason names maxResults, chargeLimit, timeBudget or sourceError, and OUTPUT.bulk.nextInput continues the walk.

Do I need an API key? No. The default search needs no account and no key. The optional apiKey input switches to the official SAM.gov API with your own key, which has different filters and fewer output fields (see above).

Price

You pay for what you get: $0.001 per delivered opportunity, plus a run-start charge of $0.005 per GB of memory — the default 512 MB run is one start charge, so $0.005.

RunOpportunitiesCost
Console sample (the default input)10$0.015
One NAICS code for a month100$0.105
A year of awards for one agency1,000$1.005

The start charge applies even when a run finds nothing, and rows that are not delivered are not charged. Platform usage is included in the price.

Support

For questions or issues, contact us from the Actor page.

Your feedback

Found a bug, or need a field or filter we don't have yet? Open an issue on this Actor's Issues tab. We read every issue and use them to decide what to build next.