# SAM.gov Contracts Scraper Pro (`red.cars/sam-gov-contracts-scraper-pro`) Actor

Federal contract opportunities from SAM.gov as clean structured rows: solicitations, presolicitations, sources sought and awards with response deadlines, NAICS and PSC codes, agency chains, place of performance, set-aside types, and contracting officer contacts.

- **URL**: https://apify.com/red.cars/sam-gov-contracts-scraper-pro.md
- **Developed by:** [AutomateLab](https://apify.com/red.cars) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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 Contracts Scraper Pro

Federal contract opportunities from SAM.gov as clean, structured rows: solicitations, presolicitations, combined synopsis/solicitations, sources sought notices, and awards, each with response deadlines, NAICS and PSC codes, the full agency chain, place of performance, set-aside type, and contracting officer contacts when the notice publishes them.

Why this over alternatives: the best-known SAM.gov scrapers (scrapesage/sam-gov-scraper with 27 monthly users, fortuitous_pirate/sam-gov-scraper with 20) carry zero public reviews. This actor ships the full record: agency chain, set-aside codes, PSC codes, contracting officer contacts, cleaned description text, and a direct link to every notice.

### What you get

- One row per opportunity with 25 fields, including a direct SAM.gov notice URL.
- Agency chain (department > agency > office), NAICS codes with descriptions, PSC codes.
- Response deadline (with the notice's own time zone), posted date, archive date.
- Set-aside type (small business, 8(a), SDVOSB, HUBZone, etc.) when published.
- Contracting officer contacts: name, title, email, phone.
- Plain-text description (HTML stripped) up to 8,000 characters.
- Award notices carry the awardee name.

### Pricing

$0.005 per run + $3.00 per 1,000 opportunities. A 10-opportunity default run costs about a cent.

### Input

| Field | Type | Description |
| --- | --- | --- |
| keywords | string | Keyword search over titles and descriptions. Empty returns the newest active opportunities. |
| noticeTypes | stringList | Presolicitation, Solicitation, Combined Synopsis/Solicitation, Sources Sought, Special Notice, Award. Empty = all. |
| naics | stringList | NAICS industry codes, e.g. 541512 (computer systems design), 336413 (aircraft parts). Multiple codes supported. |
| postedFrom | string | Only opportunities posted on or after this date (YYYY-MM-DD). |
| postedTo | string | Only opportunities posted on or before this date (YYYY-MM-DD). |
| activeOnly | boolean | Only currently active opportunities (default true). Turn off to include archived records. |
| includeDescription | boolean | Include plain-text description (default true). |
| includeContacts | boolean | Include contracting officer contacts (default true). |
| limit | integer | Max opportunities to return, 1-5000 (default 10). |

### Output

Each row in the default dataset:

| Field | Example |
| --- | --- |
| noticeId | 7165751050ee4a9c990cf23ec937b99a |
| url | https://sam.gov/opp/7165751050ee4a9c990cf23ec937b99a |
| title | SPACECRAFT ENGINEERING, SOFTWARE, RESEARCH AND DEVELOPMENT SERVICES |
| solicitationNumber | FA2823-26-Q-A113 |
| noticeType | Solicitation |
| typeCode | o |
| postedDate | 2026-10-19T20:56:08+00:00 |
| responseDate | 2026-10-26T17:00:00+00:00 |
| responseTimeZone | America/New_York |
| archiveDate | 2026-11-25 |
| agency | VETERANS AFFAIRS, DEPARTMENT OF > TECHNOLOGY ACQUISITION CENTER NJ |
| naicsCodes | \["611430 - Professional and Management Development Training"] |
| pscCodes | \["AR23 - R\&D- SPACE: SCIENCE/APPLICATIONS"] |
| placeOfPerformance | \[", NJ USA 07724"] |
| setAside | Total Small Business Set-Aside (FAR 19.5) |
| contacts | \[{"name": "...", "email": "...", "phone": "...", "role": "primary"}] |
| description | Plain text of the notice, HTML stripped |
| awardee | Award notices only |
| isActive / isCanceled | true / false |

### Use cases

- Government contractors: find new RFPs in your NAICS codes before competitors see them.
- Bid/no-bid screening: pull response deadlines, set-aside types, and PSC codes into your pipeline.
- Market research: track which agencies are buying what, and which vehicles are set-aside for small business.
- Subcontracting: identify prime awardees on award notices in your vertical.
- Lead generation: contracting officer names, emails and phones straight from public notices.
- Compliance and monitoring: daily watches on new presolicitations and sources sought in your space.

### FAQ

**Where does the data come from?** SAM.gov, the US General Services Administration's official system of record for federal contracting. Search queries run against SAM.gov's public search service; records include every field the notice publishes.

**Do I need an account or API key?** No. The actor runs without any SAM.gov login, and no keys are required.

**How fresh is the data?** As fresh as SAM.gov itself: results are sorted by last modified date, so the first rows are the notices updated most recently. Active-only mode (default) filters out archived and cancelled notices.

**How are deadlines handled?** Records carry the response deadline in UTC plus the notice's own time zone and the actual local deadline, so you never miss a bid window over a time-zone slip.

**What are NAICS codes?** The North American Industry Classification System codes federal buyers use to categorize purchases. Filtering by NAICS is the fastest way to narrow thousands of opportunities to the ones relevant to your business.

**Can I filter by set-aside type?** Set-aside type is included on every record. Filter the output rows by setAside when you target small business, 8(a), SDVOSB or HUBZone vehicles.

**Does it include award data?** Yes. Award-type notices carry the awardee name. For award amounts across all agencies, pair this with the free USASpending.gov dataset.

**Is there a hard limit?** Up to 5,000 opportunities per run. SAM.gov caps a single search at 10,000 records; the actor stays well inside that.

# Actor input Schema

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

Search keywords matched against opportunity titles and descriptions, e.g. cybersecurity, logistics, medical devices. Leave empty to return the most recently updated active opportunities.

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

Only return opportunities of these notice types: Presolicitation, Solicitation, Combined Synopsis/Solicitation, Sources Sought, Special Notice, Award. Leave empty for all types.

## `naics` (type: `array`):

Only return opportunities under these NAICS industry codes, e.g. 541512 (computer systems design), 336413 (aircraft parts). Comma-free six digit codes, one per entry. Leave empty for all industries.

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

Only return opportunities posted on or after this date, format YYYY-MM-DD. Leave empty for no lower bound.

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

Only return opportunities posted on or before this date, format YYYY-MM-DD. Leave empty for no upper bound.

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

Only return opportunities that are currently active on SAM.gov (not archived or cancelled). Turn off to include inactive and archived records as well.

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

Include the opportunity description as plain text in each record. Turn off for slimmer rows when you only need metadata.

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

Include contracting officer and point-of-contact names, emails and phone numbers when the notice publishes them.

## `limit` (type: `integer`):

Maximum number of opportunities to return, between 1 and 5000.

## Actor input object example

```json
{
  "noticeTypes": [],
  "naics": [],
  "activeOnly": true,
  "includeDescription": true,
  "includeContacts": true,
  "limit": 10
}
```

# Actor output Schema

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

Link to the dataset of federal contract opportunity records

# 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": "",
    "noticeTypes": [],
    "naics": [],
    "postedFrom": "",
    "postedTo": "",
    "activeOnly": true,
    "includeDescription": true,
    "includeContacts": true,
    "limit": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("red.cars/sam-gov-contracts-scraper-pro").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": "",
    "noticeTypes": [],
    "naics": [],
    "postedFrom": "",
    "postedTo": "",
    "activeOnly": True,
    "includeDescription": True,
    "includeContacts": True,
    "limit": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("red.cars/sam-gov-contracts-scraper-pro").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": "",
  "noticeTypes": [],
  "naics": [],
  "postedFrom": "",
  "postedTo": "",
  "activeOnly": true,
  "includeDescription": true,
  "includeContacts": true,
  "limit": 10
}' |
apify call red.cars/sam-gov-contracts-scraper-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,red.cars/sam-gov-contracts-scraper-pro"
        }
    }
}
```

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/rhqLhyXodCPkcy09e/builds/P3tfvNH9jIbA8wmdF/openapi.json
