# US Federal Awards Monitor (USASpending + NAICS Auto-Fix) (`capitalist_developer/us-federal-awards-and-naics-monitor`) Actor

- **URL**: https://apify.com/capitalist_developer/us-federal-awards-and-naics-monitor.md
- **Developed by:** [Harsh](https://apify.com/capitalist_developer) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 federal award record delivereds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## US Federal Contract & Grant Awards Monitor (USASpending + NAICS Auto-Fix)

A high-performance B2B GovCon intelligence Actor and Model Context Protocol (MCP) server that monitors US federal contract awards, delivery orders, and grants directly from **USASpending.gov** with automated NAICS code cross-expansion and deduplication.

***

### ⚡ The GovCon Problem: The NAICS 511210 / 513210 Blind Spot

In 2022, the federal government officially revised the North American Industry Classification System (NAICS), retiring **NAICS 511210 (Software Publishers)** and reclassifying commercial software under **NAICS 513210 (Software Publishers)**.

However, thousands of active solicitations, Indefinite Delivery Vehicles (IDVs), BPA Calls, and agency contracting offices (DoD, VA, HHS, DHS, DoE) continue to issue modifications and new awards under legacy code 511210.

Contractors searching only for `513210` miss **up to 40% of relevant software awards and subcontracting opportunities**.

**US Federal Awards Monitor solves this automatically**:

- Querying `513210` automatically expands to search `511210`.
- Querying `511210` automatically expands to search `513210`.
- Software vendors, defense contractors, and capture teams never miss a prime or sub award.

***

### 🚀 Key Use Cases

1. **GovCon Capture & BD Teams**: Track award announcements within hours of obligation across target agencies (e.g., DoD, Army, Navy, Air Force, HHS, VA).
2. **Competitor Intelligence**: Monitor incumbent vendors, contract ceilings, obligated dollar amounts, and period-of-performance end dates for recompete targeting.
3. **Subcontracting & Teaming**: Identify prime awardees winning large definitive contracts and delivery orders to pitch teaming arrangements or subcontracting capabilities.
4. **AI-Powered Procurement Assistants**: Connect your AI agents (Claude, Cursor, ChatGPT, Antigravity) via MCP to answer real-time questions like *"What cloud software contracts were awarded by the Air Force this month?"*

***

### 🔌 Model Context Protocol (MCP) Integration

This Actor runs in **Standby Mode** as a streamable HTTP MCP server, enabling AI agents to query live federal spending without batch polling.

#### Connect to Any MCP Client

Add the following MCP endpoint to your client configuration:

```text
https://mcp.apify.com/?tools=capitalist_developer/us-federal-awards-and-naics-monitor
```

#### Claude Desktop Configuration (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "us-federal-awards": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-fetch",
        "https://mcp.apify.com/?tools=capitalist_developer/us-federal-awards-and-naics-monitor"
      ]
    }
  }
}
```

#### Antigravity & Cursor Configuration

```json
{
  "mcpServers": {
    "us-federal-awards": {
      "url": "https://mcp.apify.com/?tools=capitalist_developer/us-federal-awards-and-naics-monitor",
      "type": "sse"
    }
  }
}
```

***

### 📊 Sample Output Record

Each award record is flattened, cleaned, and standardized:

```json
{
  "awardId": "FA880623C0002",
  "recipientName": "PALANTIR USG INC",
  "awardAmount": 130042463,
  "awardingAgency": "Department of Defense",
  "awardingSubAgency": "Department of the Air Force",
  "naicsCode": "513210",
  "startDate": "2023-06-16",
  "endDate": "2025-06-15",
  "description": "ESTABLISH BASIC LETTER CONTRACT FOR COMMERCIAL DATA AS A SERVE PLATFORM.",
  "awardType": "Contract",
  "sourceUrl": "https://www.usaspending.gov/award/CONT_AWD_FA880623C0002_9700_-NONE-_-NONE-"
}
```

***

### ⚙️ Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `keywords` | Array of strings | `[]` | Keywords to match against award descriptions (e.g. `["cloud", "AI", "cyber"]`). |
| `naicsCodes` | Array of strings | `[]` | NAICS industry classification codes (e.g. `["513210"]`). |
| `autoExpandLegacySoftwareNaics` | Boolean | `true` | Automatically cross-expands `513210` <-> `511210` to capture legacy awards. |
| `agencyNames` | Array of strings | `[]` | Filter by top-tier agency or sub-agency (e.g. `["Department of Defense", "NASA"]`). |
| `awardTypes` | Array of strings | `["A","B","C","D"]` | Award types: A (BPA Call), B (Purchase Order), C (Delivery Order), D (Definitive Contract). |
| `minAmountUsd` | Number | `null` | Minimum obligated award dollar amount threshold. |
| `daysBack` | Integer | `30` | Lookback window in days for period of performance / award date. |
| `onlyNewSinceLastRun` | Boolean | `false` | When true, deduplicates against previous runs via a named Key-Value store. |
| `maxItems` | Integer | `100` | Maximum number of awards to fetch and store. |

***

### 🛠️ Architecture & Reliability

- **Direct USASpending v2 API Ingestion**: No intermediate scrapers or brittle DOM parsing. Direct JSON endpoints with official US Treasury schema compliance.
- **Resilient Retry Mechanism**: 3-retry exponential backoff handles upstream 429 rate-limits or temporary 5xx outages gracefully.
- **Pay-Per-Event Friendly**: Emits standard charging events (`mcp-lookup` and `award-record`) and respects platform charging limits.
- **Lightweight & Efficient**: Zero browser/Playwright dependencies; runs within 256MB–512MB RAM on Node.js 20 ESM.

***

### 📧 Support & Author

- **Author**: Harsh (`harsh-maker96`)
- **Contact**: Harsh9575286717@gmail.com
- **Repository**: [harsh-maker96/us-federal-awards-and-naics-monitor](https://github.com/harsh-maker96/us-federal-awards-and-naics-monitor)

# Actor input Schema

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

Keywords to match against award descriptions and titles (e.g. \['cloud', 'cybersecurity']).

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

North American Industry Classification System (NAICS) codes to filter awards (e.g. \['513210']).

## `autoExpandLegacySoftwareNaics` (type: `boolean`):

Automatically expands 513210 (Software Publishers) to include retired legacy NAICS 511210 and vice versa to prevent missed awards.

## `agencyNames` (type: `array`):

Filter results by awarding agency or sub-agency names (e.g. \['Department of Defense', 'NASA']).

## `awardTypes` (type: `array`):

Award type codes: A (BPA Call), B (Purchase Order), C (Delivery Order), D (Definitive Contract).

## `minAmountUsd` (type: `number`):

Filter awards with an obligated award amount greater than or equal to this threshold.

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

Lookback window in days for award action/start dates.

## `onlyNewSinceLastRun` (type: `boolean`):

Deduplicate against previous runs using a named Key-Value store to output only newly identified awards.

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

Maximum number of awards to return.

## Actor input object example

```json
{
  "autoExpandLegacySoftwareNaics": true,
  "awardTypes": [
    "A",
    "B",
    "C",
    "D"
  ],
  "daysBack": 30,
  "onlyNewSinceLastRun": false,
  "maxItems": 100
}
```

# Actor output Schema

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

Clean table view of monitored federal awards

# 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("capitalist_developer/us-federal-awards-and-naics-monitor").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("capitalist_developer/us-federal-awards-and-naics-monitor").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 capitalist_developer/us-federal-awards-and-naics-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,capitalist_developer/us-federal-awards-and-naics-monitor"
        }
    }
}
```

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/6p1oI6j04k4q6rtAN/builds/JFLs22eAD9mm9Nh2K/openapi.json
