# SAM.gov Contract Opportunities — Official Extract, No Key (`bidscout/sam-gov-contract-opportunities`) Actor

Federal contract opportunities from SAM.gov's official public daily extract. No login, no API key, no page scraping. Filter by NAICS, PSC, set-aside, state, agency, keywords and deadline; monitor mode returns only new notices.

- **URL**: https://apify.com/bidscout/sam-gov-contract-opportunities.md
- **Developed by:** [Bidscout Data](https://apify.com/bidscout) (community)
- **Categories:** Business, Automation
- **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 — Official Extract, No API Key

Get US federal contract opportunities (solicitations, sources sought, presolicitations, award notices) as clean JSON, CSV or Excel, filtered to the work you actually bid on.

**Why this Actor**

- **Official, sanctioned source.** Reads SAM.gov's public daily *Contract Opportunities* extract published through [SAM.gov Data Services](https://sam.gov/data-services). It does not scrape SAM.gov pages (which SAM.gov's terms prohibit) and needs **no SAM.gov account or API key**.
- **Fast and reliable.** A full pass over every notice in the extract (~73,600 notices, ~224 MB) takes seconds. There is no browser and no page layout to break.
- **Monitor mode.** Turn on *Only new notices* and schedule it daily. Each run returns only the notices you have not received yet, which suits Slack, email, Sheets or CRM alerts through Apify integrations.
- **Real bid filters.** Filter by NAICS and PSC prefixes, set-aside (SBA, 8A, SDVOSB, WOSB, HUBZone), place-of-performance state, agency, notice type, keyword and open deadline.

### Input example

```json
{
  "keywords": ["cybersecurity", "zero trust"],
  "naicsCodes": ["5415"],
  "setAsideCodes": ["SBA", "SDVOSBC"],
  "states": ["VA", "MD", "DC"],
  "postedWithinDays": 7,
  "openForResponsesOnly": true,
  "onlyNewSinceLastRun": true,
  "monitorName": "cyber-dmv",
  "maxResults": 500
}
```

### Output example

```json
{
  "noticeId": "0d44ad049e474ea389e3661dca75413b",
  "title": "Post Quantum Cryptography (PQC) Readiness and Validation Status",
  "solicitationNumber": "1106202612072026",
  "department": "GENERAL SERVICES ADMINISTRATION",
  "subTier": "FEDERAL ACQUISITION SERVICE",
  "noticeType": "Sources Sought",
  "postedDate": "2026-11-18 15:38:20",
  "responseDeadline": "2026-12-07T23:59:00-05:00",
  "naicsCode": "541519",
  "setAside": null,
  "placeOfPerformance": {"city": "Washington", "state": "DC", "zip": "20405", "country": "USA"},
  "award": null,
  "link": "https://sam.gov/workspace/contract/opp/0d44ad049e474ea389e3661dca75413b/view",
  "primaryContact": {"name": "…", "email": "…@gsa.gov"},
  "description": "Federal agencies are preparing for the transition…"
}
```

### Pricing

Pay per result: **$2.50 per 1,000 opportunities** delivered ($0.0025 per result). There is no start fee, and filters run before you are charged, so you pay only for matching notices. Set *Max results* to cap spend.

### Data freshness and notes

- SAM.gov regenerates the extract once a day, around 04:30 UTC in testing. Notices posted after that appear in the next day's file. For minute-level freshness, use the official SAM.gov API with your own key.
- Contact fields are the government points of contact that SAM.gov publishes on each notice. Use them only for responding to opportunities, and follow applicable anti-spam laws.

### Data source, license and attribution

This Actor reads the public *Contract Opportunities* extract published by the U.S. General Services Administration through [SAM.gov Data Services](https://sam.gov/data-services). Works of the United States government are generally not eligible for copyright protection in the United States (17 U.S.C. § 105).

**Attribution.** Source: U.S. General Services Administration, SAM.gov. Where practical, include a link to the notice on SAM.gov.

This Actor is not affiliated with or endorsed by GSA or SAM.gov. You remain responsible for how you use the data, including any SAM.gov terms that apply to your own use.

# Actor input Schema

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

Match any of these words in the title (and description, if enabled). Case-insensitive.

## `searchDescriptions` (type: `boolean`):

Also match keywords inside the notice description.

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

0 = no date filter.

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

e.g. 541512 or 5415 for all computer-systems design services.

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

Product/Service codes, e.g. D3 or R4.

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

e.g. SBA, 8A, SDVOSBC, WOSB, HZC. Leave empty for all.

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

Two-letter codes, e.g. VA, TX.

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

Match department or sub-tier names, e.g. 'navy', 'veterans'.

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

e.g. Solicitation, Combined Synopsis/Solicitation, Sources Sought, Presolicitation, Award Notice.

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

Skip archived/inactive notices.

## `openForResponsesOnly` (type: `boolean`):

Notices without a deadline are kept.

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

Remembers what earlier runs delivered (per monitor name) and returns only notices you have not received yet. Ideal for a daily schedule.

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

Keep separate memories for different saved searches.

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

Full notice description (truncated to the limit below).

## `descriptionMaxChars` (type: `integer`):

0 = no limit.

## `includeContacts` (type: `boolean`):

Official government point of contact published on the notice.

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

Stop after this many matching notices (you pay per result).

## Actor input object example

```json
{
  "keywords": [
    "cybersecurity"
  ],
  "searchDescriptions": true,
  "postedWithinDays": 7,
  "activeOnly": true,
  "openForResponsesOnly": true,
  "onlyNewSinceLastRun": false,
  "monitorName": "default",
  "includeDescription": true,
  "descriptionMaxChars": 2000,
  "includeContacts": true,
  "maxResults": 500
}
```

# Actor output Schema

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

Matching SAM.gov contract opportunities in the default dataset. Use the Overview view for the main fields.

# 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": [
        "cybersecurity"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bidscout/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": ["cybersecurity"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bidscout/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/Hg9fuqfT9Yc4oAsgl/builds/SrvC2sFTaXsBX3e1x/openapi.json
