# SAM.gov Contract Opportunities Monitor - No API Key (`angaba92/sam-gov-opportunities-monitor`) Actor

Monitor SAM.gov federal contract opportunities without an API key: RFPs, solicitations, sources sought, awards. Filter by keyword, NAICS, set-aside, state. Full description, contacts, attachments, only-new mode. CSV, JSON, Excel.

- **URL**: https://apify.com/angaba92/sam-gov-opportunities-monitor.md
- **Developed by:** [Andres Garcia-Baquero Leon](https://apify.com/angaba92) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.50 / 1,000 opportunities

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

## SAM.gov Contract Opportunities Monitor - No API Key

Track **US federal contract opportunities from SAM.gov** — solicitations, RFPs, RFQs, sources sought, presolicitations and award notices — **without a SAM.gov API key**. Filter by keyword, NAICS code, set-aside, notice type and state. Each result includes the full description, contracting officer contacts, NAICS and PSC codes, place of performance, response deadline and optional attachment links.

Built for **GovCon BD teams, capture managers, small businesses (8(a), SDVOSB, WOSB, HUBZone) and bid consultants** who want a daily feed of new bids in a spreadsheet, CRM or Slack.

### Why this actor

- **No API key, no 10-requests-per-day limit.** The official SAM.gov public API gives personal non-federal keys 10 calls per day. This actor reads the same public data sam.gov shows in its own search page.
- **Only new or updated since last run.** Schedule it daily: opportunities you already received unchanged are skipped and **not charged**.
- **Full detail, not just snippets**: description text, contacts (name, email, phone), NAICS, PSC, set-aside, place of performance, award amount and awardee.
- **Attachment links** (RFP PDFs, SOWs) on request.
- Pay only for opportunities delivered.

### Input examples

New IT bids for small businesses posted in the last 3 days:

```json
{ "naicsCodes": ["541512", "541511", "541519"], "setAsideCodes": ["SBA"], "postedWithinDays": 3 }
```

Daily monitor of cybersecurity solicitations in Virginia (schedule daily):

```json
{ "keywords": "cybersecurity", "noticeTypes": ["o", "k", "r"], "states": ["VA"], "onlyNewSinceLastRun": true, "monitorName": "cyber-va" }
```

Notice type codes: `o` Solicitation, `k` Combined Synopsis/Solicitation, `p` Presolicitation, `r` Sources Sought, `s` Special Notice, `a` Award Notice, `u` Justification, `i` Intent to Bundle, `g` Sale of Surplus Property.
Common set-aside codes: `SBA` Total Small Business, `SBP` Partial Small Business, `8A`, `8AN`, `SDVOSBC`, `WOSB`, `EDWOSB`, `HZC`.

### Output

| Field | Description |
|---|---|
| `title`, `solicitationNumber`, `noticeType` | Notice basics |
| `postedDate`, `modifiedDate`, `responseDeadline` | Dates (ISO, UTC) |
| `department`, `subTier`, `office`, `agencyPath`, `officeAddress` | Contracting organization |
| `naicsCodes`, `pscCode`, `setAside` | Classification |
| `placeOfPerformance` | City, state, ZIP, country |
| `contacts` | Contracting officers: name, email, phone |
| `description` | Full description as plain text |
| `attachments` | Name, size and download URL (if enabled) |
| `awardAmount`, `awardDate`, `awardeeName`, `awardeeUei` | For award notices |
| `changeStatus` | `new` / `updated` in monitor mode |
| `url` | Link to the notice on sam.gov |

Example row (shortened):

```json
{
  "title": "Enterprise Inventory Management",
  "noticeType": "Sources Sought",
  "department": "HEALTH AND HUMAN SERVICES, DEPARTMENT OF",
  "office": "PROGRAM SUPPORT CENTER ACQ MGMT SVC",
  "responseDeadline": "2026-11-12T16:00:00+00:00",
  "naicsCodes": ["541512"], "pscCode": "7B22", "setAside": "SBA",
  "placeOfPerformance": "Perry Point, MD, 21902, USA",
  "contacts": [{ "type": "primary", "name": "Tim Bouchelle", "email": "Timothy.Bouchelle@hhs.gov" }],
  "url": "https://sam.gov/opp/a5f6b56af8c94d168a081571b56e002f/view"
}
```

A run summary (matched, delivered, skipped) is saved to the `OUTPUT` record.

### Delivery integrity and coverage

- One unique `noticeId` is delivered at most once **within a run**, including when pages repeat. Pages containing only repeated IDs do not stop pagination while the search total indicates more pages.
- Dataset delivery and the `opportunity` event use the SDK's atomic charged push. `OUTPUT.delivered` counts only SDK-confirmed rows. A billing exception or invalid SDK confirmation fails the run; it is never reclassified as an upstream partial success.
- Search responses must contain recognized pagination and notice IDs/titles. Unknown HTTP-200 layouts fail before delivery, or preserve already delivered rows with `OUTPUT.status=partial` if a later page fails. A recognized zero-match response is a legitimate empty result.
- `detailStatus` and `attachmentsStatus` distinguish `not_requested`, `available`, `not_found` and `unavailable`. `available` means a recognized response was parsed, **not** that every optional field exists. Optional enrichment failure keeps the core notice and marks the summary partial; it does not fabricate an empty attachment list.
- `OUTPUT` exposes `delivered`, `duplicatesSkipped`, `skippedUnchanged`, `matched`, `pagesFetched`, `detailErrors`, `attachmentErrors`, `chargeLimitReached`, `truncatedAtWindow`, `status` and search errors. A successful limited/partial run does not mean all matching notices were delivered. `maxResults: 0` is an explicit no-delivery run.
- Monitor memory contains only confirmed delivered IDs and modification dates, including after a later failure. Run one execution per monitor at a time: key-value storage and dataset writes are not a cross-run transaction, and simultaneous runs or a process crash can cause repeat delivery. Use distinct `monitorName` values for independent searches. Unchanged skips depend on source modification dates, the rolling date window and retained memory (up to 50,000 IDs).
- A new run without monitor mode can deliver and charge for the same notices again.

### Pricing

| Event | Price |
|---|---:|
| `opportunity` | **$0.0025 per delivered notice ($2.50 per 1,000)** |

No separately configured actor-start event. Skipped unchanged notices and within-run duplicates do not create opportunity events. Enrichment is included when available, not guaranteed. Set the run's maximum charge to limit paid delivery; this does not promise a hard cap on all platform resource usage. Owner QA events are not evidence of seller revenue.

### Limits and notes

- sam.gov returns at most **10,000 results per search**; narrow filters for bigger pulls.
- Data comes from sam.gov's public, unauthenticated web endpoints (the same ones its search page uses). These are not a documented API and could change; the actor fails loudly instead of returning empty data if they do.
- Only publicly accessible attachments are listed; controlled (CUI/export-controlled) files are excluded.
- US federal procurement information is public. Contact details belong to government contracting staff and should be used for procurement correspondence only.
- Not affiliated with GSA or SAM.gov.

# Actor input Schema

## `keywords` (type: `string`):

Words that must all appear (title, description, solicitation number). Leave empty for everything.

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

Up to 6-digit NAICS codes, e.g. 541512 (Computer Systems Design).

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

Empty = all types.

## `setAsideCodes` (type: `array`):

E.g. SBA (Total Small Business), 8A, SDVOSBC, WOSB, HZC. Empty = all.

## `states` (type: `array`):

2-letter US state codes, e.g. VA, TX.

## `postedWithinDays` (type: `integer`):

Ignored if 'Posted from' is set. 0 = no date filter.

## `postedFrom` (type: `string`):

Optional exact start date.

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

Active opportunities only.

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

sam.gov serves at most 10,000 per search.

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

Includes description, contacts and classification when available. Per-row detailStatus exposes unavailability; core search data is preserved.

## `includeAttachments` (type: `boolean`):

Attachment links.

## `onlyNewSinceLastRun` (type: `boolean`):

For scheduled monitoring: skips (and does not charge) opportunities already delivered unchanged.

## `monitorName` (type: `string`):

Separate memory per saved search when using 'only new'.

## Actor input object example

```json
{
  "naicsCodes": [
    "541512",
    "541511"
  ],
  "postedWithinDays": 3,
  "activeOnly": true,
  "maxResults": 20,
  "includeDetails": true,
  "includeAttachments": false,
  "onlyNewSinceLastRun": false,
  "monitorName": "default"
}
```

# Actor output Schema

## `opportunities` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "naicsCodes": [
        "541512",
        "541511"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("angaba92/sam-gov-opportunities-monitor").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 = {
    "naicsCodes": [
        "541512",
        "541511",
    ],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("angaba92/sam-gov-opportunities-monitor").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 '{
  "naicsCodes": [
    "541512",
    "541511"
  ],
  "maxResults": 20
}' |
apify call angaba92/sam-gov-opportunities-monitor --silent --output-dataset

```

## MCP server setup

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

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/UnYLIFCeZsnyGzMAV/builds/4cie0FEmg01KZGsxE/openapi.json
