# Fast SAM.gov Scraper — Federal Contracts & Bids (`rbbscrap/fast-sam-gov-scraper`) Actor

Ultra-fast US federal government contracts scraper without browser overhead. Extract active solicitations, defense bids, RFPs, NAICS codes, set-aside categories, response deadlines, and contracting officer contact emails on 256MB RAM.

- **URL**: https://apify.com/rbbscrap/fast-sam-gov-scraper.md
- **Developed by:** [Hector](https://apify.com/rbbscrap) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## Fast SAM.gov Scraper — Federal Contracts & Bids

> ⚡ **Quick Test (0-Setup)**: Click the **Input** tab above or **Try for free** — all fields are pre-filled with a real-world example. Simply click **Start** to see live verified data in seconds!
> 💡 **Ultra-lightweight**: Runs on 256 MB RAM — costs < $0.001 per run. 100% Free test included with your Apify monthly credits!

> **Zero-proxy, sub-second federal contracts & officer emails scraper on 256MB RAM**

#### ⚡ Live Run Demo (Sub-second Execution)

```ansi
[1;32m[00:00.00][0m 🚀 Initializing Micro-Container (256MB RAM)...
[1;34m[00:00.24][0m 🛡️ Anti-bot handshake passed: Native protocol bypass (Zero-Proxy Required)
[1;36m[00:00.68][0m ⚡ Scraping SAM.gov Federal Procurement & RFPs... 50 records extracted & sanitized
[1;32m[00:01.35][0m ✅ STATUS: SUCCEEDED in 1.35s — Compute cost: $0.00078
[1;35m[00:01.36][0m 📦 Export ready: [JSON] [CSV] [Excel] [Webhook Delivered]
```

[![Status: Operational](https://img.shields.io/badge/Status-Operational%20\(Oct%202026\)-brightgreen?style=for-the-badge\&logo=statuspage)](https://apify.com/rbbscrap/fast-sam-gov-scraper/input)
[![Speed: Sub-second](https://img.shields.io/badge/Speed-Sub--second%20%28%3C2s%29-blue?style=for-the-badge\&logo=speedtest)](https://apify.com/rbbscrap/fast-sam-gov-scraper/input)
[![RAM: 256MB](https://img.shields.io/badge/RAM-256MB%20Micro--Engine-purple?style=for-the-badge\&logo=docker)](https://apify.com/rbbscrap/fast-sam-gov-scraper/input)
[![Cost: $0.0008](https://img.shields.io/badge/Cost-%240.0008%20%2F%20run-orange?style=for-the-badge\&logo=cashapp)](https://apify.com/rbbscrap/fast-sam-gov-scraper/input)

***

> ### 🛡️ 100% Zero-Block & Zero-Proxy Guarantee
>
> - **🟢 Status**: `Operational & Actively Maintained` (Verified daily for October 2026 anti-bot rules).
> - **⚡ Smart Protocol Bypass**: Queries official internal JSON & RPC protocols directly with genuine client headers. Zero heavy Chrome overhead, zero Cloudflare/Datadome 403 blocks.
> - **🚫 Zero Expensive Proxies Needed**: Runs effortlessly on direct connections or standard Apify proxies. **Saves you $15/GB** compared to bloated headless browser scrapers.

***

### 📊 Data Sneak Peek: Clean Spreadsheet View (Excel & Google Sheets Compatible)

[![Download Sample CSV](https://img.shields.io/badge/📥%20Download-Sample%20Dataset%20\(CSV%20%2F%20Excel\)-blue?style=for-the-badge\&logo=microsoftexcel)](https://apify.com/rbbscrap/fast-sam-gov-scraper/input)
[![Open Live Input Form](https://img.shields.io/badge/▶️%20Open%20Input%20Form-Test%20With%20Your%20Search-brightgreen?style=for-the-badge\&logo=apify)](https://apify.com/rbbscrap/fast-sam-gov-scraper/input)

| **solicitationNumber** | **title** | **department** | **noticeType** | **responseDeadline** | **primaryContactEmail** | **samUrl** |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| `HT942627QE003` | `BPA - Consumable Medical & Defense Supplies` | `DEPT OF DEFENSE` | `Solicitation` | `2026-11-20T17:00:00.000Z` | `officer.contracting@health.mil` | `https://sam.gov/opp/ee790d538a8b4e019e2579d3bccee37a/view` |

***

### 🎯 3 One-Click Real-World Scenarios

Choose your use case and launch it in 1 click:

- 🎯 **Scenario 1: Federal RFP Daily Watchdog** — Monitor newly posted defense and civilian solicitations matching your NAICS code every morning at 7:00 AM.
- 🎯 **Scenario 2: Contracting Officer Lead Generation** — Extract direct government buyer emails and phone numbers across DoD, NASA, and DHS for high-value B2G outreach.
- 🎯 **Scenario 3: AI Proposal Generation Pipeline** — Feed solicitation synopses and requirements into Claude or GPT-4 to draft government proposal outlines in minutes.

👉 [**Open the Input Form to Launch Your Free Test**](https://apify.com/rbbscrap/fast-sam-gov-scraper/input)

***

### 💰 Transparent Cost Breakdown: What Does 1 Run Cost?

Unlike bloated scrapers that burn through monthly credits in 10 searches, this Actor is engineered for **ultra-lightweight 256MB micro-containers**:

| Metric | Heavy Competitor Scrapers | Fast Scraper (This Actor) |
| :--- | :---: | :---: |
| **RAM Allocated** | 2048 MB – 4096 MB | **256 MB** |
| **Average Run Time** | 25 – 60 seconds | **Sub-second to 2.5 seconds** |
| **Compute Cost per Run** | ~$0.05 per batch | **~$0.0008 (Less than 1/10th of a cent)** |
| **Apify Free Tier ($5/mo)** | ~100 runs before credits run out | **🔥 Up to 6,000+ runs 100% FREE every month** |

> 🎁 **Every Apify account includes $5.00 in free compute credits every single month.** You can run and test this scraper completely free without entering a credit card or upgrading.

***

### 💻 Developer API Integration (Python & Node.js)

Call this Actor programmatically from your backend, ETL pipelines, or LLM agents in 3 lines of code:

#### 🐍 Python SDK

```python
from apify_client import ApifyClient

## Initialize the client with your Apify API token
client = ApifyClient("YOUR_APIFY_TOKEN")

## Run the Actor and wait for completion
run = client.actor("rbbscrap/fast-sam-gov-scraper").call(run_input={
    "keyword": "cybersecurity cloud migration",
    "noticeType": "SOLICITATION",
    "maxItems": 50
})

## Fetch dataset items directly as Python dictionaries
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(f"Extracted {len(items)} items successfully!")
```

#### 🟡 Node.js / TypeScript SDK

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const run = await client.actor('rbbscrap/fast-sam-gov-scraper').call({
    keyword: "cybersecurity cloud migration",
    noticeType: "SOLICITATION",
    maxItems: 50
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Extracted ${items.length} items successfully!`);
```

[![Get API Endpoint](https://img.shields.io/badge/▶️%20Get%20API%20Endpoint%20%26%20Code-Open%20Console-blueviolet?style=for-the-badge\&logo=apify)](https://apify.com/rbbscrap/fast-sam-gov-scraper/api)

***

### ⚡ Integrations & Export Formats

Export your datasets in any format in 1 click:

- **Formats**: JSON, CSV, Microsoft Excel (.xlsx), XML, RSS, HTML Table.
- **No-Code Automations**: Connect directly to **Make.com**, **Zapier**, **n8n**, and **Google Sheets**.
- **Webhooks**: Configure instant webhooks to ping your backend server upon completion.

# Actor input Schema

## `keyword` (type: `string`):

Keyword or topic to search across government contract opportunities (e.g. 'cybersecurity', 'cloud migration', 'artificial intelligence', 'HVAC maintenance').

## `naicsCode` (type: `string`):

Filter by 6-digit North American Industry Classification System code (e.g. 541512 for Computer Systems Design, 541519 for Other Computer Related Services). Leave empty for all industries.

## `noticeType` (type: `string`):

Filter by procurement notice stage.

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

Filter by socio-economic small business set-aside qualification.

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

When enabled, returns only currently active opportunities with upcoming response deadlines. Disable to include historical and archived records.

## `fetchDetails` (type: `boolean`):

Fetch detailed opportunity records to extract direct contracting officer emails, phone numbers, NAICS codes, and full office addresses.

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

Maximum number of government contract opportunities to extract.

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

Proxy settings. The scraper runs fast with standard proxies or datacenter proxies.

## Actor input object example

```json
{
  "keyword": "cybersecurity",
  "naicsCode": "541512",
  "noticeType": "ALL",
  "setAside": "ALL",
  "activeOnly": true,
  "fetchDetails": true,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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 = {
    "keyword": "cybersecurity",
    "naicsCode": "541512",
    "noticeType": "ALL",
    "setAside": "ALL",
    "activeOnly": true,
    "fetchDetails": true,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("rbbscrap/fast-sam-gov-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 = {
    "keyword": "cybersecurity",
    "naicsCode": "541512",
    "noticeType": "ALL",
    "setAside": "ALL",
    "activeOnly": True,
    "fetchDetails": True,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("rbbscrap/fast-sam-gov-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 '{
  "keyword": "cybersecurity",
  "naicsCode": "541512",
  "noticeType": "ALL",
  "setAside": "ALL",
  "activeOnly": true,
  "fetchDetails": true,
  "maxItems": 50
}' |
apify call rbbscrap/fast-sam-gov-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rbbscrap/fast-sam-gov-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/tyl4HnxdXdfWVwK2h/builds/uKFOI0k3uaOIeFodB/openapi.json
