# US Government Contract Tracker — SAM.gov Federal Opportunities (`gochujang/gov-contract-tracker`) Actor

Track US federal contract opportunities from SAM.gov. Filter by keyword, NAICS code, agency, set-aside type, and date. Alternative to Bloomberg Government ($8k+/year). No API key required (DEMO\_KEY included).

- **URL**: https://apify.com/gochujang/gov-contract-tracker.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

### What does Government Contract Tracker do?

**Government Contract Tracker** pulls live **federal procurement data** directly from SAM.gov — the official US government contracting portal — via the SAM.gov Opportunities API v2. It searches, filters, and returns structured contract opportunities including solicitations, presolicitations, and award notices. This **government contract tracker** replaces manual portal searching with a fully automated, programmable pipeline. No SAM.gov account is required: the included `DEMO_KEY` works out of the box.

The **USASpending.gov API** and Bloomberg Government charge thousands of dollars for similar **federal procurement data**. This actor delivers the same SAM.gov source for **$0.002 per opportunity** — first 25 effectively free with Apify trial credits.

***

### Why use Government Contract Tracker?

- **GovCon business development** — Find active solicitations matching your NAICS code and capabilities before the response deadline, without logging into SAM.gov every morning
- **Competitive intelligence** — Monitor award notices to see which competitors are winning contracts in your space, and at what dollar value
- **Bid / no-bid pipeline filtering** — Filter by agency, set-aside type (8(a), WOSB, SDVOSB), dollar range, and NAICS code to instantly prioritize your pursuits
- **Subcontractor prospecting** — Identify prime contractors with active awards in your industry and reach out early
- **Market sizing and federal spend analysis** — Quantify federal procurement spend by agency or NAICS sector for strategic planning

***

### How to use Government Contract Tracker

1. Open the actor on Apify and click **Try for free**
2. Enter your search criteria: `keywords`, `naicsCode`, `agencyKeyword`, or `opportunityType`
3. Set date range with `postedFrom` / `postedTo` (defaults to last 30 days)
4. Optionally add your free **SAM.gov API key** for higher throughput (1,000 req/hour vs 40/hour with `DEMO_KEY`)
5. Set `maxResults` (1–1,000) and click **Start**
6. Download results as JSON, CSV, or connect via Apify API to your pipeline

**Getting a free SAM.gov API key** (optional, unlocks 1,000 req/hour):

1. Go to [sam.gov/profile/details](https://sam.gov/profile/details)
2. Create a free account
3. Navigate to **Account Details → API Key** and copy your key

***

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `keywords` | string | — | Search terms (e.g. `"cybersecurity"`, `"cloud computing"`) |
| `naicsCode` | string | — | NAICS industry code (e.g. `"541511"` for Custom Computer Programming) |
| `postedFrom` | string | 30 days ago | Opportunities posted on or after this date (`YYYY-MM-DD`) |
| `postedTo` | string | today | Opportunities posted on or before this date (`YYYY-MM-DD`) |
| `opportunityType` | enum | `all` | `all` / `solicitation` / `presolicitation` / `award` |
| `setAsideType` | enum | `all` | `all` / `SBA` / `8A` / `WOSB` / `SDVOSB` / `HUBZone` |
| `agencyKeyword` | string | — | Filter by agency name (e.g. `"Department of Defense"`, `"NASA"`) |
| `samApiKey` | string | `DEMO_KEY` | SAM.gov API key — `DEMO_KEY` works with rate limits (40 req/hour) |
| `maxResults` | integer | `100` | Max opportunities to return (1–1,000) |

#### Common NAICS codes

| Code | Description |
|------|-------------|
| `541511` | Custom Computer Programming Services |
| `541519` | Other Computer Related Services |
| `541512` | Computer Systems Design Services |
| `336411` | Aircraft Manufacturing |
| `334511` | Search/Detection/Navigation Equipment |
| `611430` | Professional and Management Development Training |

***

### Output

Each record represents one **federal contract opportunity** from the SAM.gov Opportunities API:

```json
[
  {
    "notice_id": "abc123def456",
    "title": "Cybersecurity Operations Support Services",
    "agency": "Department of Homeland Security",
    "office": "Cybersecurity and Infrastructure Security Agency",
    "posted_date": "2026-01-15T00:00:00-05:00",
    "response_deadline": "2026-02-15T23:59:00-05:00",
    "naics_code": "541511",
    "naics_description": "Custom Computer Programming Services",
    "opportunity_type": "Solicitation",
    "set_aside_type": "Total Small Business Set-Aside (FAR 19.5)",
    "description": "CISA requires professional cybersecurity operations support including 24/7 SOC monitoring, incident response, and threat intelligence...",
    "place_of_performance_state": "DC",
    "active": "Yes",
    "url": "https://sam.gov/opp/abc123def456/view",
    "solicitation_number": "70CDCR26R00042"
  },
  {
    "notice_id": "def789ghi000",
    "title": "Cloud Migration Services — AWS GovCloud",
    "agency": "Department of Veterans Affairs",
    "office": "Office of Information Technology",
    "posted_date": "2026-01-18T00:00:00-05:00",
    "response_deadline": "2026-02-28T17:00:00-05:00",
    "naics_code": "541512",
    "naics_description": "Computer Systems Design Services",
    "opportunity_type": "Presolicitation",
    "set_aside_type": "None",
    "place_of_performance_state": "VA",
    "active": "Yes",
    "url": "https://sam.gov/opp/def789ghi000/view",
    "solicitation_number": "36C10B26R0022"
  }
]
```

#### Key-Value Store SUMMARY

A `SUMMARY` record is saved to the Key-Value Store with aggregate statistics:

```json
{
  "total_opportunities": 247,
  "by_agency_top10": [
    { "agency": "Department of Defense", "count": 89 },
    { "agency": "Department of Homeland Security", "count": 34 }
  ],
  "by_naics_top10": [
    { "naics": "541511 — Custom Computer Programming Services", "count": 62 }
  ],
  "by_type": [
    { "type": "Solicitation", "count": 180 },
    { "type": "Award Notice", "count": 67 }
  ],
  "generated_at": "2026-01-20T14:32:00Z"
}
```

***

### Data fields

| Field | Type | Description |
|-------|------|-------------|
| `notice_id` | string | Unique SAM.gov opportunity identifier |
| `title` | string | Contract title / solicitation name |
| `agency` | string | Contracting agency (e.g. DoD, DHS, NASA) |
| `office` | string | Specific contracting office within agency |
| `posted_date` | string | Date the notice was published on SAM.gov |
| `response_deadline` | string | Proposal / response due date |
| `naics_code` | string | NAICS code identifying the industry/service |
| `naics_description` | string | Human-readable NAICS description |
| `opportunity_type` | string | `Solicitation`, `Presolicitation`, or `Award Notice` |
| `set_aside_type` | string | Small-business set-aside designation (if any) |
| `description` | string | Full contract description text |
| `place_of_performance_state` | string | State where work will be performed |
| `active` | string | `Yes` if the opportunity is currently open |
| `url` | string | Direct link to the SAM.gov opportunity |
| `solicitation_number` | string | Official solicitation / contract number |

***

### Cost estimation

| Event | Price | Example |
|-------|-------|---------|
| Actor start | $0.001 | One-time per run |
| Per opportunity returned | $0.002 | — |
| **100 opportunities** | **$0.201** | Typical daily BD scan |
| **500 opportunities** | **$1.001** | Weekly agency sweep |
| **1,000 opportunities** | **$2.001** | Full NAICS code pull |

New Apify accounts receive **free trial credits** — your first ~25 opportunities are effectively free.

***

### FAQ

**Do I need to register with SAM.gov to use this actor?**
No. The included `DEMO_KEY` works immediately with a rate limit of 40 requests/hour — enough for most use cases. For high-volume pipelines, register a free SAM.gov account to get 1,000 requests/hour.

**What types of contract opportunities are returned?**
The actor returns **Solicitations** (open for bids), **Presolicitations** (upcoming requirements announced in advance), and **Award Notices** (contracts already awarded — useful for competitive intelligence). Select any combination via the `opportunityType` filter.

**How fresh is the data?**
SAM.gov updates multiple times per day. The actor pulls from the live API, so data is as current as SAM.gov itself. There is no caching layer.

> **Disclaimer:** This actor accesses publicly available **federal procurement data** from SAM.gov under the US government's open data policy. The developer is not affiliated with SAM.gov, the General Services Administration, or any US government agency. Always verify opportunity details directly on [sam.gov](https://sam.gov) before submitting a proposal.

***

**Keywords:** government contract tracker, federal procurement data, USASpending.gov API, SAM.gov, NAICS, contracting opportunities, DoD contracts, small business set-aside, GovCon, 8a, WOSB, SDVOSB, solicitation tracker

# Actor input Schema

## `keywords` (type: `string`):

Search keywords (e.g. 'cybersecurity', 'cloud computing', 'software development'). Leave empty for all opportunities.

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

Filter by NAICS industry code (e.g. '541511' for Custom Computer Programming, '541519' for IT Services, '336411' for Aircraft Manufacturing).

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

Return opportunities posted on or after this date (YYYY-MM-DD). Defaults to 30 days ago.

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

Return opportunities posted on or before this date (YYYY-MM-DD). Defaults to today.

## `opportunityType` (type: `string`):

Filter by contract opportunity type.

## `setAsideType` (type: `string`):

Filter by small business set-aside category.

## `agencyKeyword` (type: `string`):

Filter results by agency name keyword (e.g. 'Department of Defense', 'NASA', 'HHS'). Applied client-side after API fetch.

## `samApiKey` (type: `string`):

Your SAM.gov API key. DEMO\_KEY works with rate limits (40 req/hour). Register free at https://sam.gov/profile/details for 1000 req/hour.

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

Maximum number of opportunities to return (1–1000). Each result costs $0.002.

## Actor input object example

```json
{
  "keywords": "cybersecurity",
  "naicsCode": "541511",
  "postedFrom": "2026-01-01",
  "postedTo": "2026-12-31",
  "opportunityType": "all",
  "setAsideType": "all",
  "agencyKeyword": "Department of Defense",
  "samApiKey": "DEMO_KEY",
  "maxResults": 100
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/gov-contract-tracker").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("gochujang/gov-contract-tracker").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 gochujang/gov-contract-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gochujang/gov-contract-tracker"
        }
    }
}

```

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/bcd6sEA1unjbpML9r/builds/xQoNxQWF6A7xEFUIE/openapi.json
