# SAM.gov Scraper: Federal Contract Opportunities, No API Key (`sidehustler/sam-gov-tenders-feed`) Actor

SAM.gov contract opportunities without an API key: new US federal solicitations, presolicitations, sources sought and awards from the official SAM.gov public data extract. Filter by NAICS, PSC, set-aside, agency, state, keyword, deadline. Only-new monitoring. JSON, CSV or Excel.

- **URL**: https://apify.com/sidehustler/sam-gov-tenders-feed.md
- **Developed by:** [Side Hustler](https://apify.com/sidehustler) (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 Scraper: Federal Contract Opportunities, No API Key

Get **new US federal government contract opportunities** — **solicitations, combined synopsis/solicitations, presolicitations, sources sought, special notices and award notices** — as clean, structured data. Filter by **NAICS, PSC, set-aside (8(a), HUBZone, SDVOSB, WOSB, small business), agency, state, keyword, award value and response deadline**, schedule it in **"only new since last run"** mode, and export to JSON, CSV, Excel, Google Sheets, Slack, Make, Zapier, n8n or your CRM.

**No SAM.gov API key. No scraping. No proxies.** The Actor reads only the **official SAM.gov Contract Opportunities public data extract**, the bulk file GSA publishes for re-use through [SAM.gov Data Services](https://sam.gov/data-services) and data.gov. Because that file is sorted newest first, the Actor streams just the top of it: a typical daily run reads **well under 1 MB and finishes in seconds**.

### Quick start (60 seconds)

Click **Try for free** then **Start** with the prefilled input. You get the latest 50 active federal contract opportunities from the last 2 days. Add `naicsCodes`, `setAsides`, `agencies`, `states` or `keywords` to narrow it down.

```json
{
  "noticeCategory": "opportunities",
  "lastDays": 2,
  "maxResults": 50
}
```

### What can this SAM.gov scraper alternative do?

- 🇺🇸 **All federal agencies** — DoD, VA, GSA, DHS, NASA, HHS and more, about 1,000+ new notices per business day.
- 🧭 **Notice types** — opportunities (default), solicitations only, awards, or any exact SAM.gov type (amendments included).
- 🏷️ **NAICS and PSC prefixes** — `5415` = computer systems design, `236` = building construction, PSC `D` = IT services.
- 🎯 **Set-asides** — `SBA`, `8A`, `HZC`, `SDVOSBC`, `WOSB`, `EDWOSB`, or plain words like "veteran".
- 🏛️ **Agency/office** and **state** (place of performance or office).
- 🔎 **Keywords and exclusions** — case- and accent-insensitive, across title, description and agency.
- ⏰ **Deadlines** — only open notices, or only those **due within N days**; every item has `daysUntilDeadline`.
- 💵 **Award intelligence** — award notices with amount, award number, date and awardee, filterable by value.
- 🔁 **Monitoring mode** — `onlyNew: true` delivers only notices you haven't received yet, plus changed ones.

### Why this Actor

| Feature | This Actor | Typical SAM.gov Actors on the Store |
|---|---|---|
| Needs a SAM.gov API key | ❌ never | Varies |
| Data source | Official SAM.gov public data extract (bulk download intended for re-use) | Varies (API or website) |
| Proxies / headless browser | ❌ none needed | Some use them |
| Typical default run | ~1 second of work, < 1 MB read | Varies |
| Filters: NAICS, PSC, set-aside, agency, state, notice type, keywords | ✅ all | ✅ most |
| Exclude keywords, deadline within N days, award value range | ✅ | Partly |
| "Only new since last run" monitoring with change detection | ✅ built-in, per Monitor ID | Some |
| Same output fields as our other tender feeds (EU TED, UK, World Bank, SAM.gov, Brazil), so you can combine them | ✅ | — |
| Attachment downloads | ❌ (links to the notice page instead) | Some offer them |
| Contracting officer names | ❌ never (contact email/phone opt-in) | Often included |
| Price per result | **$0.002** | about $0.001–$0.003 (+ start fees on some) |

### Use cases

- **Government contractors and small businesses** — get matching RFPs, RFQs and sources-sought notices every morning by NAICS and set-aside.
- **Capture and BD teams** — pipeline from presolicitations and sources sought; track due dates with `deadlineWithinDays`.
- **Market intelligence** — award notices by agency and NAICS with award amounts.
- **AI agents and bid-matching tools** — clean JSON with stable IDs and official links.

### Input

| Field | What it does | Example |
|---|---|---|
| `noticeCategory` | `opportunities` (default), `solicitations`, `awards`, `all` | `"opportunities"` |
| `noticeTypes` | Exact types (overrides category) | `["Sources Sought"]` |
| `naicsCodes` / `pscCodes` | Code prefixes | `["541511"]`, `["D"]` |
| `setAsides` | Set-aside codes or words | `["SDVOSBC", "8A"]` |
| `agencies` | Department/agency/office contains | `["Navy"]` |
| `states` | Two-letter states | `["VA", "MD"]` |
| `keywords` / `excludeKeywords` | Match any / drop any | `["cybersecurity"]` |
| `minValue` / `maxValue` | Award value range (USD, awards only) | `1000000` |
| `lastDays` | Posted in the last N days (default 2) | `1` |
| `publishedFrom` / `publishedTo` | Exact posted-date range | `"2026-10-01"` |
| `onlyOpen` / `deadlineWithinDays` | Only open / due within N days | `true` / `14` |
| `activeOnly` | Skip inactive notices (default on) | `true` |
| `maxResults` | Max notices saved, newest first (default 50) | `500` |
| `onlyNew`, `reportUpdates`, `monitorId` | Monitoring mode | `true`, `true`, `"it-va"` |
| `includeContacts` | Add contact email/phone (opt-in) | `false` |

#### Example: small-business IT solicitations in Virginia due within 3 weeks

```json
{
  "noticeCategory": "solicitations",
  "naicsCodes": ["5415"],
  "setAsides": ["SBA", "small business"],
  "states": ["VA"],
  "deadlineWithinDays": 21,
  "lastDays": 7,
  "maxResults": 300
}
```

#### Example: daily monitor of construction opportunities for SDVOSBs

```json
{
  "naicsCodes": ["236", "237", "238"],
  "setAsides": ["SDVOSB"],
  "lastDays": 2,
  "onlyNew": true,
  "monitorId": "sdvosb-construction",
  "maxResults": 1000
}
```

### Output

```json
{
  "noticeId": "06e4d74e7301489e8adcac2a61f0735e",
  "source": "SAM.gov",
  "title": "HIP CAN Study",
  "description": "Battelle is requesting a proposal as noted in the attached documents ...",
  "status": "open",
  "noticeType": "Solicitation",
  "solicitationNumber": "0000963801",
  "buyerName": "ENERGY, DEPARTMENT OF",
  "department": "ENERGY, DEPARTMENT OF",
  "subTier": "ENERGY, DEPARTMENT OF",
  "office": "PNNL CONTRACTS - DOE CONTRACTOR",
  "buyerCountry": "USA",
  "buyerCity": "Richland",
  "buyerRegion": "WA",
  "classificationScheme": "NAICS",
  "mainClassification": "332999",
  "classificationCodes": ["332999"],
  "naicsCode": "332999",
  "pscCode": "9515",
  "setAsideCode": null,
  "value": null,
  "currency": null,
  "publicationDate": "2026-11-11",
  "updatedAt": "2026-11-11T12:54:14",
  "deadline": "2026-11-20T16:00:00-08:00",
  "daysUntilDeadline": 8,
  "isOpen": true,
  "archiveDate": "2026-12-05",
  "placeOfPerformance": ["Richland", "WA", "99354", "USA"],
  "url": "https://sam.gov/opp/06e4d74e7301489e8adcac2a61f0735e/view",
  "documents": [],
  "awardedSuppliers": [],
  "changeType": null
}
```

A `RUN_SUMMARY` record shows the extract's last-modified time, the window used, MB and rows read, and how many notices were saved.

### Run it from code (API)

```bash
curl -X POST "https://api.apify.com/v2/acts/sidehustler~sam-gov-tenders-feed/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"noticeCategory": "opportunities", "lastDays": 2, "maxResults": 50}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("sidehustler/sam-gov-tenders-feed").call(run_input={"noticeCategory": "opportunities", "lastDays": 2, "maxResults": 50})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("title"), item.get("deadline"), item.get("url"))
```

### How much does it cost?

Pay only for results: **$0.002 per notice saved** ($2 per 1,000) plus a tiny $0.00005 Actor-start fee. No subscription, no API key. A daily monitor delivering 50 new opportunities costs about **$0.10 a day**. Platform usage is minimal (256 MB memory; a default run reads less than 1 MB). Cap spending with the run's **maximum charge** setting.

### FAQ

**Is this legal? Is it scraping SAM.gov?**
No scraping. SAM.gov's Terms of Use prohibit automated scraping of the website but explicitly provide data "via APIs and extracts" through [SAM.gov Data Services](https://sam.gov/data-services) and say "you may also download some SAM.gov data". This Actor only downloads the public Contract Opportunities extract file. Works of the US federal government are generally in the public domain. This Actor is independent and not endorsed by GSA or SAM.gov.

**What about Dun & Bradstreet data?**
SAM.gov's terms restrict D\&B-sourced data, which may appear in award notices with an award date before April 4, 2022. For those notices the awardee is removed from the output.

**How fresh is the data?**
GSA refreshes the extract daily (the run summary shows its last-modified time). Notices posted since the last refresh appear on the next refresh. If the extract hasn't been refreshed for a while, `lastDays` counts back from its newest notice, so scheduled runs still return the latest data.

**Does it collect personal data?**
Contracting officer names are never output. Contact email and phone are excluded by default; enable `includeContacts` only if you have a lawful basis to process them.

**Why is `value` empty for opportunities?**
SAM.gov publishes amounts only on award notices. Value filters therefore apply to awards.

**Can I search years back?**
Yes, with `publishedFrom`/`publishedTo` — the Actor then streams further into the file (the full file is about 220 MB, which takes well under a minute).

**How do I get SAM.gov contract opportunities without an API key?**
This Actor reads the official SAM.gov Contract Opportunities public data extract, so you do not need a SAM.gov API key or login.

**Can I filter for small business set-asides like 8(a), HUBZone or SDVOSB?**
Yes. Use `setAsides` with codes such as `SBA`, `8A`, `HZC`, `SDVOSBC`, `WOSB`, or plain words like "veteran".

**Can I get daily alerts for new federal contracts in my NAICS code?**
Schedule the Actor daily with `lastDays: 2`, your `naicsCodes`, and `onlyNew: true` with a `monitorId`. Only notices you have not received are returned.

### Limitations

- Attachments aren't downloaded; follow `url` to the notice page on SAM.gov.
- The extract has one row per notice (latest version), not each amendment's history.
- The file contains a mix of UTF-8 and Windows-1252 text; the Actor decodes both so characters like “smart quotes” come out right.

### More tender feeds by sidehustler

Our feeds use the same core output fields (`title`, `buyerName`, `buyerCountry` as ISO-3, `value`, `currency`, `deadline`, `isOpen`, `url`), so you can combine them into one global bid pipeline. The UK, World Bank, SAM.gov and Brazil feeds also share the full normalised schema (status, classification codes, documents) and the "only new since last run" monitoring mode.

| Feed | Coverage | Source |
|---|---|---|
| [EU Public Tenders Feed (TED)](https://apify.com/sidehustler/ted-eu-tenders-feed) | EU/EEA tenders above EU thresholds | Official TED API |
| [UK Public Tenders Feed](https://apify.com/sidehustler/uk-tenders-feed) | Find a Tender + Contracts Finder | Official OCDS APIs |
| [World Bank Procurement Notices Feed](https://apify.com/sidehustler/worldbank-tenders-feed) | World Bank-financed tenders in 100+ countries | Official World Bank API |
| [US Federal Contract Opportunities Feed (SAM.gov)](https://apify.com/sidehustler/sam-gov-tenders-feed) | US federal opportunities | Official SAM.gov public data extract |
| [Brazil Public Tenders Feed (PNCP)](https://apify.com/sidehustler/brazil-tenders-feed) | Federal, state and municipal tenders in Brazil | Official PNCP API |

### Feedback

Need another field or filter? Open an issue on the **Issues** tab — we respond quickly.

***

*Source: SAM.gov Contract Opportunities public data extract (U.S. General Services Administration). This Actor is not affiliated with or endorsed by GSA, SAM.gov or the U.S. Government.*

# Actor input Schema

## `noticeCategory` (type: `string`):

Quick filter by notice purpose. Ignored if specific notice types are selected below.

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

Exact SAM.gov notice types (matched on type or base type, so amendments are included). Overrides the category above.

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

Match any of these words or phrases in the title, description or buyer name (case- and accent-insensitive, OR). Leave empty for all.

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

Drop notices whose title or description contains any of these.

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

NAICS code prefixes: 5415 = computer systems design, 541511 = custom programming, 236 = construction of buildings.

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

Product Service Code prefixes, e.g. D (IT services), DA01, R4, 70.

## `setAsides` (type: `array`):

Set-aside codes or words: SBA, 8A, HZC, SDVOSBC, WOSB, EDWOSB, "small business", "veteran".

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

Department, sub-tier agency or office name contains any of these (e.g. Navy, Veterans Affairs, GSA).

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

Two-letter US state codes, matched against place of performance or contracting office state (e.g. VA, MD, DC).

## `minValue` (type: `integer`):

Award notices only: keep awards at or above this value. Opportunities have no value in SAM.gov and are excluded when set.

## `maxValue` (type: `integer`):

Award notices only: keep awards at or below this value.

## `lastDays` (type: `integer`):

Posted in the last N days. Used only when no date range is set below. If the SAM.gov extract hasn't been refreshed recently, the window counts back from its newest notice.

## `publishedFrom` (type: `string`):

Optional start of the publication/update date range. Overrides "last N days".

## `publishedTo` (type: `string`):

Optional end of the date range (inclusive).

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

Keep only notices whose submission deadline is in the future.

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

Keep only open notices whose deadline falls within the next N days (e.g. 14). Leave empty to ignore.

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

Skip notices SAM.gov marks as inactive (archived).

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

Maximum number of notices to save. Newest first. You pay only for saved results.

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

Remember what earlier runs delivered and save only notices that are new (or changed, see below). Ideal for daily schedules. State is kept per Monitor ID in a named key-value store in your account.

## `reportUpdates` (type: `boolean`):

In monitoring mode, re-deliver a notice when its title, status, deadline or value changes (changeType = updated).

## `monitorId` (type: `string`):

Name for this monitoring feed, so different schedules/tasks keep separate memories (e.g. it-london). Letters, digits, dashes.

## `descriptionMaxLength` (type: `integer`):

Truncate descriptions to this many characters (0 = no limit).

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

Adds the primary contact's published email and phone. Personal names are never output. Only enable if you have a lawful basis to process them.

## `maxRunSeconds` (type: `integer`):

Stop fetching new pages after this time and save what was found. Prevents runaway runs.

## Actor input object example

```json
{
  "noticeCategory": "opportunities",
  "lastDays": 2,
  "onlyOpen": false,
  "activeOnly": true,
  "maxResults": 50,
  "onlyNew": false,
  "reportUpdates": true,
  "descriptionMaxLength": 1000,
  "includeContacts": false,
  "maxRunSeconds": 600
}
```

# Actor output Schema

## `tenders` (type: `string`):

One item per notice, newest first.

## `runSummary` (type: `string`):

Window, filters, records scanned, saved and any source warnings.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("sidehustler/sam-gov-tenders-feed").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("sidehustler/sam-gov-tenders-feed").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 '{}' |
apify call sidehustler/sam-gov-tenders-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sidehustler/sam-gov-tenders-feed"
        }
    }
}
```

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/JbeNhj1W7wJ5jeS1r/builds/hFhVZoqNAWR0yBakC/openapi.json
