# SAM.gov Scraper – Federal Contract Opportunities (No API Key) (`integriapps/sam-gov-opportunities`) Actor

Scrape US federal contract opportunities (RFPs, RFQs, sources sought, awards) from SAM.gov's official public daily extract. No API key, no quota, no start fee. Filter by NAICS, PSC, set-aside, agency, state and deadline; only-new bid alerts. USD 2 per 1,000. By IntegriApps.

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

## Pricing

$2.00 / 1,000 opportunity returneds

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 Scraper – Federal Contract Opportunities (No API Key)

Get **US federal contract opportunities from SAM.gov** — solicitations, RFPs, RFQs, combined synopses, presolicitations, **sources sought**, special notices and **award notices** — as clean JSON, **without a SAM.gov account or API key**. The Actor reads the **official public daily data extract** published by the US General Services Administration (GSA) and lets you filter by **NAICS code, PSC code, small-business set-aside (8(a), HUBZone, SDVOSB, WOSB...), agency, state, keywords and response deadline**. Turn on **only-new mode** and schedule it daily to get a **government bid alert** with just the notices you have not seen yet.

Part of [IntegriApps MicroApps](https://integriapps.com/microapps/). Support Sunday to Friday.

### Why use this SAM.gov scraper

- **No SAM.gov API key and no daily request quota:** it reads GSA's official public data extract instead of the rate-limited API.
- **No start fee and no monthly fee:** you pay only **USD 0.002 per opportunity returned** (USD 2 per 1,000).
- **Only the rows you want are charged:** NAICS, PSC, set-aside, agency, state, keyword and deadline filters are applied before anything is saved or charged.
- **Built for daily bid alerts:** only-new mode returns, and charges, only notices you have not received before.
- **Fast and light:** a 7-day search finishes in seconds in 256 MB.

### How to use it

1. Click **Try for free** (or **Start**) and set your filters: NAICS codes (e.g. `5415`), set-aside (e.g. `SBA`, `8A`, `SDVOSBC`), notice types, posting window and `maxResults`.
2. Run it and download the opportunities as **JSON, CSV, Excel or HTML**, or read them through the API.
3. For a daily **government bid alert**, save the input as a Task, turn on `onlyNew`, add a **Schedule** and send new notices to email, Slack, Google Sheets or your CRM (Zapier, Make, n8n or webhooks).

### What it does

- **Official source, no key:** streams SAM.gov's *Contract Opportunities* public CSV extract ([SAM.gov Data Services](https://sam.gov/data-services)), the same data behind the SAM.gov search. No login, no API key, no daily request quota, no browser, no scraping of the SAM.gov website.
- **Fast and cheap:** the extract is sorted newest first, so the Actor reads only the days you ask for and stops (a 7-day search reads ~30 MB and finishes in seconds). Runs in 256 MB.
- **Filters:** keywords (any/all, with exclusions; title, solicitation number and description), **NAICS** and **PSC** codes or prefixes, notice type, **set-aside** codes (or `NONE`), agency/office text, place-of-performance state, posting date window, **only open for response** and **deadline within N days**.
- **Clean, stable JSON per notice:** notice ID, title, solicitation number, type and base type, posted date, response deadline and days left, department / sub-tier / office with codes (CGAC, FPDS, AAC), NAICS, PSC, set-aside, place of performance, office address, **award details** (number, date, amount as a number, awardee), points of contact, description and a direct `samUrl` link.
- **Only-new mode for alerts:** remembers notice IDs per filter set in a **named key-value store in your own Apify account**, so scheduled runs return — and charge — only new notices.
- **Clean stop:** respects your max results and your run's maximum cost; filtered-out rows are never charged.

### What it does NOT do

- It does **not** download notice **attachments** (the extract has none) and does not log in to SAM.gov. Always open the notice on SAM.gov and read the attachments and amendments before you bid.
- The extract is **refreshed once a day** (usually overnight, US time): a notice posted today normally appears tomorrow. `dataFileLastModified` in every record tells you which day's file you got.
- Descriptions are **plain text** as published in the extract (formatting such as headings and tables is flattened by SAM.gov).
- It covers **contract opportunities** only (not entity registrations, exclusions, grants or FPDS contract history). Archived notices are included only while they remain in the daily extract.

### Use cases

- **Daily bid alerts** for your NAICS codes or set-aside status, sent to email, Slack or a CRM via Zapier, Make or n8n.
- **Capture and BD pipelines:** pull solicitations and sources-sought notices into Google Sheets, Airtable, HubSpot or your database.
- **Market research:** see which agencies buy what, and who won recent **award notices** and for how much.
- **AI agents (MCP):** give an agent a tool that answers "what new cybersecurity RFPs for small businesses were posted this week?".

### Input

| Field | Description | Default |
|---|---|---|
| `keywords` / `keywordMode` / `excludeKeywords` | Words or phrases, matched at the start of a word, case-insensitive | — / any / — |
| `searchInDescription` | Also search the description (off = title and solicitation number only) | true |
| `naicsCodes` | NAICS codes or prefixes (`541512`, `5415`) | — |
| `pscCodes` | PSC / classification codes or prefixes (`DA01`, `R4`) | — |
| `noticeTypes` | Solicitation, Combined Synopsis/Solicitation, Presolicitation, Sources Sought, Special Notice, Award Notice, Justification, Sale of Surplus Property, Consolidate/(Substantially) Bundle | all |
| `setAsideCodes` | SBA, SBP, 8A, 8AN, HZC, HZS, SDVOSBC, SDVOSBS, WOSB, WOSBSS, EDWOSB, EDWOSBSS, LAS, IEE, ISBEE, BICiv, VSA, VSS, NONE | all |
| `agencies` | Text matched against department, agency and office names | — |
| `states` | Place-of-performance state codes (`TX`, `VA`) | — |
| `postedWithinDays` or `postedFrom` / `postedTo` | Posting date window (YYYY-MM-DD) | last 7 days |
| `activeOnly` | Only notices marked active | true |
| `openForResponseOnly` / `deadlineWithinDays` | Deadline filters | false / — |
| `maxResults` | Max notices returned and charged | 100 |
| `includeDescription` / `maxDescriptionChars` | Description text and its length (0 = no limit) | true / 5,000 |
| `includeContacts` | Government points of contact published on the notice | true |
| `onlyNew` / `stateStoreName` | Return only notices not returned before | false / `sam-gov-opportunities-state` |

An empty input returns the latest 100 active notices of any type from the last 7 days (USD 0.20). Set `maxResults` to try it with fewer.

Example — small-business IT solicitations still open, posted in the last 3 days:

```json
{
  "naicsCodes": ["5415"],
  "noticeTypes": ["Solicitation", "Combined Synopsis/Solicitation", "Sources Sought"],
  "setAsideCodes": ["SBA", "8A", "SDVOSBC", "WOSB", "HZC"],
  "openForResponseOnly": true,
  "postedWithinDays": 3,
  "maxResults": 200
}
```

Example — daily alert for cybersecurity bids (schedule it once a day):

```json
{ "keywords": ["cybersecurity", "zero trust"], "postedWithinDays": 3, "onlyNew": true, "stateStoreName": "cyber-bids-alert" }
```

### Output

One record per notice (real example from the extract, description shortened):

```json
{
  "noticeId": "3ca3fef9b8a34cc4801782f97aeb4bff",
  "title": "Area of Interest (AOI) for Next Generation Enterprise Identity, Credential, and Access Management (E-ICAM) Prototype Other Transaction (OT)",
  "solicitationNumber": "DISA-OTA-27-R-ICAM",
  "type": "Solicitation",
  "baseType": "Special Notice",
  "active": true,
  "postedDate": "2026-11-06T19:02:18",
  "responseDeadline": "2026-11-30T17:00:00-06:00",
  "daysUntilDeadline": 21,
  "department": "DEPT OF DEFENSE",
  "subTier": "DEFENSE INFORMATION SYSTEMS AGENCY (DISA)",
  "office": "IT CONTRACTING DIVISION - PL84",
  "naicsCode": "541519",
  "pscCode": "DA01",
  "setAsideCode": null,
  "placeOfPerformance": { "city": "Fort George G Meade", "state": "MD", "country": "USA" },
  "award": null,
  "samUrl": "https://sam.gov/opp/3ca3fef9b8a34cc4801782f97aeb4bff/view",
  "description": "The Defense Information Systems Agency (DISA) seeks solutions to prototype a Next Generation Enterprise Identity, Credential, and Access Management (E-ICAM) capability...",
  "descriptionTruncated": false,
  "primaryContact": { "fullName": "DITCO OTA Mailbox", "email": "disa.scott.ditco.mbx.ps84-other-transaction-authority@mail.mil" },
  "dataFileLastModified": "Mon, 09 Nov 2026 04:30:19 GMT"
}
```

Other fields: `archiveType`, `archiveDate`, `cgac`, `fpdsCode`, `aacCode`, `setAside` (description), `officeAddress`, `organizationType`, `additionalInfoLink`, `secondaryContact`, `scrapedAt`. Award notices include `award.number`, `award.date`, `award.amount` (number, USD) and `award.awardee`. A run summary (rows scanned, matches, rows excluded by each filter, charges) is saved as `RUN_SUMMARY` in the key-value store. Dates are passed through as published in the extract.

### How much does it cost?

**Pay per event: USD 0.002 per opportunity returned** (USD 2 per 1,000). **No start fee, no monthly rental.** Rows removed by your filters and notices skipped by only-new mode are **not charged**. Set a maximum cost per run in Apify and the Actor stops cleanly when it is reached.

| Example | Opportunities | Cost |
|---|---|---|
| Try it: open IT services notices (NAICS 5415) of the last 3 days | ~50 | ~USD 0.10 |
| Empty input (latest 100 notices) | 100 | USD 0.20 |
| Daily only-new alert with ~30 new notices a day | ~900 / month | ~USD 1.80 / month |
| Bulk pull for market research | 5,000 | USD 10 |

Apify's free plan includes a monthly usage credit that you can spend on this Actor to test it.

### Integrate it

```bash
curl -X POST "https://api.apify.com/v2/acts/integriapps~sam-gov-opportunities/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"naicsCodes":["5415"],"openForResponseOnly":true,"postedWithinDays":3,"maxResults":50}'
```

- **JavaScript / Python:** official `apify-client` (`client.actor("integriapps/sam-gov-opportunities").call(input)`).
- **No-code:** Apify integrations for Zapier, Make, n8n, Google Sheets, Slack and webhooks; use **Schedules** + `onlyNew` for daily alerts.
- **AI agents (MCP):** add `integriapps/sam-gov-opportunities` as a tool in the [Apify MCP server](https://mcp.apify.com/).

### FAQ

**Do I need a SAM.gov account or API key?** No. The Actor uses the public data extract that SAM.gov publishes for download.

**Is this legal to use?** The data is published by the US government for public download. Works of the US federal government are generally in the public domain in the US (17 U.S.C. § 105). This Actor is not affiliated with or endorsed by GSA or SAM.gov.

**Why don't I see a notice posted an hour ago?** The extract is regenerated once a day. Check `dataFileLastModified`; for same-day changes, look on SAM.gov directly.

**How far back can I search?** Up to 400 days by posting date, limited to what the current extract contains.

**Does it include contact emails?** Yes, the government points of contact published on each notice (contracting officers and mailboxes). Turn off `includeContacts` if you do not need them. Use them only for the procurement — no spam.

**The run returned nothing.** Your filters may be too narrow for the date window; `RUN_SUMMARY.excludedBy` shows how many rows each filter removed.

**Support:** open an issue on the Actor's Issues tab. Support Sunday to Friday.

***

Part of [IntegriApps MicroApps](https://integriapps.com/microapps/) — small tools by IntegriApps, a SaaS for SMBs. Data: SAM.gov Contract Opportunities public extract (GSA).

# Changelog

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

# Actor input Schema

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

Words or phrases to look for in the title, solicitation number and description (matched at the start of a word, case-insensitive: 'cyber' finds 'cybersecurity'). Leave empty for all.

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

Whether a notice must contain any or all of the keywords.

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

Skip notices that contain any of these words or phrases.

## `searchInDescription` (type: `boolean`):

Off = keywords are matched only in the title and solicitation number.

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

NAICS codes or prefixes (e.g. 541512, or 5415 for all computer systems design). Leave empty for all.

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

Product Service Codes or prefixes (e.g. DA01, R4, Z2).

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

Leave empty for all types.

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

Small-business set-aside codes. NONE = notices without a set-aside. Leave empty for all.

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

Text matched against department, sub-tier agency and office names (e.g. 'army', 'veterans affairs', 'NASA').

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

Two-letter US state codes for the place of performance (e.g. TX, VA). Notices without a place of performance are excluded when this is set.

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

Window by posting date. The public extract is refreshed once a day, so notices posted today usually appear tomorrow.

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

Overrides 'last N days' when set.

## `postedTo` (type: `string`):

Optional end date (inclusive).

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

Off = also include notices marked inactive in the extract.

## `openForResponseOnly` (type: `boolean`):

Only notices whose response deadline has not passed (notices without a deadline are excluded).

## `deadlineWithinDays` (type: `integer`):

Only notices whose response deadline is between now and N days from now.

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

Maximum notices returned (and charged) in this run.

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

Include the plain-text description published in the extract.

## `maxDescriptionChars` (type: `integer`):

Longer descriptions are cut and flagged with descriptionTruncated. 0 = no limit.

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

Primary and secondary government points of contact as published on the notice.

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

Remember the notices already returned for the same filters and skip them on the next runs. Uses a named key-value store in your account.

## `stateStoreName` (type: `string`):

Named key-value store used by only-new mode. Use a different name per schedule if you want separate memories.

## Actor input object example

```json
{
  "keywords": [
    "software"
  ],
  "keywordMode": "any",
  "searchInDescription": true,
  "naicsCodes": [
    "5415"
  ],
  "noticeTypes": [
    "Solicitation",
    "Combined Synopsis/Solicitation",
    "Sources Sought"
  ],
  "postedWithinDays": 7,
  "activeOnly": true,
  "openForResponseOnly": false,
  "maxResults": 20,
  "includeDescription": true,
  "maxDescriptionChars": 5000,
  "includeContacts": true,
  "onlyNew": false,
  "stateStoreName": "sam-gov-opportunities-state"
}
```

# 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 = {
    "keywords": [
        "software"
    ],
    "naicsCodes": [
        "5415"
    ],
    "noticeTypes": [
        "Solicitation",
        "Combined Synopsis/Solicitation",
        "Sources Sought"
    ],
    "postedWithinDays": 7,
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("integriapps/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"],
    "naicsCodes": ["5415"],
    "noticeTypes": [
        "Solicitation",
        "Combined Synopsis/Solicitation",
        "Sources Sought",
    ],
    "postedWithinDays": 7,
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("integriapps/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"
  ],
  "naicsCodes": [
    "5415"
  ],
  "noticeTypes": [
    "Solicitation",
    "Combined Synopsis/Solicitation",
    "Sources Sought"
  ],
  "postedWithinDays": 7,
  "maxResults": 20
}' |
apify call integriapps/sam-gov-opportunities --silent --output-dataset

```

## MCP server setup

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