SAM.gov Scraper: Government Contracts, Bids & Federal Grants avatar

SAM.gov Scraper: Government Contracts, Bids & Federal Grants

Pricing

from $2.40 / 1,000 opportunity returneds

Go to Apify Store
SAM.gov Scraper: Government Contracts, Bids & Federal Grants

SAM.gov Scraper: Government Contracts, Bids & Federal Grants

SAM.gov scraper for government contracts and contract opportunities, plus Grants.gov federal grants, in one feed with no SAM.gov API key. Filter bids by keyword, NAICS, PSC, agency, set-aside, state and due date. Daily alerts for new matches and next-day amendment alerts.

Pricing

from $2.40 / 1,000 opportunity returneds

Rating

0.0

(0)

Developer

Your Evenings

Your Evenings

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Government contracts from SAM.gov and federal grants from Grants.gov in one clean, filterable dataset, with no API key needed. This SAM.gov scraper returns new US federal contract opportunities and bids, plus grant opportunities, filtered by keyword, NAICS code, PSC code, agency, set-aside type, place-of-performance state, posted date and due date. Turn on monitor mode and schedule it daily to get a feed of only the new matches, or track solicitation numbers to get a row when one of them is amended or changes.

Use it as a SAM.gov search and Grants.gov search you can schedule: find government contracts and government bids by NAICS code, set-aside or agency, and federal grants by agency, status or keyword, in one dataset you can export as CSV, JSON or Excel.

Who it's for: bid and proposal teams, small businesses tracking set-asides, grant writers, nonprofits and university research offices, and government-market consultants who want notices in a spreadsheet, CRM or AI agent.

Not an official government product. This Actor is independent and is not affiliated with or endorsed by GSA, SAM.gov or Grants.gov. It uses data those services publish for the public.

How to search SAM.gov and Grants.gov: quick start

Press Start with the prefilled input, or paste this into the JSON view of the Input tab. It returns up to 10 SAM.gov contract opportunities and up to 10 Grants.gov grants posted in the last 7 days that match "software", newest first. In a test run on 15 November 2026 it returned 13 rows: 10 of the 265 matching SAM.gov contract notices and all 3 matching Grants.gov grants.

{
"opportunityType": "both",
"keywords": [
"software"
],
"postedWithinDays": 7,
"maxResults": 10
}

Leave keywords empty to search without a keyword: you get up to maxResults contract opportunities and up to maxResults posted or forecasted grants from the window.

For more ready-made inputs, see the example tasks.

Works with: SAM.gov (contract opportunities) · Grants.gov (grants)

Runs on Apify Apify. Use it from Make, Zapier, n8n n8n or the Apify API.

Use it as a SAM.gov scraper, a SAM.gov opportunities API without registering for a key, a Grants.gov API client, or a government contract alert for your bid team.

Why use this SAM.gov scraper

  • No SAM.gov API key needed. Contracts come from SAM.gov's public daily extract, so there's no key to register, rotate or rate-limit.
  • Filters are applied in code before you're charged, and you see how much matched. On SAM.gov contracts, notice type, NAICS, PSC code, place-of-performance state, set-aside, agency, due date and keywords (as whole phrases, listed in matchedKeywords) are checked on every row. On Grants.gov, agency and due date are checked in code and keywords use Grants.gov's own search. Each run reports how many opportunities matched out of how many were posted in the window, even when maxResults stops it returning more.
  • Saved dates roll forward. postedWithinDays counts back from each run, so a scheduled run always covers the latest days.
  • Contracts and grants in one schema, with monitorMode for new-only daily alerts.
  • Know when a solicitation you're bidding on changes. Add its number to trackSolicitationNumbers and get a row for each new amendment or notice, deadline move, notice type change or notice leaving the active list, with before and after values. Alerts are next-day, because SAM.gov's extract is refreshed daily.
  • You're told when the data is stale or a source fails. Every row has source_updated_at. If SAM.gov's extract is more than 36 hours old or empty, or either source fails, the run adds a free warning row and says so in its status message, so a quiet day isn't mistaken for a broken feed.

How do I search government contracts by NAICS code?

Set opportunityType to contracts and list the codes in naicsCodes. Codes are prefixes, so 5415 matches 541511, 541512, 541513 and 541519. Add setAsideTypes, agencies or placeOfPerformanceStates to narrow it. Each row links to the notice on SAM.gov.

{
"opportunityType": "contracts",
"naicsCodes": ["541511", "541512", "541519"],
"postedWithinDays": 7,
"maxResults": 100
}

Grants don't have NAICS codes or set-asides, so a NAICS filter searches contracts only and skips Grants.gov (the run summary says so).

Where the data comes from

SourceWhatHow
SAM.gov Contract OpportunitiesSolicitations, combined synopsis/solicitations, presolicitations, sources sought, special notices, justifications (and award notices if you ask)SAM.gov's public daily data extract (Contract Opportunities CSV from SAM.gov Data Services), refreshed by SAM.gov once a day
Grants.govPosted and forecasted federal grant opportunitiesThe public Grants.gov REST API (search2 and fetchOpportunity)

No login, API key or browser is used. The SAM.gov extract lists notices newest first, so the Actor reads only the part that covers your date window and stops. In a test on 21 Oct 2026, a 7-day window meant reading about 23 MB (8,104 rows) of the extract, in under 2 seconds.

Freshness: SAM.gov contract notices come from SAM.gov's public daily extract, which SAM.gov regenerates once a day, so they can be up to about a day old (a notice posted today usually appears tomorrow). Grants.gov results are live, read from the Grants.gov API during the run. Every row has a source_updated_at timestamp (ISO 8601, UTC) and a source_updated_at_basis saying what it means:

  • sam_extract_last_modified: SAM.gov rows. The time SAM.gov last refreshed the extract file the row came from.
  • grants_opportunity_last_updated: Grants.gov rows. The opportunity's own last-updated time on Grants.gov.
  • grants_api_fetched_at: Grants.gov rows where Grants.gov gives no update time. The time the Actor fetched it from the live API.

Which SAM.gov notice types are included?

SAM.gov notice typeIncluded by default?How to pick it
SolicitationYessamNoticeTypes: ["Solicitation"]
Combined synopsis/solicitationYessamNoticeTypes: ["Combined Synopsis/Solicitation"]
PresolicitationYessamNoticeTypes: ["Presolicitation"]
Sources soughtYessamNoticeTypes: ["Sources Sought"]
Special noticeYessamNoticeTypes: ["Special Notice"]
Justification (J&A)YessamNoticeTypes: ["Justification"]
Sale of surplus propertyYessamNoticeTypes: ["Sale of Surplus Property"]
Consolidate/(substantially) bundleYessamNoticeTypes: ["Consolidate"]
Award notices (contracts already awarded)Noturn on includeAwardNotices

samNoticeTypes keeps only the types you list (case is ignored, and part of a type name matches, so Solicitation also returns presolicitations and combined synopsis/solicitations). activeOnly (on by default) skips notices SAM.gov marks inactive. On Grants.gov, grantStatuses picks posted and/or forecasted grants (both by default).

Who uses this SAM.gov scraper?

  • Small businesses tracking set-asides: federal contractors watching set-asides such as total small business (SBA), 8(a) (8A), HUBZone (HZC), SDVOSBC and WOSB, plus their NAICS codes and agencies.
  • Bid and proposal teams who need new solicitations each morning and a next-day alert when a solicitation they're bidding on is amended.
  • Grant writers, nonprofits and university research offices looking for new federal funding opportunities.
  • Government-market consultants and analysts who need notices in a spreadsheet, BI tool, CRM or AI agent.

Use cases

  1. A small IT contractor looking for small-business set-aside bids. Filter SAM.gov by NAICS prefix and set-aside code, and keep only notices still open:

    {"opportunityType": "contracts", "naicsCodes": ["5415"], "setAsideTypes": ["SBA"], "postedWithinDays": 14, "dueAfter": "2026-11-15", "maxResults": 0}

    In a local test run on 15 November 2026, against the extract SAM.gov published that morning, this returned 11 open notices out of 12,672 posted in the 14 days, in 2 seconds: 5 combined synopsis/solicitations, 3 solicitations, 2 special notices and 1 sources sought, with response deadlines from 16 November to 7 December, all with a time and a UTC offset given by SAM.gov (responseDeadlineTimeZoneBasis: "source-offset").

  2. A nonprofit grants officer searching for youth programmes. Search Grants.gov by keyword:

    {"opportunityType": "grants", "keywords": ["youth"], "postedWithinDays": 30, "maxResults": 0}

    In a local test run on 15 November 2026 this returned 9 grant opportunities in 5 seconds: 5 posted and 4 forecasted, 7 with an award ceiling, closing between 7 December 2026 and 28 October 2027 (the forecasts' close dates are estimates, marked responseDeadlineEstimated: true).

Output sample

Five of the rows from the Quick start input (run on 26 October 2026). SAM.gov rows come first, then Grants.gov rows:

SourceNotice typeTitleAgencyPostedDueAward ceiling (USD)
sam.govSpecial NoticeDA10--MediaLab SaaS Document Control system serviceVETERANS AFFAIRS, DEPARTMENT OF2026-10-252026-10-30–
sam.govSolicitationRWP - Advanced Navigation Simulation Environment Laboratory (ANSEL)DEPT OF DEFENSE2026-10-252026-11-12–
grants.govSynopsisNextTech: Translational Development of Next-Generation Diagnostic and Therape…Department of Health and Human Services2026-10-232030-12-01–
grants.govSynopsisFiscal Year 2026 Flood Mitigation AssistanceDepartment of Homeland Security2026-10-222027-02-26–
grants.govSynopsisFY27 Small Business Development Center State of Kansas Network RebidSmall Business Administration2026-10-202026-11-191,144,946

One SAM.gov contract row and one Grants.gov grant row as JSON, from a run on 26 October 2026 (build 0.1.13). Some fields are left out to keep it short; the full list is under Output.

{
"source": "sam.gov",
"opportunityType": "contract",
"noticeId": "431a272c86e248a69e537c82d7cbbfcb",
"solicitationNumber": "FA9101269ANSEL",
"title": "RWP - Advanced Navigation Simulation Environment Laboratory (ANSEL)",
"agency": "DEPT OF DEFENSE",
"subAgency": "DEPT OF THE AIR FORCE",
"office": "FA9101 AEDC PKP PROCRMNT BR",
"noticeType": "Solicitation",
"status": "active",
"naicsCodes": [
"541330"
],
"classificationCode": "AC33",
"setAside": null,
"postedDate": "2026-10-25",
"responseDeadline": "2026-11-12T22:00:00.000Z",
"archiveDate": "2026-11-27",
"placeOfPerformance": {
"city": "Holloman AFB",
"state": "NM",
"zip": null,
"country": "USA"
},
"url": "https://sam.gov/opp/431a272c86e248a69e537c82d7cbbfcb/view",
"matchedKeywords": [
"software"
],
"source_updated_at": "2026-10-26T03:30:47.000Z",
"rowType": "opportunity"
}
{
"source": "grants.gov",
"opportunityType": "grant",
"opportunityId": "364136",
"title": "Unlocking New Levels of Output and Capacity for Key Subsurface Resources (UNLOCK)",
"agency": "Department of Energy",
"noticeType": "Synopsis",
"status": "posted",
"postedDate": "2026-10-21",
"responseDeadline": "2026-11-20",
"estimatedFunding": 45000000,
"awardCeiling": 5000000,
"awardFloor": 3000000,
"numberOfAwards": 12,
"assistanceListings": [
{
"number": "81.135",
"title": "Advanced Research Projects Agency - Energy"
}
],
"fundingCategories": [
"Opportunity Zone Benefits",
"Science and Technology and other Research and Development"
],
"url": "https://www.grants.gov/search-results-detail/364136",
"rowType": "opportunity"
}

Input examples: SAM.gov contract opportunities and federal grants

Paste any of these into the JSON view of the Input tab. Each one is the input of a ready-made example task.

IT services government contracts (NAICS 541511, 541512, 541519)

{
"opportunityType": "contracts",
"naicsCodes": ["541511", "541512", "541519"],
"postedWithinDays": 7,
"maxResults": 100
}

NIH and NSF research grants

{
"opportunityType": "grants",
"agencies": ["National Institutes of Health", "National Science Foundation"],
"grantStatuses": ["posted", "forecasted"],
"postedWithinDays": 30,
"maxResults": 100
}

Daily government bid alerts by keyword

Schedule this one daily. The first run returns the current matches; later runs return only new ones.

{
"opportunityType": "both",
"keywords": ["janitorial", "facilities maintenance", "landscaping"],
"postedWithinDays": 7,
"maxResults": 100,
"monitorMode": true,
"emitBaselineOnFirstRun": true,
"stateStoreName": "federal-bid-alerts"
}

Example tasks (ready-made inputs)

Input

FieldWhat it doesDefault
opportunityTypeboth, contracts (SAM.gov) or grants (Grants.gov)both
keywordsAny of these words or phrasesnone
naicsCodesNAICS code prefixes, e.g. 541511 or 5415 (contracts only)none
agenciesText that the department, sub-agency, office or agency code containsnone
setAsideTypesSAM.gov set-aside codes (SBA, 8A, HZC, SDVOSBC, WOSB, ... or ANY) (contracts only)none
postedWithinDays / postedSinceDate window (N days back, or an exact YYYY-MM-DD start)last 7 days
dueAfterResponse deadline / close date on or after YYYY-MM-DD (a deadline given only as a date counts through that day)none
maxResultsMax opportunities per source, newest first (0 = all matches in the window)10
monitorModeReturn only opportunities not returned by an earlier monitor runoff
emitBaselineOnFirstRunIn monitor mode, return all matches on the very first runon
trackSolicitationNumbersSAM.gov solicitation numbers to watch for changes (up to 500). When set, the run is a tracking run: see belownone
stateStoreNameNamed key-value store holding seen IDs and tracked-solicitation stateus-gov-opportunities-state
includeDescriptionShort plain-text description snippeton
includeContactsPoint-of-contact fields exactly as published on each noticeoff
includeAwardNoticesInclude SAM.gov award noticesoff
pscCodesProduct/service code (PSC) prefixes, e.g. R4, D or J059 (contracts only)none
placeOfPerformanceStatesPlace-of-performance states: 2-letter codes or names, e.g. VA, Maryland, DC (contracts only)none
samNoticeTypesKeep only these SAM.gov notice typesall
grantStatusesposted and/or forecastedboth
activeOnlySkip inactive SAM.gov noticeson

NAICS, set-aside, PSC and place-of-performance filters exist only on contract notices, so setting any of them skips Grants.gov (the run summary says so).

Place-of-performance state. The filter uses the state SAM.gov lists as the notice's place of performance. Many notices list none (about 3 in 4 in the extract on 22 Oct 2026, often services that can be performed anywhere or overseas), and those never match a state filter. The run summary says how many matching notices were excluded for that reason.

Example: IT contracts from the VA plus related grants, due at least a week out:

{
"opportunityType": "both",
"keywords": ["software", "cloud"],
"agencies": ["VETERANS AFFAIRS"],
"postedWithinDays": 7,
"dueAfter": "2026-10-28",
"maxResults": 100
}

Example: professional-support and IT services contracts (PSC R4 and D) performed in Virginia, Maryland or DC:

{
"opportunityType": "contracts",
"pscCodes": ["R4", "D"],
"placeOfPerformanceStates": ["VA", "MD", "DC"],
"postedWithinDays": 7,
"maxResults": 100
}

Example: daily alert for NAICS 5415 small-business set-asides:

{
"opportunityType": "contracts",
"naicsCodes": ["5415"],
"setAsideTypes": ["SBA", "SDVOSBC", "WOSB", "8A"],
"postedWithinDays": 2,
"maxResults": 0,
"monitorMode": true,
"stateStoreName": "it-set-aside-alerts"
}

Output

One row per opportunity. A contract (SAM.gov):

{
"source": "sam.gov",
"opportunityType": "contract",
"opportunityId": "de2744c997e844eaa9a4b43ab1d7c7c0",
"noticeId": "de2744c997e844eaa9a4b43ab1d7c7c0",
"solicitationNumber": "SPE1C127Q0172",
"title": "84--GLOVE SET,CHEMICAL",
"agency": "DEPT OF DEFENSE",
"subAgency": "DEFENSE LOGISTICS AGENCY",
"office": "DLA TROOP SUPPORT",
"agencyCode": "097",
"noticeType": "Combined Synopsis/Solicitation",
"baseNoticeType": "Combined Synopsis/Solicitation",
"status": "active",
"naicsCodes": ["315990"],
"classificationCode": "84",
"setAsideCode": "SBA",
"setAside": "Small Business Set Aside - Total",
"postedDate": "2026-11-13",
"responseDeadline": "2026-11-27",
"responseDeadlineHasTime": false,
"responseDeadlineTimeZoneBasis": null,
"responseDeadlineEstimated": false,
"archiveDate": "2026-12-27",
"placeOfPerformance": null,
"url": "https://sam.gov/opp/de2744c997e844eaa9a4b43ab1d7c7c0/view",
"matchedKeywords": []
}

Trimmed; empty grant-only fields and the description are left out. SAM.gov gave this notice a deadline date with no time, so responseDeadline is the plain date and responseDeadlineHasTime is false.

Response deadlines. When SAM.gov gives a time, responseDeadlineHasTime is true and responseDeadlineTimeZoneBasis says how the time zone is known. If SAM.gov gives the UTC offset (source-offset), or the notice text states the zone for the same date and time (notice-text), responseDeadline is an ISO 8601 UTC timestamp ending in Z (for example 2026-11-12T22:00:00.000Z). If neither gives a zone (unknown), responseDeadline is the local time as SAM.gov gave it, with no Z (for example 2026-12-04T17:00:00); check the notice for the time zone before relying on the hour. When it gives only a date, responseDeadline is that date (YYYY-MM-DD) and responseDeadlineHasTime is false; treat it as open through the end of that day. Grants.gov close dates are always plain dates (false). With no deadline, both are null.

Deadlines with a time but no time zone. A small share of SAM.gov notices give a deadline time without saying which time zone it is in (710 of the 52,409 deadlines with a time in the 14 November 2026 extract). We never guess the zone from the agency, the contracting office or the place of performance: in that extract the office's state matched the zone actually given in only about 64% of the notices that had both. New field responseDeadlineTimeZoneBasis says where the time zone came from:

  • source-offset: SAM.gov gave the time with its UTC offset. responseDeadline is in UTC (ends in Z).
  • notice-text: SAM.gov gave no offset, but the notice text states the deadline with the same date and time and a US time zone (for example "December 4, 2026 at 5:00 PM EST"). responseDeadline is converted to UTC (ends in Z). A zone label that doesn't fit the date (for example "EST" on a summer date) is not used.
  • unknown: no zone was given. responseDeadline is the local time exactly as SAM.gov gave it, with no Z (for example 2026-12-04T17:00:00). Check the notice on SAM.gov for the time zone before relying on the hour.
  • null: the deadline is a date only, or there is none.

dueAfter compares calendar dates, so a date-only deadline on the dueAfter day is included. If you sort by deadline, sort date-only values as the end of their day: plain text sorting puts 2026-11-27 before 2026-11-27T15:00:00.000Z.

Set-aside codes. setAsideCode is a plain code such as SBA. A few SAM.gov notices list their code as a list; it is returned the same way (SBA), and setAsideTypes filters match it. If a notice lists several codes, they are joined with commas, for example SBA,8A, and a filter on any one of them matches.

A grant (Grants.gov), shortened:

{
"source": "grants.gov",
"opportunityType": "grant",
"opportunityId": "364134",
"solicitationNumber": "HHS-2027-ACF-ORR-ZU-0045",
"title": "Residential Services for Unaccompanied Alien Children",
"agency": "Department of Health and Human Services",
"subAgency": "Administration for Children and Families - ORR",
"noticeType": "Forecast",
"status": "forecasted",
"postedDate": "2026-10-21",
"responseDeadline": "2027-01-12",
"responseDeadlineEstimated": true,
"estimatedFunding": 280000000,
"awardCeiling": 5600000,
"awardFloor": 2000000,
"numberOfAwards": 50,
"assistanceListings": [{ "number": "93.676", "title": "Unaccompanied Children Program" }],
"fundingCategories": ["Income Security and Social Services"],
"url": "https://www.grants.gov/search-results-detail/364134",
"attachments": [],
"source_updated_at": "2026-10-21T17:49:44.000Z",
"source_updated_at_basis": "grants_opportunity_last_updated"
}

Both sources share the same fields; fields that don't apply to a source are null or empty. The Output tab has Overview, Contracts and Grants views. A run summary (filters, rows per source, rows scanned, extract date, timings, warnings) is saved as SUMMARY in the run's key-value store.

Matched vs scanned. SUMMARY.totals has, per source, how many rows were scanned, how many were posted in your date window, how many matched your filters and how many were returned (plus, in monitor mode, how many were skipped as already reported). The status message says the same in one line, e.g. "SAM.gov: 5 returned, 45 matched of 6,156 posted in the window (8,156 extract rows read)". So when maxResults cuts a run short, you can see how many more matches there were.

Warning rows (free). The run adds a status row (rowType: "status", never charged) when:

  • SAM.gov's extract was last refreshed more than 36 hours before the run (stale_data). SAM.gov normally refreshes it daily, so notices posted since then aren't in the run yet.
  • SAM.gov's extract had no rows (no_data), or its refresh time couldn't be read (unknown_freshness).
  • Grants.gov returned nothing for a search without keywords (no_data).
  • Either source failed (source_error).

Attachments. Grants.gov rows list the documents Grants.gov attaches to the opportunity (file name, description, folder and size) in attachments. Grants.gov's API doesn't give a download link, so url is null for files; open the opportunity's url to download them. For example, on 22 Oct 2026 DE-FOA-0003630 listed:

"attachments": [
{ "type": "file", "fileName": "NOFO_DE-FOA-0003630_UNLOCK.pdf", "description": "NOFO_DE-FOA-0003630_UNLOCK", "folder": "DE-FOA-0003630 (BASE)", "folderType": "Full Announcement", "sizeBytes": 1114696, "url": null }
]

Forecasts often have no attachments yet ([]). Document links Grants.gov lists are included with their url. Contract rows have attachments: null, because SAM.gov's public extract has no attachment data; use the notice's url to see its attachments on SAM.gov.

Contacts. Notices carry the contracting officer or agency contact. With includeContacts on, each row gets those fields exactly as published on that notice. They're never collected into a separate contacts list, and they're off by default.

Can I get daily bid alerts?

Yes. Save your keywords, NAICS codes, set-asides and agencies as a task, then:

  1. Turn on monitorMode, pick a stateStoreName for this saved search, and schedule the Actor (daily is typical).
  2. The first run returns all current matches (or, with emitBaselineOnFirstRun off, just remembers them).
  3. Later runs return only opportunities whose ID hasn't been returned before, with changeType: "new". A run with no new matches returns no opportunity rows (only free warning rows if a source was stale, empty or failed, or its freshness couldn't be checked) and costs only the Actor start. Its status message still says how many notices matched and were posted in the window, so a quiet day is easy to tell from a broken feed.

If a run stops early because it reached your maximum charge, the undelivered opportunities are returned on the next run.

How do I get SAM.gov amendment alerts?

Put the solicitation numbers you care about in trackSolicitationNumbers and schedule a daily run. Numbers are matched without case, spaces or punctuation, so W912DY-26-R-0001 and w912dy26r0001 are the same.

{
"trackSolicitationNumbers": ["1240LT26Q0109", "W912DY26R0001"],
"stateStoreName": "my-bids-watchlist"
}

How it works:

  1. Each run reads SAM.gov's whole public daily extract (about 210 MB and 71,000 active notices on 22 Oct 2026; about 8 seconds per run in our platform tests) and picks out every active notice under your numbers. In SAM.gov's extract, each amendment or follow-on notice appears as a new notice ID under the same solicitation number.
  2. The first run for a number only remembers its current notices and returns a free status row (tracking_started, or not_found if the number isn't in the active extract yet).
  3. Later runs compare with what was saved and return one change row (rowType: "change") for each:
    • new_notice: a new notice or amendment under the number. changes lists the fields that differ from the previous latest notice (response deadline, notice type, base notice type, set-aside, NAICS, product/service code, title, archive date, place of performance, award fields, additional info link, description text), with before and after.
    • notice_updated: a notice already seen was edited in place (same fields, plus posted date).
    • notice_removed: a notice is no longer in the active extract. SAM.gov's extract doesn't say whether it was archived, cancelled or taken down, so check the notice on SAM.gov.
  4. Numbers with no change get a free unchanged status row, so every tracked number appears in every run.

Each change row has changeSummary (plain English), changes, trackedSolicitationNumber, comparedWithNoticeId, detectedAt and the usual contract fields of the notice, plus source_updated_at (the extract's Last-Modified time). The Tracked solicitation changes view in the Output tab shows them.

What to know:

  • Alerts are next-day, not real-time. SAM.gov refreshes the extract about once a day (on 21 and 22 Oct 2026, at about 03:30 UTC), so a change posted today is usually reported by a run the next day. Schedule the run after 04:00 UTC. If the extract hasn't been refreshed since the last run, the status rows say so.
  • Attachments aren't in the extract. A change that only adds or replaces an attachment is seen only if SAM.gov also posts it as a new notice or edits the notice's fields.
  • Search filters (keywords, NAICS, dates and so on) and monitorMode aren't used in tracking runs, and Grants.gov isn't checked.
  • Keep one stateStoreName per watch list. If a run stops at your maximum charge, the changes it couldn't return are kept and returned on the next run (a free changes_pending status row says how many).

A change row from a platform test run on 22 Oct 2026, shortened:

{
"rowType": "change",
"changeType": "new_notice",
"trackedSolicitationNumber": "1240-LT26-Q0109",
"changeSummary": "New Combined Synopsis/Solicitation posted 2026-10-21. Compared with notice d35a9184d1bf49fc93a17a1074c6b9a0 (2026-10-16): response deadline 2026-11-04T22:00:00.000Z → 2026-11-17T22:00:00.000Z; archive date 2026-11-19 → 2026-12-02; description text changed.",
"changes": [
{ "field": "responseDeadline", "label": "response deadline", "before": "2026-11-04T22:00:00.000Z", "after": "2026-11-17T22:00:00.000Z" },
{ "field": "archiveDate", "label": "archive date", "before": "2026-11-19", "after": "2026-12-02" },
{ "field": "description", "label": "description text", "before": "previous text", "after": "new text" }
],
"comparedWithNoticeId": "d35a9184d1bf49fc93a17a1074c6b9a0",
"source": "sam.gov",
"noticeId": "cbe71bb9577648beb6b5961f0588c070",
"solicitationNumber": "1240LT26Q0109",
"title": "4 GAOA Flaming Gorge Water System Buckboard in Ashley NF, Wyoming",
"noticeType": "Combined Synopsis/Solicitation",
"postedDate": "2026-10-21",
"responseDeadline": "2026-11-17T22:00:00.000Z",
"archiveDate": "2026-12-02",
"url": "https://sam.gov/opp/cbe71bb9577648beb6b5961f0588c070/view",
"detectedAt": "2026-10-22T09:51:13.933Z",
"source_updated_at": "2026-10-22T03:30:44.000Z",
"source_updated_at_basis": "sam_extract_last_modified"
}

How much does it cost?

Pay per event. You pay for results, not compute:

EventWhen it is chargedPrice
Actor startOnce per run (per GB of memory; the default 256 MB run counts as one)$0.00005
OpportunityEach opportunity row returned, and each change row in a tracking run$0.003
Alert run with new matchesMonitor mode and solicitation tracking: once per run that returns at least one new opportunity or change$0.01

Status rows in tracking runs (tracking_started, unchanged, not_found, changes_pending) are free.

The $0.01 "Alert run with new matches" event covers both monitor runs that find new opportunities and tracking runs that find amendments or changes. A run that finds none pays nothing for this event. The event's short description on the Pricing tab mentions monitor mode only, but tracking runs are charged the same way.

Higher Apify plans get tier discounts (Silver −10%, Gold −20%). Prices on the Actor's Pricing tab are authoritative.

Examples at the base price:

  • The default run (10 contracts + 10 grants): 20 × $0.003 = about $0.06.
  • A one-off pull of 500 notices: 500 × $0.003 = $1.50.
  • A daily monitor run with 20 new matches: 20 × $0.003 + $0.01 = $0.07 (about $2.10 a month). Days with no new matches cost $0.00005.
  • A daily tracking run on 20 solicitation numbers where 3 changed: 3 × $0.003 + $0.01 = $0.019. A day with no changes costs $0.00005 (20 free status rows).

The Actor respects the maximum cost per run you set and says so in the status message when it stops early.

Use the SAM.gov scraper from code, spreadsheets or an AI agent

  • Schedule it: Console > Schedules, daily, with monitorMode on, to get a new-opportunities feed.

  • Google Sheets, Make, Zapier, n8n, Slack: use the Actor's Integrations tab to send each run's dataset where you need it.

  • API (Python):

    from apify_client import ApifyClient
    client = ApifyClient("<YOUR_APIFY_TOKEN>")
    run = client.actor("yourevenings/us-gov-opportunities").call(run_input={"opportunityType": "contracts", "naicsCodes": ["541511"]})
    for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["source"], item["title"], item.get("agency"), item.get("responseDeadline"))
  • AI agents: the Actor can be run through the Apify MCP server, so Claude, ChatGPT or Cursor agents can call it with their own input.

AI agents can pay for runs themselves

AI agents can run this Actor and pay with stablecoins such as USDC through the x402 or MPP protocols, with no Apify account needed. The agent buys a prepaid, spend-capped Apify API token from Apify's Agent General Interface (AGI) and then runs the Actor with it as normal. Prepaid tokens only run Actors that use limited permissions, and this Actor does. Agentic payments are an experimental Apify feature, and the terms (minimum amount, expiry, usage limits) are set by Apify. See Apify's docs: Let your AI agent pay for Actor runs, x402 and MPP.

FAQ

Do I need a SAM.gov API key?

No. Contract notices come from SAM.gov's public daily data extract and grants from the public Grants.gov API. Neither needs a key.

How do I search government contracts on SAM.gov?

Set opportunityType to contracts and add filters such as naicsCodes, keywords or postedWithinDays. See the IT services government contracts input example above.

How do I find federal grants on Grants.gov?

Set opportunityType to grants and filter by agencies, keywords and grantStatuses (posted or forecasted). Rows include the award ceiling, award floor, estimated total funding and assistance listing numbers when Grants.gov gives them.

How do I set up government bid alerts?

Save the input as a task, turn on monitorMode, and schedule it (for example daily). The first run returns the current matches; later runs return only new ones. Apify's integrations can send each run's results to Slack, a webhook, Make, Zapier or n8n. See the daily government bid alerts input example above, and Can I get daily bid alerts?.

How do I search government contracts by NAICS code?

Put NAICS codes in naicsCodes (for example 541511 for custom computer programming). NAICS, PSC, set-aside and place-of-performance filters apply to contracts only, so setting any of them skips Grants.gov for that run. See the IT services government contracts input example above.

How do I export SAM.gov contract opportunities to CSV or Excel?

Each run saves its rows to an Apify dataset. Download it as JSON, CSV, Excel, XML or HTML from the run's Output or Storage tab, or fetch it through the Apify API. Integrations can also send each run's results to Google Sheets, Make, Zapier or webhooks.

Is this an official SAM.gov or Grants.gov product?

No. This is not an official government product. It's an independent tool and is not affiliated with or endorsed by GSA, SAM.gov, Grants.gov or any other agency. It uses their public data.

How current is it?

Grants.gov is live. SAM.gov contract notices come from SAM.gov's public daily extract, so they can be up to about a day old compared with SAM.gov's website. Check source_updated_at on each row. Check the solicitation on SAM.gov before bidding: amendments and deadlines change.

Can it tell me when a solicitation is amended?

Yes, next-day: list the numbers in trackSolicitationNumbers and schedule a daily run (see How do I get SAM.gov amendment alerts?). Changes come from SAM.gov's daily extract, so they show up the day after SAM.gov publishes them, and attachment-only changes aren't visible.

Which notices are included by default?

Active SAM.gov notices of every type except award notices, and posted plus forecasted grants. Use includeAwardNotices, samNoticeTypes and grantStatuses to change that.

Why did my run return nothing?

Check the run's status message and SUMMARY.totals: they show, per source, how many notices were posted in your date window and how many matched your filters, so you can see whether the filters or the date window removed everything. If SAM.gov's extract was stale or empty, or a source failed, the dataset has a free warning row (rowType: "status") that says so. NAICS, PSC, set-aside and place-of-performance state filters apply to contracts only, so setting any of them skips Grants.gov for that run (the run log and SUMMARY.notes say so).

Why did my NAICS filter return no grants?

Grants don't have NAICS codes or set-asides, so those filters search contracts only.

Am I charged for notices my filters remove?

No. On SAM.gov contracts every filter (notice type, NAICS, PSC, state, set-aside, agency, due date and keywords) is checked in code on each row before it's returned, and you pay only for the rows returned (plus the Actor start and, in monitor mode, one alert charge per run with new matches). On Grants.gov, agency and due date are checked in code and keywords use Grants.gov's own search. matchedKeywords on each row shows which of your keywords it matched.

Can I get older notices?

Set postedSince to an earlier date. The SAM.gov extract covers the notices SAM.gov currently publishes.

It's US federal government information that agencies publish for the public. If you turn on contacts, use them only to respond to the notice they came from, and follow the laws that apply to you.

Can AI agents search SAM.gov and Grants.gov with this Actor?

Yes. Add Apify's MCP server with this Actor as a tool, and Claude, ChatGPT or Cursor agents can call it with their own input. The Use from code, spreadsheets or an AI agent section has the set-up.

Feedback

Missing a filter, field or notice type? Open an issue on the Issues tab with your input and run ID, so we can rerun the same input and check it.