# SAM.gov Contract Opportunities (no API key) (`opendocketdata/sam-gov-contract-opportunities`) Actor

Find federal contract opportunities on SAM.gov as clean rows. Filter by keyword, NAICS, set-aside, agency, state and deadline. No API key or login. One row per solicitation.

- **URL**: https://apify.com/opendocketdata/sam-gov-contract-opportunities.md
- **Developed by:** [Open Docket Data](https://apify.com/opendocketdata) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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 Contract Opportunities (no API key)

Find federal contract opportunities on SAM.gov and get them as clean, flat rows: one row per notice, ready for a spreadsheet, a database or an AI agent.

This tool reads the **public daily Contract Opportunities extract that SAM.gov itself publishes**. That means:

- **No API key and no SAM.gov login.** Start a run and you get rows.
- **No daily request limit to run into.** SAM.gov limits how many API requests each key can make per day; the extract has no such limit.
- **Official source.** The file comes from SAM.gov's own Data Services page. Nothing is scraped from web pages.

### Who uses it

- Small businesses and capture teams watching for new solicitations in their NAICS codes
- Woman-owned, veteran-owned, 8(a) and HUBZone firms filtering by set-aside
- Consultants and proposal writers building a weekly opportunity list for clients
- Analysts and journalists tracking what agencies are buying
- AI agents that need current federal opportunities as structured data

### What you can filter by

| Filter | Example |
|---|---|
| Keywords (title and description) | `Section 508`, `technical writing` |
| Exclude keywords | `construction` |
| Search titles only | on for fewer, more exact keyword matches |
| NAICS codes, full or partial | `541519`, or `5415` for the whole group |
| Product or service codes (PSC) | `R4`, `DA01` |
| Set-asides | Total Small Business, WOSB, EDWOSB, 8(a), SDVOSB, HUBZone and more |
| Notice types | Solicitation, Combined Synopsis/Solicitation, Presolicitation, Sources Sought, Special Notice, Award Notice |
| Agencies | `Veterans Affairs`, `GSA` |
| Place of performance | `CO`, `VA` |
| Posted date | last 7 days, or any date range |
| Response deadline | only open notices, or a deadline range |

### One row per solicitation, not one per amendment

Agencies re-post a notice every time they amend it. In a two-week sample of SAM.gov's file (13,453 notices, checked November 2026), about 1 in 8 solicitation numbers appeared more than once. By default this tool keeps only the **newest version** of each solicitation, so you do not pay for or read the same opportunity three times. Turn off **Latest version of each notice only** if you want every version.

### What you get

Each row includes: `noticeId`, `title`, `solicitationNumber`, `noticeType`, `department`, `subTier`, `office`, `postedDate`, `responseDeadline`, `daysUntilDeadline`, `setAsideCode`, `setAside`, `naicsCode`, `classificationCode`, place of performance (`popCity`, `popState`, `popZip`, `popCountry`), `active`, award fields for award notices (`awardNumber`, `awardDate`, `awardAmount`, `awardee`), `description`, `additionalInfoLink` and a `url` to the notice on SAM.gov.

Contracting office contacts are **off by default**. Turn on **Include contracting office contacts** to add the government points of contact that SAM.gov publishes with each notice.

#### Sample input

```json
{
  "keywords": ["Section 508", "technical writing"],
  "naicsCodes": ["5415", "541611"],
  "setAsides": ["WOSB", "SBA"],
  "noticeTypes": ["Solicitation", "Combined Synopsis/Solicitation", "Sources Sought"],
  "daysBack": 14,
  "openOnly": true,
  "maxItems": 200
}
```

### Watch for new notices

Turn on **Only notices not seen before**, give the search a **Watch name**, and put the run on a schedule. Each run then saves only notices that earlier runs did not save, so you can send new matches to email, Slack or a spreadsheet with an Apify integration.

### Use it from an AI agent

This Actor works with the Apify MCP server, so an AI agent can call it as a tool and get structured rows back. Ask for a narrow search (keywords, NAICS and a short date window) to keep results small.

### How fresh is the data?

SAM.gov publishes the extract as a daily file. The newest notices can be about a day behind the live site. If you need notices within minutes of posting, use SAM.gov's own search or its API with your own key.

### Good to know

- Results come back newest day first.
- Two notices count as versions of one solicitation when they share a solicitation number and a contracting office. Notices with no solicitation number, or a placeholder such as TBD, are always kept.
- If the newest version of a solicitation does not match your filters (for example it has become an award notice and you asked for solicitations), its older versions are left out too.
- A keyword search covers the title and the description, so a lease notice that mentions janitorial service will match `janitorial`. Turn on **Search titles only** to avoid that.
- The extract is SAM.gov's current file, not a full history. SAM.gov keeps older notices in a separate historical archive.
- Notices are public U.S. government records. Always confirm dates and requirements on the SAM.gov notice itself before you bid.
- Open Docket Data is independent and is not affiliated with SAM.gov or the U.S. General Services Administration.

### Questions

**Do I need a SAM.gov account?** No.

**Why is a notice I see on SAM.gov missing?** It may have been posted after the last daily file, or a filter may be excluding it. Remove filters one at a time to check.

**Can I get the full description?** Yes. Raise **Description length** up to 50,000 characters.

More tools and guides: [opendocketdata.com](https://opendocketdata.com)

# Actor input Schema

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

Words or phrases to look for in the title or description. A notice matches if it contains any of them. Leave empty for everything.

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

Skip notices whose title or description contains any of these.

## `keywordsInTitleOnly` (type: `boolean`):

Match keywords against the notice title only. Leave off to search the title and the description. Titles only gives fewer, more exact matches.

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

Full or partial codes. 5415 matches every code that starts with 5415.

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

Full or partial classification codes, for example R4 or DA01.

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

Leave empty for all notices. Choose Any set-aside to see only notices that have one.

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

Leave empty for all types.

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

Part of a department, sub-tier or office name, for example Veterans Affairs or GSA.

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

Two-letter state codes, for example CO or VA.

## `daysBack` (type: `integer`):

Used when Posted from is empty. Set to 0 for no date limit.

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

Earliest posted date, as YYYY-MM-DD.

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

Latest posted date, as YYYY-MM-DD.

## `openOnly` (type: `boolean`):

Keep only notices whose response deadline has not passed. Notices with no deadline, such as award notices, are left out.

## `deadlineFrom` (type: `string`):

Earliest response deadline, as YYYY-MM-DD.

## `deadlineTo` (type: `string`):

Latest response deadline, as YYYY-MM-DD.

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

SAM.gov marks each notice active or inactive.

## `latestVersionOnly` (type: `boolean`):

Agencies re-post a notice each time they amend it, so SAM.gov's file can hold several versions of one solicitation. Leave this on to get one row per solicitation: its newest version. A version is left out when the file holds a newer notice with the same solicitation number from the same office, including a later award notice. Turn off to get every version.

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

The run stops after this many matching notices, newest first.

## `descriptionMaxChars` (type: `integer`):

Longest description to save, in characters. Set to 0 to leave descriptions out.

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

Adds the government points of contact SAM.gov publishes for each notice (name, title, work email and phone). Off by default.

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

For scheduled runs: saves only notices that earlier runs with the same watch name have not saved.

## `watchName` (type: `string`):

A name for this saved search, used with Only notices not seen before.

## Actor input object example

```json
{
  "keywords": [
    "Section 508",
    "technical writing"
  ],
  "keywordsInTitleOnly": false,
  "daysBack": 7,
  "openOnly": false,
  "activeOnly": true,
  "latestVersionOnly": true,
  "maxItems": 100,
  "descriptionMaxChars": 2000,
  "includeContacts": false,
  "onlyNew": false
}
```

# Actor output Schema

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

One flat row per SAM.gov notice.

# 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": [
        "Section 508",
        "technical writing"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("opendocketdata/sam-gov-contract-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": [
        "Section 508",
        "technical writing",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("opendocketdata/sam-gov-contract-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": [
    "Section 508",
    "technical writing"
  ]
}' |
apify call opendocketdata/sam-gov-contract-opportunities --silent --output-dataset

```

## MCP server setup

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