# Federal Contract Opportunities (SAM.gov) Search and Monitor (`govbid-data/sam-gov-contract-opportunities`) Actor

Search and monitor every active SAM.gov federal contract opportunity. Filter by keyword, NAICS, PSC, set-aside, state, agency and notice type. Monitor mode returns only new notices. No API key needed.

- **URL**: https://apify.com/govbid-data/sam-gov-contract-opportunities.md
- **Developed by:** [GovBid Data](https://apify.com/govbid-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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

## Federal Contract Opportunities (SAM.gov) Search and Monitor

Search every active federal contract opportunity on SAM.gov and get a daily feed of new ones that fit your business. No SAM.gov account or API key needed, and no daily request limit.

### What it does

- Searches all active opportunities SAM.gov publishes (about 70,000 at any time, updated daily).
- Filters by keyword, NAICS code, product and service code (PSC), set-aside, place of performance, agency, notice type, posting date, and award amount.
- **Monitor mode** returns only notices you haven't seen before. Schedule it daily and you get a clean list of new bids each morning, by email, Slack, Google Sheets, or webhook through Apify integrations.
- Returns clean JSON, CSV, or Excel with the contracting officer's contact details, response deadline, set-aside, and a direct SAM.gov link.

### Why the results are cleaner

Most defense notices include standard contract clauses that mention words like "cybersecurity" whether or not the work has anything to do with it. A plain keyword search on SAM.gov data returns lodging contracts and cap screws when you search for cybersecurity. This Actor matches keywords on the title by default. If you choose to search descriptions too, it ignores standard clause language first, so results reflect the actual work. Each result tells you whether it matched on the title or the description, and title matches are listed first.

### Example input

```json
{
  "keywords": ["cybersecurity", "network"],
  "naicsCodes": ["5415"],
  "setAsides": ["SBA", "SDVOSBC"],
  "states": ["VA", "MD", "DC"],
  "postedWithinDays": 7,
  "openOnly": true,
  "onlyNew": true,
  "monitorName": "it-services-dmv"
}
```

### Example output

```json
{
  "noticeId": "7e2ad9899b2a47b9a4cbc18e363963a1",
  "title": "C5ISRT NEXT GENERATION CYBERSECURITY AND INFORMATION ASSURANCE Presolicitation Conference",
  "solicitationNumber": "N6133127R3002",
  "noticeType": "Special Notice",
  "agency": "DEPT OF DEFENSE",
  "subTier": "DEPT OF THE NAVY",
  "office": "NAVAL SURFACE WARFARE CENTER",
  "postedDate": "2026-11-16T14:40:52+00:00",
  "responseDeadline": null,
  "naicsCode": "541330",
  "pscCode": "R425",
  "setAsideCode": "SBA",
  "setAside": "Small Business Set Aside - Total",
  "placeOfPerformance": { "city": null, "state": null, "zip": "32407", "country": null },
  "contact": { "name": "...", "email": "...", "phone": "..." },
  "samUrl": "https://sam.gov/workspace/contract/opp/7e2ad9899b2a47b9a4cbc18e363963a1/view",
  "matchedIn": "title",
  "description": "..."
}
```

### Set-aside codes

| Code | Meaning |
|---|---|
| SBA | Total small business set-aside |
| SBP | Partial small business set-aside |
| 8A | 8(a) set-aside |
| HZC | HUBZone set-aside |
| SDVOSBC | Service-disabled veteran-owned small business set-aside |
| WOSB | Women-owned small business set-aside |
| EDWOSB | Economically disadvantaged women-owned small business |
| VSA | Veteran-owned small business (VA) |
| ISBEE | Indian Small Business Economic Enterprise |
| NONE | No set-aside |

### Pricing

- $2.00 per 1,000 results ($0.002 per result)
- $0.005 per run start

There are no other platform usage charges. A daily monitor run that finds nothing new costs half a cent. Pulling 1,000 matching notices costs about $2.

### Data source

Data comes from the public daily extract of active contract opportunities published by SAM.gov, the U.S. government's System for Award Management. This Actor is not affiliated with or endorsed by the U.S. government. Always confirm details on SAM.gov before submitting a bid.

### Coming soon

State and local bid portals, so federal, state, and local opportunities arrive in one feed.

# Actor input Schema

## `keywords` (type: `array`):

Words or phrases to look for in the title and description, for example "cybersecurity" or "snow removal". Leave empty to skip keyword filtering.

## `keywordMode` (type: `string`):

Match notices that contain any of the keywords, or only those that contain all of them.

## `keywordScope` (type: `string`):

Title only gives the most precise results. Title and description finds more, after ignoring standard contract clause language that mentions terms like cybersecurity in almost every defense notice.

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

NAICS codes or prefixes. "5415" matches 541511, 541512 and so on.

## `pscCodes` (type: `array`):

PSC codes or prefixes, for example "D3" or "Z1".

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

Set-aside codes: SBA (small business), 8A, HZC (HUBZone), SDVOSBC (service-disabled veteran-owned), WOSB, EDWOSB, VSA, ISBEE, NONE.

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

Two-letter state codes, for example VT or TX.

## `agencies` (type: `array`):

Part of a department, sub-tier or office name, for example "Veterans Affairs" or "Army".

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

Leave empty for all types.

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

Only return notices posted in this many days. Leave empty for any date.

## `openOnly` (type: `boolean`):

Skip notices whose response deadline has passed.

## `minAwardAmount` (type: `integer`):

Only return award notices at or above this dollar amount.

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

Return only notices this monitor has not returned before. Schedule the Actor daily to get a feed of new opportunities.

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

Used with monitor mode to keep separate saved searches apart.

## `includeDescription` (type: `boolean`):

Include the full notice text. Turn off for smaller, faster results.

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

Stop after this many notices.

## Actor input object example

```json
{
  "keywords": [
    "software",
    "cybersecurity",
    "cloud"
  ],
  "keywordMode": "any",
  "keywordScope": "title",
  "postedWithinDays": 7,
  "openOnly": true,
  "onlyNew": false,
  "monitorName": "default",
  "includeDescription": true,
  "maxResults": 1000
}
```

# Actor output Schema

## `overview` (type: `string`):

Matching SAM.gov contract opportunities, newest and best matches first.

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

Every field for each opportunity, including contacts and description.

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

Notices scanned, matched and returned, and whether a spending limit was reached.

# 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 = {
    "keywords": [
        "software",
        "cybersecurity",
        "cloud"
    ],
    "postedWithinDays": 7
};

// Run the Actor and wait for it to finish
const run = await client.actor("govbid-data/sam-gov-contract-opportunities").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 = {
    "keywords": [
        "software",
        "cybersecurity",
        "cloud",
    ],
    "postedWithinDays": 7,
}

# Run the Actor and wait for it to finish
run = client.actor("govbid-data/sam-gov-contract-opportunities").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 '{
  "keywords": [
    "software",
    "cybersecurity",
    "cloud"
  ],
  "postedWithinDays": 7
}' |
apify call govbid-data/sam-gov-contract-opportunities --silent --output-dataset

```

## MCP server setup

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

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/a8oKTixwN5YfdEbsk/builds/2fdl38A0C1E5lJQKl/openapi.json
