# SAM.gov Contract Opportunities — Federal RFPs, Bids & Awards (`il-open-data/sam-gov-opportunities`) Actor

Find US federal contract opportunities from SAM.gov's official daily data: RFPs, solicitations, sources sought and awards. Filter by keyword, NAICS, PSC, small-business set-aside, agency, state and deadline. Clean JSON with contacts and full text. Monitor mode. No login, no API key.

- **URL**: https://apify.com/il-open-data/sam-gov-opportunities.md
- **Developed by:** [IL Open Data](https://apify.com/il-open-data) (community)
- **Categories:** Business, Lead generation, 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 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

## SAM.gov Contract Opportunities — Federal RFPs, Bids & Awards

Find US federal government contract opportunities — RFPs, solicitations, combined synopses, sources sought, presolicitations and award notices — from **SAM.gov's official public daily data extract**. Filter by keyword, NAICS, PSC, small-business set-aside, agency, state and response deadline, and get clean JSON with the contracting officer's contact, the full notice text and a direct SAM.gov link.

**Step-by-step guide with a real run and copy-paste inputs:** https://agent.zbang.net/guides/find-federal-contracts-small-business/

**$2 per 1,000 results.** No login, no API key, no SAM.gov account.

### Why this actor

| | This actor | Typical SAM.gov scraper |
|---|---|---|
| Data source | GSA's official public bulk extract (SAM.gov Data Services) | Scrapes sam.gov pages or its internal search API |
| Breaks when sam.gov changes its website | No — the extract is a published, stable file | Often (one popular scraper fails ~12% of runs) |
| Amendments | Merged: one row per solicitation, latest version, with a version count | Each amendment is a separate row |
| Price per 1,000 results | **$2** | $3 and up |
| Monitor mode (only new notices) | Yes | Some |
| Typical run | 5–30 seconds | Minutes |

### What you can do with it

- **Small business bid pipeline** — every open notice in your NAICS codes that is set aside for small business, SDVOSB, WOSB, HUBZone or 8(a).
- **Daily new-bid alerts** — turn on *Only new since last run*, schedule it daily, and connect it to email, Slack or a Google Sheet.
- **Capture and market research** — Sources Sought and Presolicitation notices show what agencies plan to buy before the RFP.
- **Competitive intelligence** — Award Notices with the dollar amount and the winning company.
- **AI / LLM pipelines** — whitespace-cleaned full descriptions, ISO dates, consistent field names. Works with Apify's MCP server, so an AI agent can call it as a tool.

### Quick start

Click **Start** with the default input: it returns the 25 newest open notices from the last 14 days that mention software, cloud, cybersecurity or IT support.

#### Example 1 — small-business IT bids in Virginia, Maryland and DC

```json
{
  "naicsCodes": ["5415"],
  "setAside": ["ANY_SMALL_BUSINESS"],
  "states": ["VA", "MD", "DC"],
  "noticeTypes": ["Solicitation", "Combined Synopsis/Solicitation"],
  "postedWithinDays": 30,
  "minDaysLeft": 7
}
```

#### Example 2 — daily alert for construction set aside for veteran-owned firms

```json
{
  "naicsCodes": ["236", "237", "238"],
  "setAside": ["SDVOSBC", "VSA"],
  "postedWithinDays": 3,
  "onlyNewSinceLastRun": true,
  "maxResults": 500
}
```

#### Example 3 — who won big contracts this week

```json
{
  "noticeTypes": ["Award Notice"],
  "minAwardAmount": 1000000,
  "postedWithinDays": 7
}
```

#### Example 4 — early signals for a product (Sources Sought / RFI)

```json
{
  "keywords": ["drone", "unmanned aircraft", "UAS"],
  "noticeTypes": ["Sources Sought", "Presolicitation", "Special Notice"],
  "postedWithinDays": 60
}
```

### Input

| Field | What it does |
|---|---|
| `keywords` | Any of these words/phrases in the title, solicitation number or description (whole words, case-insensitive) |
| `excludeKeywords` | Drop notices containing these words |
| `naicsCodes` | NAICS prefixes — `5415` matches 541511, 541512, 541519… |
| `pscCodes` | Product Service Code prefixes — `D3`, `R4`, `Y1`… |
| `noticeTypes` | Solicitation, Combined Synopsis/Solicitation, Presolicitation, Sources Sought, Special Notice, Award Notice, Justification… |
| `setAside` | Set-aside codes, or *Any small-business set-aside* |
| `agencies` | Part of the department / sub-agency / office name (`VETERANS AFFAIRS`, `NAVY`) |
| `states` | Two-letter state codes for the place of performance |
| `postedWithinDays` | How far back to look (1–365, default 7) |
| `onlyOpen` | Only notices whose deadline is still in the future (default on) |
| `minDaysLeft` | Skip notices closing sooner than N days |
| `minAwardAmount` | For award notices: minimum dollar amount |
| `includeDescription`, `descriptionMaxChars` | Full notice text and its maximum length |
| `includeContacts` | Contracting officer name, email and phone as published on the notice |
| `onlyNewSinceLastRun` | Monitor mode: skip notices this filter set already returned |
| `mergeAmendments` | One row per solicitation, latest version (default on) |
| `maxResults` | Stop after N results (newest first) |

### Output

One item per opportunity:

```json
{
  "notice_id": "92c1221a05ca49eb87cd904fc87d7d7b",
  "title": "Post Quantum Cryptography (PQC) Readiness and Validation Status",
  "solicitation_number": "1106202612072026",
  "notice_type": "Sources Sought",
  "agency": "GENERAL SERVICES ADMINISTRATION",
  "sub_agency": "FEDERAL ACQUISITION SERVICE",
  "office": "FC ACQUISITION SOLUTIONS DEV/IDV ACQ MANAGEMENT",
  "posted_date": "2026-11-20T08:08:04.000Z",
  "response_deadline": "2026-12-07T22:00:00.000Z",
  "days_left": 16,
  "naics_code": "541519",
  "psc_code": null,
  "set_aside_code": null,
  "set_aside": null,
  "small_business_set_aside": false,
  "place_of_performance": { "city": "Washington", "state": "DC", "zip": "20405", "country": "USA", "address": null },
  "award": null,
  "url": "https://sam.gov/opp/92c1221a05ca49eb87cd904fc87d7d7b/view",
  "description": "Federal agencies are preparing for the transition from cryptographic algorithms…",
  "primary_contact": { "name": "…", "title": "…", "email": "…@gsa.gov", "phone": "…" },
  "versions_in_window": 1,
  "source": "SAM.gov Contract Opportunities — official public data extract (GSA)",
  "source_data_as_of": "Nov 20,2026"
}
```

Award notices add `award: { number, date, amount_usd, awardee }`. A run summary (notices scanned, matched, amendments merged, data date) is saved as `SUMMARY` in the key-value store.

Download as JSON, CSV, Excel or HTML, or read it through the Apify API.

### FAQ

**Where does the data come from?**
From the *Contract Opportunities* public extract that GSA publishes on SAM.gov Data Services (`datagov/ContractOpportunitiesFullCSV.csv`, privacy level *Public*). It is the bulk channel the government provides for exactly this kind of reuse. The actor does not scrape sam.gov search pages and does not log in.

**How fresh is it?**
GSA regenerates the extract once a day (early morning US Eastern), so results cover notices up to the previous day. Each item carries `source_data_as_of`. If you need notices within minutes of posting, use SAM.gov's own saved-search alerts.

**Why are some notices missing a place of performance or NAICS code?**
The agency left those fields empty on SAM.gov. The state filter falls back to the contracting office's state when the place of performance is blank.

**What does "Merge amendments" do?**
SAM.gov posts each amendment or repost as a new notice with its own ID. With merging on, you get the latest version once per solicitation and `versions_in_window` tells you how many versions were posted in your date range. Turn it off to see every version.

**Why is an awardee sometimes `null`?**
Some contracts go to sole proprietors, and the awardee field then contains a private person's name and address. The actor only passes through awardees that look like organisations; the rest show `awardee_withheld` and you can read the notice on SAM.gov. The amount and award number are always kept.

**Are the contacts personal data?**
They are the official work contacts that agencies publish on each notice so vendors can ask questions. Turn off `includeContacts` if you don't need them.

**How much does a run cost?**
$0.002 per result returned, plus Apify's standard tiny start fee. 25 results ≈ $0.05. The actor never returns more results than your *Max cost per run* allows.

**Can I use it from an AI agent?**
Yes — through Apify's MCP server or the API. The output is flat, consistent JSON with cleaned text, which keeps prompts short.

### Attribution and disclaimer

Data: SAM.gov Contract Opportunities, U.S. General Services Administration — public data extract. This actor is not affiliated with or endorsed by GSA or SAM.gov. Always confirm deadlines and requirements on the official notice before bidding.

### Related tools

- [UK & EU Public Tenders Finder: Find a Tender + TED in one search](https://apify.com/il-open-data/uk-eu-tenders-finder)
- [Israel Contractors Registry: check if a contractor is registered, branch and class](https://apify.com/il-open-data/il-contractors-registry)
- [Website Contact & Tech Enricher: emails, phones and socials from company sites](https://apify.com/il-open-data/website-contact-enricher)

All tools by this publisher: https://apify.com/il-open-data

Built and maintained by an autonomous AI agent operated by Ofir Baranes ([il-open-data](https://apify.com/il-open-data)). Issues are answered within one day.

# Actor input Schema

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

Match ANY of these words or phrases in the title, solicitation number or full description (case-insensitive, whole words: 'cloud' matches 'cloud-based' but not 'cloudy'). Leave empty to get everything that passes the other filters.

## `excludeKeywords` (type: `array`):

Drop notices that contain any of these words (e.g. 'brand name', 'sole source').

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

Industry codes. A prefix matches all codes under it: 5415 = computer systems design, 541511 = custom programming, 236 = building construction, 5616 = security services, 4234 = medical equipment wholesale.

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

Product Service Codes, e.g. D3 or DA = IT services, R4 = professional support, S2 = housekeeping, Y1 = construction of structures, 65 = medical equipment.

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

Leave empty for all types. 'Solicitation' and 'Combined Synopsis/Solicitation' are the ones you can bid on now; 'Sources Sought' and 'Presolicitation' are early signals; 'Award Notice' shows who won and for how much.

## `setAside` (type: `array`):

Only notices reserved for these business types. Pick 'Any small-business set-aside' to see everything a small business can compete for.

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

Match any part of the department, sub-agency or office name, e.g. 'VETERANS AFFAIRS', 'NAVY', 'NASA', 'HOMELAND SECURITY'.

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

Two-letter state codes, e.g. VA, MD, DC, TX, CA. Matches the place of performance (or the contracting office's state when the notice has none).

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

Look at notices posted in the last N days. SAM.gov publishes ~1,300 notices per day; 7–30 days is typical. Larger values read more of the file and take longer.

## `onlyOpen` (type: `boolean`):

Keep only notices whose response deadline hasn't passed. Automatically ignored when you select only Award / Justification notice types (they have no deadline).

## `minDaysLeft` (type: `integer`):

Skip notices that close sooner than this, so you only see ones you have time to bid on (e.g. 7).

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

For Award Notices: only awards at or above this dollar amount. 0 = no filter.

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

The full notice text, whitespace-cleaned — ready for search, alerts or an LLM.

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

Truncate long descriptions. 0 = no limit.

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

The government point of contact published on the notice (official work name, email, phone).

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

Remember which notices this exact filter set already returned and skip them next time. Schedule the actor daily and get only fresh opportunities.

## `mergeAmendments` (type: `boolean`):

SAM.gov posts every amendment as a separate notice. With this on you get one row per solicitation — the latest version — with a count in versions_in_window.

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

Stop after this many matching notices (newest first). You pay per result, and the actor never returns more than your 'max cost per run' allows.

## Actor input object example

```json
{
  "keywords": [
    "software",
    "cloud",
    "cybersecurity",
    "IT support"
  ],
  "postedWithinDays": 14,
  "onlyOpen": true,
  "minDaysLeft": 0,
  "minAwardAmount": 0,
  "includeDescription": true,
  "descriptionMaxChars": 4000,
  "includeContacts": true,
  "onlyNewSinceLastRun": false,
  "mergeAmendments": true,
  "maxResults": 25
}
```

# Actor output Schema

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

Matching federal opportunities as a table (also JSON, CSV, Excel).

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

How many notices were scanned and matched, and the SAM.gov data date.

# 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",
        "cloud",
        "cybersecurity",
        "IT support"
    ],
    "postedWithinDays": 14,
    "maxResults": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("il-open-data/sam-gov-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",
        "cloud",
        "cybersecurity",
        "IT support",
    ],
    "postedWithinDays": 14,
    "maxResults": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("il-open-data/sam-gov-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",
    "cloud",
    "cybersecurity",
    "IT support"
  ],
  "postedWithinDays": 14,
  "maxResults": 25
}' |
apify call il-open-data/sam-gov-opportunities --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,il-open-data/sam-gov-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/vfod8SqTGgQrubKmE/builds/qlCZJoXK9j0yuu4P4/openapi.json
