# SAM.gov Contract Opportunities – Federal Bids & Awards (`neobuster/sam-gov-contract-opportunities`) Actor

Federal contract opportunities from the official SAM.gov daily extract: solicitations, sources sought, presolicitations and awards with full description, deadline, NAICS, PSC, set-aside, place of performance and contracting officer. No API key.

- **URL**: https://apify.com/neobuster/sam-gov-contract-opportunities.md
- **Developed by:** [Neobuster Studio](https://apify.com/neobuster) (community)
- **Categories:** Lead generation, Business, Automation
- **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 contract 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 – Federal Bids & Awards

Find **US federal contract opportunities** (solicitations, RFQs, sources sought, presolicitations, special notices) and **contract awards** from the **official SAM.gov daily extract**, filtered by keyword, NAICS, PSC, set-aside, agency, state and date. Each notice comes with its **full description**, response deadline, place of performance, contracting office and contact phone. **$2 per 1,000 notices**, no SAM.gov API key needed.

### What you get

- **New bids every morning for your trade:** schedule a daily run with your NAICS codes or keywords (e.g. `roofing`, `HVAC`, `janitorial`) and `postedWithinDays: 1`.
- **Small-business set-asides:** only SDVOSB, 8(a), HUBZone, WOSB or small-business notices with `setAsides`.
- **Local work:** notices whose place of performance (or contracting office) is in your states.
- **Market research and competitor tracking:** award notices with the winning company and the award amount (`noticeTypes: ["award"]`, `minAwardAmount`).
- **Full text for AI and search:** the whole notice description (up to 32,000 characters), not a search snippet.

### Why this Actor

- **Official source, not scraping.** SAM.gov (GSA) publishes a public extract of all active notices every day for data.gov. This Actor downloads that file. The SAM.gov terms of use forbid scraping the website; this Actor never touches the website.
- **No API key, no daily quota.** The SAM.gov API needs your own key, and a non-federal personal key without a SAM.gov role is limited to 10 requests a day (GSA API documentation). The extract has no such limit.
- **Every active notice in one pass** (about 74,000 on 20/11/2026), filtered in seconds. The run takes about a minute whatever the filters.

### Sample output

Real notices from the 20/11/2026 extract (contact fields omitted here):

```json
[
  {
    "noticeId": "cef486a6606a4c76aba633bbad73e07d",
    "title": "Cap Screws",
    "solicitationNumber": "SPMYM327Q7006",
    "noticeType": "Combined Synopsis/Solicitation",
    "postedDate": "2026-11-19T13:47:12",
    "responseDeadline": "2026-12-01T13:00:00-05:00",
    "department": "DEPT OF DEFENSE",
    "subTier": "DEFENSE LOGISTICS AGENCY",
    "office": "DLA MARITIME - PORTSMOUTH",
    "naicsCode": "332722",
    "pscCode": "5305",
    "setAsideCode": "SBA",
    "setAside": "Small Business Set Aside - Total",
    "popCity": "Kittery",
    "popState": "ME",
    "link": "https://sam.gov/opp/cef486a6606a4c76aba633bbad73e07d/view",
    "description": "This is a COMBINED SYNOPSIS/SOLICITATION for commercial items prepared in accordance with the information in FAR part 12…"
  },
  {
    "noticeId": "e099e9d1b63b446fab1b4f2deec7a9f9",
    "title": "Trade and Cargo Academy",
    "solicitationNumber": "W912HP27RA002",
    "noticeType": "Award Notice",
    "postedDate": "2026-11-19T17:23:13",
    "department": "DEPT OF DEFENSE",
    "subTier": "DEPT OF THE ARMY",
    "office": "W074 ENDIST CHARLESTON",
    "naicsCode": "236220",
    "pscCode": "Y1JZ",
    "awardNumber": "W912HP27CA001",
    "awardDate": "2026-11-19",
    "awardAmount": 33426472.0,
    "awardee": "COOPER GENERAL CONTRACTING COMPANY 333 FAYETTEVILLE ST STE 1490 Raleigh NC 27601 USA",
    "link": "https://sam.gov/opp/e099e9d1b63b446fab1b4f2deec7a9f9/view"
  }
]
```

All fields: `noticeId`, `title`, `solicitationNumber`, `noticeType`, `baseType`, `postedDate`, `responseDeadline`, `archiveDate`, `department`, `subTier`, `office`, `officeCity`, `officeState`, `officeZip`, `naicsCode`, `pscCode`, `setAsideCode`, `setAside`, `popStreet`, `popCity`, `popState`, `popZip`, `popCountry`, `awardNumber`, `awardDate`, `awardAmount`, `awardee`, `contactName`, `contactTitle`, `contactPhone`, `secondaryContactName`, `secondaryContactPhone`, `link`, `additionalInfoLink`, `description`.

### How to use

1. Enter **keywords** and/or **NAICS codes** (a short code such as `2382` matches every code that starts with it).
2. Optionally pick **notice types**, **set-asides**, **agencies** or **states**, and the **posted** date range (default: last 7 days).
3. Click **Start**, then download results as CSV, JSON or Excel from the **Storage** tab.

Input examples:

```json
{ "naicsCodes": ["238160", "238220"], "setAsides": ["SBA", "SDVOSBC"], "postedWithinDays": 1, "maxResults": 0 }
```

```json
{ "keywords": ["janitorial", "custodial"], "states": ["TX", "OK"], "noticeTypes": ["solicitation", "combined"] }
```

```json
{ "noticeTypes": ["award"], "agencies": ["Corps of Engineers"], "minAwardAmount": 1000000, "postedWithinDays": 30, "openOnly": false }
```

### Pricing

**$2 per 1,000 notices**, pay only for notices delivered.
Example: a daily run that finds 40 new notices for your NAICS codes costs about $0.08.

### Fair billing

- You are charged only for **unique, valid results delivered** to your dataset. Duplicates and records that fail validation are never charged.
- Results are delivered and charged in small batches while the run progresses. If a run stops early (an error, an abort, or your maximum cost per run), you keep, and pay only for, the results already delivered.
- If the Actor detects that the data source has changed (more than 5% of records fail validation), it stops **before** delivering more and the run fails, so you are not charged for broken data.
- If Apify restarts or you resurrect a run, results already delivered in that run are not charged again.
- Your **maximum cost per run** setting is always respected.
- If you think you were charged incorrectly, open an issue in the **Issues** tab with the run ID. We confirm within 48 hours, state the cause and list the affected runs, so you can use it as evidence when asking Apify support for compensation.

### Use with AI agents (MCP)

This Actor works as a tool for AI agents (Claude, Cursor, Copilot…) through the Apify MCP server at `https://mcp.apify.com`. Every input field has a description, and the default input returns a small result set so agents can try it quickly and cheaply.

### Data & compliance

- **Source:** the public [SAM.gov Contract Opportunities extract](https://sam.gov/data-services/Contract%20Opportunities/datagov?privacy=Public) published daily by the U.S. General Services Administration (also listed on data.gov). Federal notices are U.S. Government works and not subject to copyright (17 U.S.C. § 105). Data: SAM.gov, GSA.
- The Actor collects **publicly available data only**. It never logs in, never creates accounts, never bypasses paywalls and never scrapes the SAM.gov website.
- It does **not** collect e-mail addresses: the contact e-mail columns are not read, and e-mail addresses written inside notice texts are replaced with `[e-mail removed: see the notice on SAM.gov]`. Open the notice `link` to reach the contracting officer by e-mail.
- Contact names and phone numbers are those of the government contracting staff named on each notice.
- **You are responsible** for using the data in line with the SAM.gov terms of use and applicable law. Do not use contact details for unsolicited marketing (spam).
- Removal requests: open an issue or contact us via the developer profile. We respond within 24 hours.

### FAQ & limitations

- **Which notices are included?** Every notice that is active on SAM.gov today, as published in the daily extract (refreshed early each morning, US time). Archived and cancelled notices are not in the extract.
- **Are attachments included?** No. Attachments (solicitation documents, drawings) stay on SAM.gov: use the notice `link`.
- **Why do many notices have no place of performance?** About three quarters of notices leave it empty. The `states` filter then uses the contracting office's state, which is not always where the work is.
- **What does `openOnly` do?** It leaves out notices whose response deadline has passed. Notices without a deadline (awards, many special notices) are kept.
- **How are keywords matched?** At the start of a word, case-insensitive, in the title, solicitation number and description: `roof` finds *roof*, *roofs* and *roofing*, not *waterproof*.
- **Is the awardee split into name and address?** No, SAM.gov publishes it as one text (name, street, city, state, ZIP, country).

### Changelog

See [CHANGELOG.md](CHANGELOG.md).

# Changelog

This Actor's version history is a separate document: https://apify.com/neobuster/sam-gov-contract-opportunities/changelog.md

# Actor input Schema

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

Words or phrases to find in the title, solicitation number or description (any of them, not case-sensitive). Leave empty for all.

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

Notices posted in the last N days (1-365). Ignored when 'Posted on or after' is set.

## `postedAfter` (type: `string`):

Optional exact start date (YYYY-MM-DD).

## `postedBefore` (type: `string`):

Optional end date (YYYY-MM-DD).

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

Leave empty for all. Amendments count as the type of the notice they amend.

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

2 to 6 digits. A shorter code matches every code that starts with it (e.g. 2382 = building equipment contractors).

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

1 to 4 characters; a shorter code matches every code that starts with it (e.g. Z2 = repair or alteration of real property).

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

Small-business set-aside types. Leave empty for all.

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

Text to find in the department, sub-tier or office name (e.g. Army, Veterans Affairs, Corps of Engineers).

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

2-letter state codes. Matched on the place of performance, or on the contracting office's state when the notice gives no place of performance.

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

Leave out notices whose response deadline has passed. Notices without a deadline (awards, special notices) are kept.

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

Keep only award notices with at least this amount.

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

The full notice text (up to 32,000 characters). Turn off for smaller datasets.

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

Stop after this many notices (newest first). 0 = no limit.

## Actor input object example

```json
{
  "keywords": [
    "roofing"
  ],
  "postedWithinDays": 7,
  "openOnly": true,
  "includeDescription": true,
  "maxResults": 20
}
```

# Actor output Schema

## `opportunities` (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 = {
    "keywords": [
        "roofing"
    ],
    "postedWithinDays": 7,
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("neobuster/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": ["roofing"],
    "postedWithinDays": 7,
    "maxResults": 20,
}

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

```

## MCP server setup

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