# SAM.gov Scraper — Federal Contract Opportunities & RFPs (`hipersoft/samgov-opportunities-scraper`) Actor

Scrape US federal contract opportunities from SAM.gov: solicitations, RFPs, sources sought, awards. Agency, office, NAICS, PSC, set-aside, deadlines, place of performance, contracting contacts and full description. Filter by keyword, NAICS, set-aside, state.

- **URL**: https://apify.com/hipersoft/samgov-opportunities-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0015 / opportunity

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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, RFPs & Awards

**SAM.gov Scraper** extracts **US federal contract opportunities** from **SAM.gov** (System for Award Management), the official source for **solicitations, RFPs, RFQs, sources sought notices, presolicitations and award notices**. Each opportunity includes the **title, solicitation number, notice type, department, sub-tier agency and contracting office, NAICS codes, product/service (PSC) code, set-aside, posted date, response deadline, place of performance, contracting officer contacts (name, email, phone), award details** and the **full description**. Filter by keyword, NAICS, set-aside, state and date, then export to **CSV, Excel or JSON**.

### What does SAM.gov Scraper do?

- 🇺🇸 **Every federal agency**: DoD, VA, HHS, DHS, GSA, NASA, State and hundreds more.
- 🔎 **Keyword search** across titles and descriptions.
- 🏷️ **NAICS and set-aside filters**: small business, 8(a), HUBZone, SDVOSB, WOSB, EDWOSB, VOSB…
- 📍 **Place-of-performance state filter**.
- 📅 **Recency filter**: only notices posted or updated in the last N days.
- 👤 **Contracting contacts**: primary and secondary points of contact with email and phone.
- 🏆 **Awards**: awardee name, UEI, amount and date for award notices.

### What data can you scrape from SAM.gov?

| Field | Description |
|---|---|
| `title`, `solicitationNumber`, `noticeType` | Opportunity identification |
| `department`, `subTier`, `office`, `officeAddress` | Contracting organization |
| `postedDate`, `responseDeadline`, `responseTimeZone`, `modifiedDate`, `archiveDate` | Dates |
| `naicsCodes`, `classificationCode` | NAICS and PSC codes |
| `setAside` | Set-aside type |
| `placeOfPerformance` | Where the work is done |
| `contacts` | Points of contact (name, title, email, phone) |
| `awardee`, `awardeeUei`, `awardAmount`, `awardDate` | Award details |
| `description` | Full notice description (plain text) |
| `url` | SAM.gov opportunity page |

### Use cases

- **Government contractors (GovCon)**: daily feeds of new solicitations in your NAICS codes and set-asides.
- **Bid and proposal teams**: track response deadlines and contracting officers.
- **Business development**: find agencies buying what you sell and the offices that buy it.
- **Competitive intelligence**: monitor award notices to see who wins contracts and for how much.
- **GovCon SaaS and newsletters**: power opportunity alerts and market reports.

### How to scrape SAM.gov opportunities

1. Click **Try for free** to open SAM.gov Scraper in Apify Console.
2. Enter **keywords** and choose **notice types**, **NAICS codes**, **set-aside** and **state**.
3. Optionally set **Updated within (days)** for fresh notices only.
4. Click **Start** and download the opportunities as **CSV, Excel or JSON**.

### Input

#### Example input

```json
{
  "keywords": "software",
  "noticeTypes": ["solicitation", "combined"],
  "naicsCodes": ["541512", "541511"],
  "setAside": "SBA",
  "placeOfPerformanceState": "VA",
  "postedWithinDays": 7,
  "activeOnly": true,
  "includeDetails": true,
  "maxItems": 500
}
```

| Field | Description |
|---|---|
| **Keywords** | Free-text search. |
| **Notice types** | Solicitation, combined synopsis/solicitation, presolicitation, sources sought, special notice, award and more. |
| **NAICS codes** | One or more NAICS codes. |
| **Set-aside** | Small business, 8(a), HUBZone, SDVOSB, WOSB, EDWOSB, VOSB, ISBEE. |
| **Place of performance state** | Two-letter state code. |
| **Updated within (days)** | Only recent notices. |
| **Active opportunities only** | Exclude archived notices. |
| **Include details** | NAICS, PSC, set-aside, place of performance, contacts and full description. |
| **Max opportunities** | Stop after this many (up to 10,000 per search). |

### Output

#### Opportunity example

```json
{
  "noticeId": "5dc0a6234c964ec09542817343ebf71f",
  "url": "https://sam.gov/opp/5dc0a6234c964ec09542817343ebf71f/view",
  "title": "NISC Enterprise Support Tasking (NEST)",
  "solicitationNumber": "693KA9-26-R-00003",
  "noticeType": "Solicitation",
  "department": "TRANSPORTATION, DEPARTMENT OF",
  "subTier": "FEDERAL AVIATION ADMINISTRATION",
  "office": "693KA9 CONTRACTING FOR SERVICES",
  "postedDate": "2026-10-01T18:46:45+00:00",
  "responseDeadline": "2026-10-15T10:00:00-04:00",
  "naicsCodes": ["541511"],
  "classificationCode": "DA01",
  "setAside": "WOSB",
  "placeOfPerformance": "Washington, District of Columbia, 20591, UNITED STATES",
  "contacts": [{ "type": "primary", "name": "FAA AAQ 410 Contracting Office", "email": "9-AWA-AAQ410-Contracting-Team@faa.gov" }],
  "description": "***THIS OPPORTUNITY IS SET-ASIDE FOR WOMEN-OWNED SMALL BUSINESS (WOSB) CONCERNS*** …"
}
```

### How much does it cost?

SAM.gov Scraper uses **pay-per-opportunity** pricing: a small fixed price per opportunity, with automatic discounts on higher Apify plans. See the **Pricing** tab for the exact price.

### More government and company data

- [USAspending Scraper](https://apify.com/hipersoft/usaspending-scraper): federal awards and spending.
- [North Data Scraper](https://apify.com/hipersoft/northdata-scraper): European company register data.

### FAQ

**Do I need a SAM.gov account or key?**
No. Just set your filters and click Start.

**How do I get only new opportunities every day?**
Set **Updated within (days)** to 1 and schedule the scraper daily.

**Can I get award notices?**
Yes. Choose the **Award Notice** type to see awardees, UEIs, amounts and dates.

**How many results can one search return?**
Up to 10,000 opportunities. Use NAICS, set-aside, state or date filters to narrow large searches.

**What formats can I export?**
CSV, Excel, JSON, XML, HTML and RSS, or read the results through the Apify API.

**Can I integrate SAM.gov Scraper with other apps?**
SAM.gov Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JS/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

**Is it legal?**
SAM.gov opportunity data is public US government information.

### Related Actors

- [USAspending Scraper](https://apify.com/hipersoft/usaspending-scraper)

### Notes

Original clean-room implementation. Returns only public data. Not affiliated with SAM.gov or the US General Services Administration.

# Actor input Schema

## `keywords` (type: `string`):

Search words, e.g. software development, cybersecurity, janitorial, construction.

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

Types of notices. Leave empty for all.

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

Only opportunities with these NAICS codes, e.g. 541512 (computer systems design), 541511, 236220.

## `setAside` (type: `string`):

Only opportunities with this set-aside.

## `placeOfPerformanceState` (type: `string`):

Two-letter US state code, e.g. VA, CA, TX.

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

Only opportunities posted or updated in the last N days. 0 means any time.

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

Exclude archived and inactive notices.

## `includeDetails` (type: `boolean`):

Add NAICS, PSC code, set-aside, place of performance, contracting contacts, archive date, award amount and the full description.

## `maxItems` (type: `integer`):

Stop after this many opportunities. 0 means no limit (up to 10,000 per search).

## `proxyConfiguration` (type: `object`):

Not required for normal use.

## Actor input object example

```json
{
  "keywords": "software",
  "noticeTypes": [
    "solicitation",
    "combined"
  ],
  "setAside": "",
  "postedWithinDays": 0,
  "activeOnly": true,
  "includeDetails": true,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

The results as dataset items.

# 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",
    "noticeTypes": [
        "solicitation",
        "combined"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/samgov-opportunities-scraper").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",
    "noticeTypes": [
        "solicitation",
        "combined",
    ],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/samgov-opportunities-scraper").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",
  "noticeTypes": [
    "solicitation",
    "combined"
  ],
  "maxItems": 50
}' |
apify call hipersoft/samgov-opportunities-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hipersoft/samgov-opportunities-scraper"
        }
    }
}
```

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/TQUfzak3HhuI9ZRJO/builds/5oQFnImA8hN7VnQXd/openapi.json
