# US Federal Contract Opportunities (SAM.gov) + AI Briefs (`mikhail_k/us-federal-contracts`) Actor

Search 78,000+ active US federal contract opportunities from the official SAM.gov daily extract: full-text keyword search, NAICS/set-aside/agency filters, award data, and plain-language AI briefs in English, Russian, Arabic & Chinese.

- **URL**: https://apify.com/mikhail\_k/us-federal-contracts.md
- **Developed by:** [Mikhail K](https://apify.com/mikhail_k) (community)
- **Categories:** Business, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 raw contract opportunity records

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## US Federal Contract Opportunities (SAM.gov) + AI Briefs (EN/RU/AR/ZH)

Search 78,000+ active US federal contract opportunities pulled from the
official SAM.gov daily public data extract: full-text keyword search, NAICS
code, set-aside (small business, 8(a), WOSB, SDVOSB...), agency, and place-of-
performance filters, plus award history where available. Each opportunity can
also get a plain-language AI brief — what's being procured, who's eligible to
bid, and the key dates — with optional Russian, Arabic, and Chinese
translations for international business-development teams tracking US
federal opportunities.

Raw opportunity data is public domain. The product here is the search +
analysis layer: full-text search across titles AND descriptions (not just
titles), coherent filtering across the whole notice hierarchy, and a written
brief that turns a dense procurement notice into something a BD team can
triage in seconds — in a dataset you can pipe anywhere.

### What it does

1. Pulls the current day's official SAM.gov contract-opportunities extract
   (updated daily).
2. Filters by keyword (full-text, title + description), NAICS code, set-aside
   type, notice type, agency, state, and date range.
3. Returns the newest matching notices with full structured fields: agency
   hierarchy, NAICS/PSC codes, set-aside, key dates, place of performance, and
   award data (number, date, amount, awardee) where the notice is an award.
4. Optionally produces a plain-language AI brief and an eligibility note per
   notice — grounded ONLY in the notice's own fields, never invented — in up
   to 4 languages.
5. Self-checks its own output and **fails loudly** instead of silently
   returning broken data.

### Input example

```json
{
    "keyword": "cybersecurity training",
    "naicsCodes": ["5415"],
    "setAsideCodes": ["SBA"],
    "state": "VA",
    "maxItems": 50,
    "enrich": true,
    "targetLangs": ["en", "ru"]
}
````

### Output example

```json
{
    "noticeId": "abc123def456",
    "title": "Cybersecurity Training Services",
    "department": "DEPT OF DEFENSE",
    "subTier": "DEPT OF THE ARMY",
    "naicsCode": "541511",
    "setAside": "Total Small Business Set-Aside (FAR 19.5)",
    "postedDate": "2026-07-10T03:25:18+00:00",
    "responseDeadline": "2026-07-20T20:00:00+00:00",
    "placeOfPerformance": {"city": "Aberdeen", "state": "MD", "country": "USA"},
    "award": null,
    "brief": "The Army is seeking a contractor to provide cybersecurity training for approximately 200 personnel...",
    "brief_ru": "Армия ищет подрядчика для проведения обучения по кибербезопасности...",
    "eligibilityNote": "Only small businesses may bid under this total set-aside.",
    "uiLink": "https://sam.gov/opp/abc123def456/view"
}
```

### Why this actor

- **Full-text search, not title-only** — searches the complete notice
  description, not just the title.
- **Complete filtering** — NAICS, set-aside, agency, state, and date range
  together in one query.
- **Award data included** — award number, date, amount, and awardee where the
  notice is an award, not just open solicitations.
- **Multilingual briefs** — plain-language RU/AR/ZH summaries for
  international business-development teams; a rarity in this niche.
- **Reliability by design** — the official public bulk extract, not a
  scraped page, with a self-check that fails loudly if the source format
  changes.
- **Privacy-conscious by default** — contracting-officer contact fields
  (name/email/phone) are excluded unless explicitly requested via
  `includeContacts`.
- **Clean legality** — SAM.gov contract-opportunity data is US-government
  work product, in the public domain, published for reuse.

### Pricing

Pay-per-event:

- **$0.002 per raw opportunity record** — full structured fields, no AI
  enrichment.
- **$0.025 per AI-enriched brief** — plain-language brief and eligibility note,
  plus any requested translations (up to 4 languages in one charge).

You're charged the enriched-record price only when `enrich: true` and a brief
is actually produced. No enrichment, no charge beyond the raw record.

### Use cases

**Find small-business set-aside IT contracts before your competitors do.**
Filter to your NAICS code and set-aside category, with a plain-language
brief explaining exactly who's eligible to bid:

```json
{ "naicsCodes": ["5415"], "setAsideCodes": ["SBA"], "maxItems": 50, "enrich": true }
```

**Track new Veterans Affairs construction opportunities in a specific
state**, briefed for a BD team that doesn't have time to read every notice:

```json
{ "agency": "VETERANS AFFAIRS", "naicsCodes": ["2362"], "state": "TX", "enrich": true }
```

**Search for cybersecurity contract opportunities across all agencies**,
full-text across titles AND descriptions — not just a title-only match like
most SAM.gov scrapers:

```json
{ "keyword": "cybersecurity training", "activeOnly": true, "maxItems": 100, "enrich": true }
```

**Monitor recent contract awards in your industry** to see who's winning
and at what price, using the same notice-type filter as a competitive-intel
feed:

```json
{ "naicsCodes": ["236220"], "noticeTypes": ["Award Notice"], "maxItems": 50 }
```

**Get bilingual briefs for a Russian-speaking or Arabic-speaking business
development team** tracking US federal opportunities without reading dense
government notices in English:

```json
{ "keyword": "construction", "enrich": true, "targetLangs": ["ru", "ar"] }
```

### FAQ

**How fresh is the data?** The official SAM.gov extract is refreshed daily;
each run pulls the latest version.

**Can I search by exact NAICS code only, or is it always a prefix match?**
`naicsCodes` matches as a prefix, so `5415` matches all IT-services
sub-codes; pass the full 6-digit code for an exact match.

**Does this include archived/expired notices?** By default, `activeOnly`
returns only currently active notices; set it to `false` to include
archived ones within your date range.

**Are contracting-officer contact details included?** Not by default — set
`includeContacts: true` if you need them.

# Actor input Schema

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

Full-text search across notice titles AND full descriptions (all terms must match). Example: 'cybersecurity training'.

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

One or more NAICS code prefixes, e.g. 541511 or 5415 (prefix match, so 5415 matches all IT services). Multiple codes are OR-combined.

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

Filter by set-aside code, e.g. SBA (small business), 8A, WOSB, SDVOSBC, HZC. Multiple codes are OR-combined.

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

Filter by notice type: Solicitation, Presolicitation, 'Sources Sought', 'Award Notice', 'Special Notice', 'Combined Synopsis/Solicitation', Justification.

## `agency` (type: `string`):

Substring match against the agency hierarchy (department, sub-tier, office). Example: 'DEPT OF DEFENSE' or 'Veterans Affairs'.

## `state` (type: `string`):

Two-letter US state code for the place of performance, e.g. CA, TX, VA.

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

Only notices posted on or after this date.

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

Only notices posted on or before this date.

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

Only return notices that are currently active (not archived).

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

Maximum number of notices to return (newest first). Capped at 5000.

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

Include the notice's stated point-of-contact fields (name, email, phone of the contracting office). Off by default.

## `enrich` (type: `boolean`):

Add a plain-language AI brief per notice: what is being procured, who can bid (set-aside explained), and key dates. Enriched notices are billed at the enriched-record rate.

## `targetLangs` (type: `array`):

Languages for the AI brief.

## Actor input object example

```json
{
  "keyword": "cybersecurity",
  "activeOnly": true,
  "maxItems": 50,
  "includeContacts": false,
  "enrich": true,
  "targetLangs": [
    "en"
  ]
}
```

# 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"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mikhail_k/us-federal-contracts").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" }

# Run the Actor and wait for it to finish
run = client.actor("mikhail_k/us-federal-contracts").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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"
}' |
apify call mikhail_k/us-federal-contracts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=mikhail_k/us-federal-contracts",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "US Federal Contract Opportunities (SAM.gov) + AI Briefs",
        "description": "Search 78,000+ active US federal contract opportunities from the official SAM.gov daily extract: full-text keyword search, NAICS/set-aside/agency filters, award data, and plain-language AI briefs in English, Russian, Arabic & Chinese.",
        "version": "0.1",
        "x-build-id": "Ln5kKbxb6vYCSg4s2"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/mikhail_k~us-federal-contracts/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-mikhail_k-us-federal-contracts",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/mikhail_k~us-federal-contracts/runs": {
            "post": {
                "operationId": "runs-sync-mikhail_k-us-federal-contracts",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/mikhail_k~us-federal-contracts/run-sync": {
            "post": {
                "operationId": "run-sync-mikhail_k-us-federal-contracts",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "keyword": {
                        "title": "Keyword search",
                        "type": "string",
                        "description": "Full-text search across notice titles AND full descriptions (all terms must match). Example: 'cybersecurity training'."
                    },
                    "naicsCodes": {
                        "title": "NAICS codes",
                        "type": "array",
                        "description": "One or more NAICS code prefixes, e.g. 541511 or 5415 (prefix match, so 5415 matches all IT services). Multiple codes are OR-combined.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "setAsideCodes": {
                        "title": "Set-aside codes",
                        "type": "array",
                        "description": "Filter by set-aside code, e.g. SBA (small business), 8A, WOSB, SDVOSBC, HZC. Multiple codes are OR-combined.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "noticeTypes": {
                        "title": "Notice types",
                        "type": "array",
                        "description": "Filter by notice type: Solicitation, Presolicitation, 'Sources Sought', 'Award Notice', 'Special Notice', 'Combined Synopsis/Solicitation', Justification.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "agency": {
                        "title": "Agency",
                        "type": "string",
                        "description": "Substring match against the agency hierarchy (department, sub-tier, office). Example: 'DEPT OF DEFENSE' or 'Veterans Affairs'."
                    },
                    "state": {
                        "title": "Place of performance: state",
                        "type": "string",
                        "description": "Two-letter US state code for the place of performance, e.g. CA, TX, VA."
                    },
                    "postedFrom": {
                        "title": "Posted from (YYYY-MM-DD)",
                        "type": "string",
                        "description": "Only notices posted on or after this date."
                    },
                    "postedTo": {
                        "title": "Posted to (YYYY-MM-DD)",
                        "type": "string",
                        "description": "Only notices posted on or before this date."
                    },
                    "activeOnly": {
                        "title": "Active notices only",
                        "type": "boolean",
                        "description": "Only return notices that are currently active (not archived).",
                        "default": true
                    },
                    "maxItems": {
                        "title": "Max notices",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of notices to return (newest first). Capped at 5000.",
                        "default": 50
                    },
                    "includeContacts": {
                        "title": "Include contracting-officer contacts",
                        "type": "boolean",
                        "description": "Include the notice's stated point-of-contact fields (name, email, phone of the contracting office). Off by default.",
                        "default": false
                    },
                    "enrich": {
                        "title": "AI briefs",
                        "type": "boolean",
                        "description": "Add a plain-language AI brief per notice: what is being procured, who can bid (set-aside explained), and key dates. Enriched notices are billed at the enriched-record rate.",
                        "default": true
                    },
                    "targetLangs": {
                        "title": "Brief languages",
                        "type": "array",
                        "description": "Languages for the AI brief.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "en",
                                "ru",
                                "ar",
                                "zh"
                            ],
                            "enumTitles": [
                                "English",
                                "Russian",
                                "Arabic",
                                "Chinese (Simplified)"
                            ]
                        },
                        "default": [
                            "en"
                        ]
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
