# SAM.gov Federal Contract Opportunities Monitor (`neushua/us-federal-contract-opportunities`) Actor

New US federal contract opportunities from SAM.gov's official public data extract: solicitations, sources sought, presolicitations and award notices with agency, NAICS, PSC, set-aside and deadline. Only-new mode. No contact-person data.

- **URL**: https://apify.com/neushua/us-federal-contract-opportunities.md
- **Developed by:** [Neushua](https://apify.com/neushua) (community)
- **Categories:** Business, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 notices

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/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 Federal Contract Opportunities Monitor — New US Government Bids, Daily

Get **new US federal government contract opportunities** every morning, filtered to your NAICS codes, set-asides and agencies. The Actor reads **SAM.gov's official Contract Opportunities public data extract** and returns one clean row per notice: title, solicitation number, notice type, department, sub-agency and office, NAICS and PSC codes, set-aside, response deadline, place of performance, and for award notices the award number, date, amount and awardee. Use it for a snapshot of what was posted in the last few days, or schedule it with **Only new since last run** to get only fresh bids each morning.

No SAM.gov account, no API key, no browser, no proxies. The extract is the file SAM.gov itself publishes for public download on its Data Services page and data.gov. It lists active notices newest first, so a 7-day run reads only the first few percent of the file and finishes in seconds.

It returns **organisation-level fields only**. Every SAM.gov notice names a primary and secondary point of contact with name, email and phone. This Actor never outputs them. It also leaves out the free-text description, because agencies often type contracting officers' names, emails and phone numbers into it. Your keywords still search the description, each row says which keywords matched (`matchedKeywords`), and `samUrl` opens the full notice with its attachments on SAM.gov.

Independent tool. Not affiliated with the U.S. General Services Administration or SAM.gov. SAM.gov is named only as the public source.

### Who uses it, and for what

- **Small businesses and consultants who bid on federal work**: a daily list of open solicitations and sources-sought notices for your NAICS and PSC codes and your set-asides (SBA, 8(a), HUBZone, SDVOSB, WOSB).
- **Capture and business-development teams**: watch specific agencies or offices for presolicitations and sources-sought notices before the solicitation drops.
- **Bid-alert services, GovCon newsletters and CRMs**: clean, structured rows instead of SAM.gov's search pages.
- **Market researchers**: count opportunities and award notices by agency, NAICS, set-aside and state.
- **Teams already tracking EU, UK or German tenders** with our other Actors who want the US in a similar shape.

### Ready-made examples

Published example tasks you can open, run and schedule (`onlyNew` on, last 7 days on the first run):

- [IT and consulting federal bids (NAICS 5415, 5416, 5182)](https://apify.com/neushua/us-federal-contract-opportunities/examples/it-and-consulting-federal-bids)
- [Federal construction bids (NAICS 236, 237, 238)](https://apify.com/neushua/us-federal-contract-opportunities/examples/federal-construction-bids)

In a local test on Nov 29, 2026 (postings from Nov 22 to 29, Thanksgiving week), the first returned 64 open notices and the second matched more than 100 (the task stops at 100).

### Input

| Field | What it does | Default |
| --- | --- | --- |
| `postedFrom`, `postedTo` | SAM.gov posting date window, `YYYY-MM-DD`. | empty |
| `daysBack` | Used when `postedFrom` is empty: that many days before `postedTo` (or today, UTC). At most 90 days per run. | 7 |
| `noticeTypes` | Solicitation, Combined Synopsis/Solicitation, Presolicitation, Sources Sought, Special Notice, Award Notice, Justification, Intent to Bundle, Sale of Surplus Property. Empty = all. | all |
| `keywords`, `excludeKeywords` | Matched in the title, solicitation number and description (case-insensitive). The description is searched but not output. | none |
| `naicsCodes`, `pscCodes` | Prefix match: `5415` keeps 541511, 541512 and so on; `D3` keeps IT services PSC codes. | all |
| `setAsideCodes` | For example `SBA`, `SBP`, `8A`, `8AN`, `HZC`, `SDVOSBC`, `WOSB`, `EDWOSB`. | all |
| `agencies` | Words matched against department, sub-tier and office, for example `veterans`, `navy`, `army corps`. | all |
| `placeOfPerformanceStates` | Two-letter state codes. Many notices leave the place of performance empty; those are dropped when this is set. | all |
| `openOnly` | Keep only notices whose response deadline is in the future. Notices without a deadline (most award and special notices) are dropped. | false |
| `minAwardAmount` | Minimum award amount in USD. Only award notices carry an amount, so setting this keeps award notices only. | 0 |
| `onlyNew` + `stateKey` | Monitor mode. The first run returns the whole window and remembers it; later runs return only notices not delivered before. The memory is a key-value store in your own account named `neushua-us-federal-contracts-state`. If you change filters, use a new `stateKey`. | off |
| `maxItems` | Maximum rows per run, newest first. Billing stops at this number. | 100 |

Example input (open IT-services bids set aside for small businesses):

```json
{ "daysBack": 7, "noticeTypes": ["Solicitation", "Combined Synopsis/Solicitation"], "naicsCodes": ["5415"], "setAsideCodes": ["SBA"], "openOnly": true, "maxItems": 50 }
```

### Output

One dataset item per notice. Fields: `id` and `noticeId` (SAM.gov notice ID), `title`, `solicitationNumber`, `noticeType`, `baseType`, `department`, `subTier`, `office`, `cgacCode`, `fpdsCode`, `aacCode`, `postedDate`, `postedAt`, `responseDeadline`, `responseDeadlineDate`, `archiveDate`, `setAsideCode`, `setAside`, `naicsCode`, `pscCode`, `placeOfPerformanceCity`, `placeOfPerformanceState`, `placeOfPerformanceZip`, `placeOfPerformanceCountry`, `isActive`, `awardNumber`, `awardDate`, `awardAmount`, `awardee`, `officeCity`, `officeState`, `officeZip`, `officeCountry`, `samUrl`, `additionalInfoUrl`, `hasDescription`, `matchedKeywords`, `source`.

Dates are plain text exactly as SAM.gov publishes them (`postedDate` is `YYYY-MM-DD`; `responseDeadline` keeps the agency's UTC offset), so no tool shifts them by timezone.

A real row posted 2026-11-27 (shortened):

```json
{
  "noticeId": "322338355ae84c6ebabbea545495ac0d",
  "title": "S--Landscaping services for Eureka CA WFO",
  "solicitationNumber": "1305M327Q0051",
  "noticeType": "Solicitation",
  "department": "COMMERCE, DEPARTMENT OF",
  "subTier": "NATIONAL OCEANIC AND ATMOSPHERIC ADMINISTRATION",
  "office": "DEPT OF COMMERCE NOAA",
  "postedDate": "2026-11-27",
  "responseDeadline": "2026-11-30T13:00:00-08:00",
  "setAsideCode": "SBA",
  "setAside": "Small Business Set Aside - Total",
  "naicsCode": "561730",
  "pscCode": "S208",
  "placeOfPerformanceCity": "Eureka",
  "placeOfPerformanceState": "CA",
  "samUrl": "https://sam.gov/workspace/contract/opp/322338355ae84c6ebabbea545495ac0d/view",
  "hasDescription": true,
  "matchedKeywords": []
}
```

A **run summary** (key-value store record `RUN_SUMMARY`) gives the window, extract rows read, rows posted in the window, rows your filters rejected, rows skipped as already seen, notices returned by type, and when SAM.gov last refreshed the extract.

### Pricing

Pay per event, no monthly fee:

| Event name | Price | When it is charged |
| --- | --- | --- |
| `apify-actor-start` | $0.005 | Once when the run starts (charged automatically by the platform) |
| `notice` | $0.002 ($2 / 1,000 rows) | Once for each notice row written to the dataset |

SAM.gov posts roughly 600 to 1,500 notices per business day across all agencies (4,331 were posted in the 7 days to Nov 28, 2026, a Thanksgiving week). Set **Maximum rows** to cap any single run: the default is 100, which costs $0.005 + 100 × $0.002 = **$0.205**. A daily "only new" watch filtered to a few NAICS codes typically returns a handful to a few dozen notices, so a few cents a day. Days with nothing new cost $0.005. You are not charged for notices your filters reject, or for ones you already received in monitor mode.

### FAQ

**Do I need a SAM.gov account or API key?** No. The Actor reads the public extract SAM.gov publishes for anyone to download.

**How fresh is it?** SAM.gov refreshes the extract once a day (about 04:30 UTC in our tests), so a notice posted today usually appears tomorrow. A daily schedule after 05:00 UTC with `onlyNew` gives you yesterday's new notices each morning.

**Why do I see two rows with the same solicitation number?** Agencies often post a notice and then an amended version (or a solicitation after a presolicitation). Each SAM.gov notice ID is its own row, so you see every version. Group by `solicitationNumber` if you want one row per opportunity.

**Where are the contact person and the description?** Not in the output, on purpose: SAM.gov notices name contracting officers with emails and phone numbers, and agencies often paste the same details into the description. `samUrl` opens the full notice, with attachments, on SAM.gov.

**Can I get past or archived notices?** No. The extract holds active notices only. It is a "what is open now" feed, not a historical archive.

**How do I get it into Google Sheets, Slack or my CRM?** Save your input as a task, add a schedule, then use Apify's Google Sheets, Slack, Zapier, Make or n8n integrations, or a webhook on "run succeeded" that fetches the dataset.

### Honest limits

- This is SAM.gov's public data, reshaped. Everything here is free on sam.gov. What you pay for is one clean schema, filters, scheduling and "only new".
- **Up to a day behind.** SAM.gov refreshes the public extract once a day (it was last modified at 04:30 UTC in our tests). Notices posted today usually show up tomorrow. If you need minute-by-minute alerts, SAM.gov's own saved searches or its API (which needs a SAM.gov account and API key) are faster.
- **Active notices only.** The extract holds notices that are still active. Archived and cancelled notices drop out of it, so this is not a historical archive.
- **No description text and no attachments** in the output (see privacy above). Open `samUrl` for the full notice.
- Fields are exactly what agencies typed. Place of performance is empty on most notices, and award amounts appear only on award notices.
- Not legal, bidding or sales advice.

### Related Actors (same publisher, same clean format)

- [EU TED Tenders Scraper & Monitor](https://apify.com/neushua/eu-ted-tenders): official EU public procurement notices from TED, by CPV code, country and keyword.
- [UK Tenders Monitor](https://apify.com/neushua/uk-public-tenders): official UK notices from Contracts Finder and Find a Tender.
- [Germany Public Tenders Monitor](https://apify.com/neushua/germany-public-tenders): official German notices from oeffentlichevergabe.de, including below-threshold tenders.
- [US WARN Act Layoff Notices Monitor](https://apify.com/neushua/us-warn-notices) and [SEC Form D Funding Rounds Monitor](https://apify.com/neushua/sec-form-d-filings): official US layoff notices and new private funding rounds.

### Changelog

- **0.1.4** (Nov 29, 2026): README: use cases, input table, FAQ, ready-made examples, related Actors. No change to the data.
- **0.1.3** (Nov 29, 2026): public launch with pay-per-event pricing. Batched dataset writes (a 7-day run went from about 5 minutes to about 7 seconds); the free-text description is no longer output.

### Technical notes

Python and `httpx`. Source: `sam.gov/api/prod/fileextractservices/v1/api/download/Contract Opportunities/datagov/ContractOpportunitiesFullCSV.csv?privacy=Public`, which redirects to SAM.gov's download bucket. The file is streamed and the download stops as soon as postings older than your window are reached. In live testing on Nov 29, 2026, a 7-day unfiltered run returned 4,331 notices after reading 14 MB of the 223 MB file, in about 7 seconds at 256 MB. A filtered run (IT and consulting NAICS 5415/5416, open bids only) returned 59 notices in about 3 seconds; the next "only new" run returned 0. 256 MB of memory is plenty.

# Actor input Schema

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

ISO date, e.g. 2026-11-20. Empty = 'Days back' before 'Posted to'. This is the date the notice was posted on SAM.gov.

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

ISO date. Empty = today (UTC). The extract is refreshed once a day, so today's notices usually appear the next day.

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

Used only when 'Posted from' is empty. At most 90 days per run.

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

Current notice type on SAM.gov. Empty = all types. For open bids pick Solicitation, Combined Synopsis/Solicitation, Presolicitation and Sources Sought.

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

Keep notices whose title, solicitation number or description contains any of these (case-insensitive). The description is searched but not output. Empty = all.

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

Drop notices whose title, solicitation number or description contains any of these.

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

Prefix match, e.g. 5415 keeps 541511, 541512, ... Empty = all.

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

Prefix match on the classification code, e.g. D3 for IT services or 7030. Empty = all.

## `setAsideCodes` (type: `array`):

Keep only these set-asides. Codes: SBA = Total Small Business Set-Aside, SBP = Partial Small Business Set-Aside, 8A = 8(a) Set-Aside, 8AN = 8(a) Sole Source, HZC = HUBZone Set-Aside, HZS = HUBZone Sole Source, SDVOSBC = Service-Disabled Veteran-Owned Small Business Set-Aside, SDVOSBS = SDVOSB Sole Source, WOSB = Women-Owned Small Business Program Set-Aside, WOSBSS = WOSB Program Sole Source, EDWOSB = Economically Disadvantaged WOSB Program Set-Aside, EDWOSBSS = EDWOSB Program Sole Source, VSA = Veteran-Owned Small Business Set-Aside (VA), VSS = Veteran-Owned Small Business Sole Source (VA), LAS = Local Area Set-Aside, IEE = Indian Economic Enterprise Set-Aside, ISBEE = Indian Small Business Economic Enterprise Set-Aside, BICiv = Buy Indian Set-Aside, NONE = No set aside used.

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

Words matched against department, sub-tier and office, e.g. 'veterans', 'navy', 'army corps'. Empty = all.

## `placeOfPerformanceStates` (type: `array`):

Two-letter codes. Many notices leave the place of performance empty; those are dropped when this is set.

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

Keep only notices whose response deadline is in the future. Notices without a deadline (most award and special notices) are dropped.

## `minAwardAmount` (type: `integer`):

0 = no minimum. Only award notices carry an amount, so setting this keeps award notices only.

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

Returns only notices not delivered in an earlier run under the same monitor name. The first run returns the whole window and seeds the memory, kept in a key-value store in your account named neushua-us-federal-contracts-state.

## `stateKey` (type: `string`):

Names the saved monitor for 'only new'. Empty = automatic, derived from your filters.

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

Newest first. Billing stops at this number. 1 to 20,000.

## Actor input object example

```json
{
  "postedFrom": "2026-11-20",
  "postedTo": "2026-11-28",
  "daysBack": 3,
  "noticeTypes": [
    "Solicitation",
    "Combined Synopsis/Solicitation"
  ],
  "keywords": [],
  "excludeKeywords": [],
  "naicsCodes": [],
  "pscCodes": [],
  "setAsideCodes": [],
  "agencies": [],
  "placeOfPerformanceStates": [],
  "openOnly": false,
  "minAwardAmount": 0,
  "onlyNew": false,
  "stateKey": "it-services-sba",
  "maxItems": 50
}
```

# Actor output Schema

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

All rows returned by the run, as dataset items (JSON).

## `overview` (type: `string`):

Compact table view.

## `summary` (type: `string`):

Window, extract rows read, rows in the window, filtered out, already seen, and the extract's last refresh time.

# 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 = {
    "daysBack": 3,
    "noticeTypes": [
        "Solicitation",
        "Combined Synopsis/Solicitation"
    ],
    "keywords": [],
    "naicsCodes": [],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("neushua/us-federal-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 = {
    "daysBack": 3,
    "noticeTypes": [
        "Solicitation",
        "Combined Synopsis/Solicitation",
    ],
    "keywords": [],
    "naicsCodes": [],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("neushua/us-federal-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 '{
  "daysBack": 3,
  "noticeTypes": [
    "Solicitation",
    "Combined Synopsis/Solicitation"
  ],
  "keywords": [],
  "naicsCodes": [],
  "maxItems": 50
}' |
apify call neushua/us-federal-contract-opportunities --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neushua/us-federal-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/MZAQOaqd7DDwN2wEq/builds/zY1bgUTIhRCx2t5Tg/openapi.json
