SAM.gov Contract Opportunities Scraper: Federal Bids & Awards avatar

SAM.gov Contract Opportunities Scraper: Federal Bids & Awards

Pricing

from $3.00 / 1,000 opportunities

Go to Apify Store
SAM.gov Contract Opportunities Scraper: Federal Bids & Awards

SAM.gov Contract Opportunities Scraper: Federal Bids & Awards

SAM.gov contract opportunities scraper via the official API: federal RFPs, solicitations and awards. Filter by keyword, NAICS, set-aside, state and notice type. Bring your own free SAM.gov key. $3 per 1,000.

Pricing

from $3.00 / 1,000 opportunities

Rating

0.0

(0)

Developer

Mossfetch

Mossfetch

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

SAM.gov Contract Opportunities Scraper and API: US federal bids, solicitations & awards

Get US federal contract opportunities from SAM.gov as clean JSON, CSV or Excel. The actor calls the official SAM.gov Get Opportunities public API. It does not scrape the website, so it is stable and stays within SAM.gov's terms.

Use it to find federal solicitations and RFPs, spot sources-sought and presolicitation notices early, filter by NAICS code and small-business set-aside (8(a), HUBZone, SDVOSB, WOSB and more), and track contract awards and winners.

Try it in 2 minutes

  1. Get your free SAM.gov API key (steps below).
  2. Open the actor, paste the key, and press Start. The prefilled input stops after 3 opportunities, so the test run uses one SAM.gov request and costs under $0.01.
  3. Raise Max results for a full export.

The actor needs your key to fetch data. SAM.gov does not allow keys to be shared, so this is a limit of the source, not of the actor. A run without a key ends immediately with instructions and is not charged.

Who it's for

Small businesses and contractors hunting federal work, capture and proposal teams, government-contracting consultants, and sales teams selling to federal agencies.

Use cases

  1. Daily bid alerts for your NAICS codes and set-asides (8(a), HUBZone, SDVOSB, WOSB).
  2. Early pipeline. Spot sources-sought and presolicitation notices before the RFP lands.
  3. Award research. See who won what, for how much, and when, to plan recompetes and teaming.

You need your own free API key

SAM.gov requires every user to use their own key, and asks that you never share it.

  1. Sign in (or register for free) at SAM.gov.
  2. Open Account Details and request a Public API Key (you re-enter your password to view it).
  3. Paste it into the SAM.gov API key field. It is stored as a secret input and never written to the dataset or the log.

Daily request quota (important)

SAM.gov limits requests per day by account role. A personal account without a role gets about 10 requests per day; accounts with a federal role get far more. One request returns up to 1,000 notices, so 10 requests is plenty for most searches. It is not plenty if you:

  • select many notice types or NAICS codes (each combination is one query, one or more requests each), or
  • turn on Fetch full descriptions (one extra request per notice).

When the quota runs out, the actor stops cleanly, keeps every row already saved, and says so in the run status. Run it again after the quota resets, or narrow the filters.

What you can do

  • Search by title keyword, notice type (solicitation, presolicitation, combined synopsis/solicitation, sources sought, special notice, award, justification, surplus sale), NAICS, set-aside, place-of-performance state and agency.
  • Pick any posted-date window up to one year (default: last 7 days).
  • Get active notices only by default.
  • Optionally add the full description text.
  • Schedule it daily for a fresh list of new opportunities.

Example input

{
"apiKey": "YOUR-SAM-GOV-API-KEY",
"postedFrom": "2026-11-12",
"postedTo": "2026-11-19",
"keywords": "cloud",
"noticeTypes": ["o", "k"],
"naicsCodes": ["541512"],
"setAside": "SBA",
"state": "VA",
"maxItems": 500
}

Output

One row per notice, deduplicated by noticeId, with dates in ISO 8601.

FieldDescription
noticeId, solicitationNumber, uiLinkIdentifiers and the SAM.gov page
title, type, baseTypeNotice title and type
postedDate, responseDeadline, archiveDateDates (ISO 8601)
department, subTier, office, fullParentPathNameContracting organization
naicsCode, classificationCodeIndustry and product/service codes
typeOfSetAside, typeOfSetAsideDescriptionSet-aside
placeOfPerformance{ city, state, zip, country }
activetrue / false
award{ date, number, amount, awardeeName, awardeeUei } for award notices
pointOfContactGovernment contacts exactly as SAM.gov publishes them
descriptionTextPlain-text description (only with Fetch full descriptions)
resourceLinksAttachment links published with the notice
sourceSAM.gov public API

Sample output

TitleTypeAgencyNAICSSet-asideResponse deadline
Cloud Hosting ServicesCombined Synopsis/SolicitationGSA / FAS IT541512SBA2026-12-10
Historic Office RenovationAward Notice(agency)236220nonen/a

These two rows are illustrative: they come from test fixtures modelled on the official API documentation, not from a live run, because every run needs the user's own key.

Pricing

Pay per result: $3 per 1,000 opportunities ($0.003 each, event Opportunity). Filtered-out and duplicate notices are free. A run that fails because the key is rejected saves nothing and is not charged. The prefilled test run costs under $0.01.

Notes

  • Data is public federal procurement information published by SAM.gov. Contact details are the official government business contacts SAM.gov publishes with each notice; use them in line with applicable law.
  • keywords is matched against the notice title by SAM.gov.
  • This is an independent tool, not affiliated with or endorsed by the U.S. General Services Administration.

FAQ

Do I have to use my own API key? Yes. SAM.gov issues keys per user and prohibits sharing them. Your key is a secret input and is never logged or saved to the dataset.

Why did my run stop early? Most likely the SAM.gov daily request quota ran out (about 10 per day for accounts without a role). Rows already saved are kept. Narrow the filters or retry after the reset.

Is this the official API? Yes, the SAM.gov Get Opportunities public API. No scraping.

Does it include UK or EU tenders? Not here. See UK Government Tenders and EU Tenders API (TED).

Use it from code (API)

Run it from your own code with the Apify API clients. The input is the same JSON as in the form above.

Python

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("mossfetch/sam-gov-opportunities").call(run_input={
"apiKey": "YOUR-SAM-GOV-API-KEY",
"keywords": "cloud",
"naicsCodes": [
"541512"
],
"maxItems": 100
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

JavaScript

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('mossfetch/sam-gov-opportunities').call({
"apiKey": "YOUR-SAM-GOV-API-KEY",
"keywords": "cloud",
"naicsCodes": [
"541512"
],
"maxItems": 100
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

curl

curl -X POST "https://api.apify.com/v2/acts/mossfetch~sam-gov-opportunities/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"apiKey": "YOUR-SAM-GOV-API-KEY", "keywords": "cloud", "naicsCodes": ["541512"], "maxItems": 100}'

Integrations and export

Results land in an Apify dataset. Download them as JSON, CSV, Excel, XML or HTML from the dataset tab or the API. You can schedule runs, trigger a webhook when a run finishes, and connect the actor to Make, Zapier, n8n or Google Sheets with Apify's standard integrations. These are generic Apify platform features, not extra features of this actor.

More public-sector and funding data from mossfetch