# SAM.gov Scraper: Federal Contract Opportunity Alerts (`radiant_opuntia/sam-gov-opportunities-alerts`) Actor

Get new US federal contract opportunities from SAM.gov, no API key needed. Filter by keyword, notice type, NAICS, set-aside, place-of-performance state and agency. Flat JSON with deadline, NAICS, PSC, set-aside, contact and award. 'Only new' mode for daily bid alerts.

- **URL**: https://apify.com/radiant_opuntia/sam-gov-opportunities-alerts.md
- **Developed by:** [GovData Feeds](https://apify.com/radiant_opuntia) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**Get new US federal contract opportunities from SAM.gov as clean rows, with deadline, NAICS, set-aside, place of performance, contracting contact and award, plus daily bid alerts.**

**Rate your experience:** if you have used this Actor, you can tell us how it went on the [reviews page](https://apify.com/radiant_opuntia/sam-gov-opportunities-alerts/reviews). Honest feedback of any kind helps us improve it.

### What it does and who it is for

This Actor reads **SAM.gov**, the official US government site where federal agencies post contract opportunities, and returns one flat record per notice: **title, solicitation number, notice type, posted date, response deadline, department, sub-tier and office, NAICS and PSC codes, set-aside, place of performance, primary contact, awardee and award amount, a description snippet and the SAM.gov link**.

Filter by keyword, notice type (solicitations, presolicitations, sources sought, awards and more), NAICS code, set-aside (small business, 8(a), HUBZone, SDVOSB, WOSB), place-of-performance state and agency. Turn on **Only new** to receive each notice once.

#### Use cases

- **Small businesses and government contractors:** a daily list of new bids in your NAICS codes and states.
- **Bid-matching services and consultants:** feed new opportunities into your CRM or client alerts.
- **Sales teams selling to government buyers:** see which offices are buying what, with the contracting contact.
- **Competitive intelligence:** watch award notices to see who won and for how much.
- **AI agents:** answer "what janitorial or IT bids were posted for Kansas this week?".

### Why use this instead of the free official site or API

The underlying data is public and the official sources are free. What this Actor adds is convenience: the SAM.gov search is turned into flat rows with the details you normally click into one by one.

| What you need | Official site / API | This Actor |
|---|---|---|
| Finding bids | Manual searches on SAM.gov, or the official API with a personal key and rate limits | One input with keyword, NAICS, set-aside, state and agency filters, no key |
| NAICS, set-aside, place, contact | On each notice's detail page | In every row |
| Only new notices | Saved-search emails you have to read | **Only new** mode with a named alert, ready for Slack, email or a webhook |
| Exports | Limited CSV export | JSON, CSV, Excel and API from the Apify dataset |

If you only need a single lookup now and then, the official site is fine. If you want the same data on a schedule, as flat rows you can feed to a spreadsheet, CRM or agent, this saves the glue work.

### Data fields

| Field | Type | What it contains |
|---|---|---|
| `noticeId` | text | SAM.gov notice ID. |
| `title` | text | Notice title. |
| `solicitationNumber` | text | Solicitation or award number. |
| `noticeType` | text | Notice type (for example Solicitation, Sources Sought, Award Notice). |
| `postedDate` | date | Date the notice was posted. |
| `responseDeadline` | datetime | Response or offer due date and time (UTC), when given. |
| `modifiedDate` | date | Date the notice was last modified. |
| `department` | text | Top-level department. |
| `subTier` | text | Sub-tier agency. |
| `office` | text | Contracting office. |
| `agencyPath` | text | Full agency hierarchy. |
| `naicsCode` | text | Primary NAICS code. |
| `pscCode` | text | Product or service code (PSC). |
| `setAside` | text | Set-aside code (for example SBA, 8A, SDVOSBC), when any. |
| `placeOfPerformanceCity` | text | Place-of-performance city, when given. |
| `placeOfPerformanceState` | text | Place-of-performance state code, when given. |
| `placeOfPerformanceZip` | text | Place-of-performance ZIP code, when given. |
| `contactName` | text | Primary point of contact. |
| `contactEmail` | text | Primary contact email, as published. |
| `contactPhone` | text | Primary contact phone, as published. |
| `awardee` | text | Awardee name (award notices). |
| `awardeeUei` | text | Awardee UEI (award notices). |
| `awardAmount` | text | Award amount in US dollars (award notices). |
| `awardDate` | text | Award date (award notices). |
| `description` | text | Start of the notice description (up to 2,000 characters), HTML removed. |
| `isCanceled` | boolean | true when the notice was canceled. |
| `url` | text | Link to the notice on SAM.gov. |
| `scrapedAt` | datetime | When the Actor collected the record (UTC). |

Fields a source does not publish are `null`.

### "New since yesterday" alerts

Turn on **Only new** and the Actor remembers what it has already returned, so each scheduled run delivers only records you have not seen before.

1. Open the Actor in Apify Console and set the input, with **Only new since last run** switched on and a fixed alert name (`stateKey`). Example input:

```json
{
  "naicsCodes": ["561720"],
  "setAsides": ["SBA"],
  "placeOfPerformanceStates": ["KS", "MO"],
  "daysBack": 3,
  "maxResults": 200,
  "onlyNew": true,
  "stateKey": "daily-sam-bids"
}
```

2. Click **Save as task**, then open **Schedules**, create a schedule (for example the cron expression `0 7 * * *` for every day at 7:00 in the time zone you pick) and add the task to it.
3. Under the task's **Integrations**, send the results to Slack, email, Google Sheets, a webhook or your own system.

A 3-day window with Only new gives each notice exactly once, even if a daily run is skipped.

The first run returns everything that matches your window (all matching notices posted in the last 3 days); later runs return only unseen records. Use a different alert name for each task so each keeps its own memory. A run with nothing new returns no results.

### Cost per run

This Actor uses **pay-per-result pricing: $3.00 per 1,000 results ($0.003 per result)**, with the Apify platform fee included. You are charged for the records a run returns and nothing is added on top for platform usage. A run that finds nothing new returns no results, so it has no per-result charge. The **Max results** input caps what a run can return (and so what it can cost).

**Worked example:** a daily alert that returns 12 new bids costs 12 × $0.003 = $0.036 per run, about $1.08 a month. Pulling 2,000 notices costs 2 × $3.00 = $6.00.

The pricing is configured in Apify Console; the Pricing tab on this page is the authoritative source if it ever differs from this text.

### Example input and output

The output below comes from real test runs of this Actor. Email addresses are masked and very long text is shortened here; the Actor returns the full values.

Input used for the example:

```json
{
  "noticeTypes": ["o", "k", "p", "r"],
  "setAsides": ["SBA"],
  "daysBack": 3,
  "maxResults": 10
}
```

Output (the first 1 records of a test run):

```json
[
  {
    "noticeId": "de1eedb6184445e0b217c6a70098fad7",
    "title": "Small Business Set-Aside for for Mensor, LP Brand Sensors Per Attachments",
    "solicitationNumber": "N61331-27-Q-JK01",
    "noticeType": "Combined Synopsis/Solicitation",
    "postedDate": "2026-10-26",
    "responseDeadline": "2026-10-29T16:00:00+00:00",
    "modifiedDate": "2026-10-26",
    "department": "DEPT OF DEFENSE",
    "subTier": "DEPT OF THE NAVY",
    "office": "NAVAL SURFACE WARFARE CENTER",
    "agencyPath": "DEPT OF DEFENSE > DEPT OF THE NAVY > NAVSEA > NAVSEA WARFARE CENTER > NAVAL SURFACE WARFARE CENTER",
    "naicsCode": "334513",
    "pscCode": "6640",
    "setAside": "SBA",
    "placeOfPerformanceCity": "Panama City Beach",
    "placeOfPerformanceState": "FL",
    "placeOfPerformanceZip": "32407",
    "contactName": "Jamell L.  Kilgore",
    "contactEmail": "[email masked]",
    "contactPhone": null,
    "awardee": null,
    "awardeeUei": null,
    "awardAmount": null,
    "awardDate": null,
    "description": "This procurement is a firm fixed price Small Business Set Aside per the requirment in the attachement. Email quotes (on your companies letterhead with full OEM specifications) to [email masked] on or be…",
    "isCanceled": false,
    "url": "https://sam.gov/opp/de1eedb6184445e0b217c6a70098fad7/view",
    "scrapedAt": "2026-10-26T12:43:13.119Z"
  }
]
```

### Limits worth knowing

- Results reflect SAM.gov at the time of the run. SAM.gov search returns at most 10,000 matches per query, so narrow very broad searches.
- The description is a snippet; attachments are not downloaded. Open the SAM.gov link for the full package.
- Notices without a stated place of performance are excluded when you filter by state.
- Contact details are copied as published on SAM.gov.

### FAQ

#### Do I need a SAM.gov API key?

No.

#### Does it include award notices?

Yes. Add Award Notice to the notice types to see awardee, UEI and amount.

#### How do I watch my NAICS codes?

Put them in **NAICS codes**, turn on **Only new**, and add a daily Schedule.

#### Does it include grants?

No. Grants are on Grants.gov. See the grants Actor below.

#### Is this a replacement for checking SAM.gov?

No. Always read the full solicitation on SAM.gov before bidding.

### Related Actors

More Actors from GovData Feeds, all on Apify:

- [grants-gov-alerts](https://apify.com/radiant_opuntia/grants-gov-alerts): US federal grant opportunities (Grants.gov): ceilings, deadlines, eligibility
- [sec-form-d-alerts](https://apify.com/radiant_opuntia/sec-form-d-alerts): SEC Form D filings: companies that just raised money
- [usaspending-awards-alerts](https://apify.com/radiant_opuntia/usaspending-awards-alerts): New federal contract, grant and loan awards (USAspending)
- [sec-form4-insider-alerts](https://apify.com/radiant_opuntia/sec-form4-insider-alerts): SEC Form 4 insider buys and sells, one row per transaction
- [fda-recall-alerts](https://apify.com/radiant_opuntia/fda-recall-alerts): FDA food, drug and medical device recalls
- [fda-compliance-alerts](https://apify.com/radiant_opuntia/fda-compliance-alerts): FDA 510(k) clearances, MAUDE adverse events and warning letters
- [cpsc-recall-alerts](https://apify.com/radiant_opuntia/cpsc-recall-alerts): CPSC consumer product safety recalls
- [us-building-permits-alerts](https://apify.com/radiant_opuntia/us-building-permits-alerts): New building permits from nine city open-data portals
- [clinical-trials-alerts](https://apify.com/radiant_opuntia/clinical-trials-alerts): New ClinicalTrials.gov studies by condition, sponsor and phase
- [federal-register-alerts](https://apify.com/radiant_opuntia/federal-register-alerts): Federal Register rules, proposed rules and notices
- [contractor-license-alerts](https://apify.com/radiant_opuntia/contractor-license-alerts): New contractor licenses in WA, OR and NY with bond and insurance
- [ofac-sanctions-alerts](https://apify.com/radiant_opuntia/ofac-sanctions-alerts): OFAC sanctions screening and change alerts
- [new-business-registrations-alerts](https://apify.com/radiant_opuntia/new-business-registrations-alerts): New LLC and corporation registrations (NY, CO, OR, CT)
- [epa-echo-enforcement-alerts](https://apify.com/radiant_opuntia/epa-echo-enforcement-alerts): EPA ECHO facilities with new environmental penalties
- [restaurant-inspections-alerts](https://apify.com/radiant_opuntia/restaurant-inspections-alerts): Restaurant health inspections from seven US jurisdictions
- [code-violations-alerts](https://apify.com/radiant_opuntia/code-violations-alerts): Building, housing and property code violations from six cities

*Data comes from SAM.gov, a US government source. This Actor is not affiliated with or endorsed by the US General Services Administration.*

# Actor input Schema

## `keyword` (type: `string`):

Full-text search across SAM.gov notices, e.g. 'janitorial', 'cybersecurity', 'HVAC'. Leave empty for all.

## `noticeTypes` (type: `array`):

Which SAM.gov notice types to include. Leave empty for all types.

## `naicsCodes` (type: `array`):

6-digit NAICS codes, e.g. 561720 (janitorial), 541512 (computer systems design), 236220 (commercial construction). Any one match keeps the notice.

## `setAsides` (type: `array`):

SAM.gov set-aside codes, e.g. SBA (total small business), 8A, HZC (HUBZone), SDVOSBC (service-disabled veteran-owned), WOSB, EDWOSB.

## `placeOfPerformanceStates` (type: `array`):

Two-letter state codes, e.g. KS, MO, TX. Notices with no stated place of performance are excluded when this is set.

## `agencyContains` (type: `string`):

Keep notices whose agency path contains this text, e.g. 'ARMY', 'VETERANS AFFAIRS', 'FOREST SERVICE'.

## `daysBack` (type: `integer`):

Only notices first posted in this window. 0 = no date limit (active notices only, up to 10,000).

## `activeOnly` (type: `boolean`):

Skip archived and inactive notices.

## `includeDetails` (type: `boolean`):

Fetch each notice's detail record. Turn off for a faster, lighter list.

## `onlyNew` (type: `boolean`):

Remember what was already returned and output only notices not seen in earlier runs of this same search. Ideal with a daily Schedule + email/Slack/webhook integration.

## `stateKey` (type: `string`):

Separate memory for 'only new' mode. Defaults to a key derived from your filters.

## `maxResults` (type: `integer`):

Stop after this many notices.

## Actor input object example

```json
{
  "noticeTypes": [
    "o",
    "k",
    "p",
    "r"
  ],
  "naicsCodes": [],
  "setAsides": [],
  "placeOfPerformanceStates": [],
  "daysBack": 3,
  "activeOnly": true,
  "includeDetails": true,
  "onlyNew": false,
  "maxResults": 50
}
```

# Actor output Schema

## `results` (type: `string`):

All SAM.gov notices returned by this run (flat JSON items in the default dataset).

## `runSummary` (type: `string`):

Counts of items pushed and items skipped as already seen (only-new mode).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keyword": "",
    "noticeTypes": [
        "o",
        "k",
        "p",
        "r"
    ],
    "daysBack": 3,
    "onlyNew": false,
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("radiant_opuntia/sam-gov-opportunities-alerts").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keyword": "",
    "noticeTypes": [
        "o",
        "k",
        "p",
        "r",
    ],
    "daysBack": 3,
    "onlyNew": False,
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("radiant_opuntia/sam-gov-opportunities-alerts").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keyword": "",
  "noticeTypes": [
    "o",
    "k",
    "p",
    "r"
  ],
  "daysBack": 3,
  "onlyNew": false,
  "maxResults": 50
}' |
apify call radiant_opuntia/sam-gov-opportunities-alerts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,radiant_opuntia/sam-gov-opportunities-alerts"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/L2NpiLxrlHwkiA5ZV/builds/hXoWjnOdlejbmWDeh/openapi.json
