# USAspending Federal Awards & Competitor Monitor (`blaidlink/usaspending-competitor-award-intelligence`) Actor

Monitor USAspending federal awards, competitor wins, contract modifications, and deobligations with fit scoring, persistent alerts, and source links.

- **URL**: https://apify.com/blaidlink/usaspending-competitor-award-intelligence.md
- **Developed by:** [Blaidlink Labs](https://apify.com/blaidlink) (community)
- **Categories:** Automation, Developer tools, Other
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event + usage

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/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/docs.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.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/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

## USAspending Competitor Award & Modification Monitor

> **Unofficial tool:** This Actor is built by Blaidlink and is not affiliated with, sponsored by, or endorsed by USAspending.gov, the U.S. Department of the Treasury, or the U.S. government. Verify material decisions against the linked official award record.

Turn official federal spending transactions into competitor and recompete intelligence. The Actor searches the credential-free USAspending API, scores activity against your target companies, agencies, NAICS codes, PSC codes, and keywords, then preserves an account-isolated baseline for scheduled change detection.

### What makes this different

Raw award search is not the same as an alert. A date-filtered USAspending response can include modifications to old contracts, so this Actor does not label every returned record as a new award. It distinguishes base awards, modifications first encountered during onboarding, later modifications, deobligations, and unchanged repeat scans.

Use it to:

- monitor named competitors' federal award activity;
- detect obligations and deobligations;
- watch target agencies, NAICS codes, and PSC codes;
- identify new modifications without rereading the same awards;
- feed structured results into schedules, webhooks, APIs, spreadsheets, and AI agents.

### Quick start

The default input runs a broad 30-day scan of contracts and IDVs. For useful intelligence, add one or more targeting fields and raise `minFitScore`.

```json
{
  "competitorNames": ["Example Systems"],
  "agencies": ["Department of Veterans Affairs"],
  "naicsCodes": ["541512"],
  "keywords": ["cloud", "modernization"],
  "minFitScore": 20,
  "minAbsTransactionAmount": 10000,
  "maxResults": 50,
  "onlyNewOrChanged": true
}
````

### Change labels

- `new-award`: a base transaction is first seen.
- `first-seen-modification`: an existing award modification is first seen; it is explicitly not called a new award.
- `modified-award`: a later positive or zero-dollar modification replaces the stored latest transaction.
- `deobligation`: a later negative transaction replaces the stored latest transaction.
- `unchanged`: no newer material transaction is observed.

State is stored in the running customer's Apify account, so scheduled baselines are isolated between customers.

### Source and limitations

Data comes from the official U.S. Treasury USAspending API, which currently requires no authorization. USAspending records may be corrected, delayed, aggregated, or incomplete. Treat output as market-research evidence, not as legal, accounting, procurement, or investment advice, and verify consequential decisions against the linked official award page.

### Pricing events

- `matched-award-activity`: a qualifying first-seen award or modification emitted to the dataset.
- `material-award-change`: a qualifying later modification or deobligation emitted after a stored baseline.

The Actor respects Apify run spending limits and stops cleanly if no additional event can be charged.

# Actor input Schema

## `startDate` (type: `string`):

YYYY-MM-DD. Defaults to 30 days before the end date.

## `endDate` (type: `string`):

YYYY-MM-DD. Defaults to today.

## `competitorNames` (type: `array`):

Company names to detect in award recipients.

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

Agency or sub-agency name fragments to prioritize.

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

Exact NAICS codes to prioritize.

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

Exact Product or Service Codes to prioritize.

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

Terms to match across descriptions, recipients, agencies, NAICS, and PSC descriptions.

## `minFitScore` (type: `integer`):

Only activity meeting this deterministic 0–100 fit score is emitted.

## `minAbsTransactionAmount` (type: `number`):

Ignore obligations and deobligations smaller than this absolute dollar amount.

## `includeIdvs` (type: `boolean`):

Include GWACs, IDIQs, schedules, BPAs, and other indefinite-delivery vehicles.

## `onlyNewOrChanged` (type: `boolean`):

Suppress unchanged award activity on later scheduled runs.

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

Maximum recent transactions requested before deduplication and fit filtering.

## `resetBaseline` (type: `boolean`):

Treat the latest matching transactions as first-seen and replace stored award state.

## Actor input object example

```json
{
  "competitorNames": [],
  "agencies": [],
  "naicsCodes": [],
  "pscCodes": [],
  "keywords": [],
  "minFitScore": 0,
  "minAbsTransactionAmount": 0,
  "includeIdvs": true,
  "onlyNewOrChanged": true,
  "maxResults": 25,
  "resetBaseline": false
}
```

# 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("blaidlink/usaspending-competitor-award-intelligence").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("blaidlink/usaspending-competitor-award-intelligence").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 '{}' |
apify call blaidlink/usaspending-competitor-award-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=blaidlink/usaspending-competitor-award-intelligence",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "USAspending Federal Awards & Competitor Monitor",
        "description": "Monitor USAspending federal awards, competitor wins, contract modifications, and deobligations with fit scoring, persistent alerts, and source links.",
        "version": "0.1",
        "x-build-id": "cfeQSrJifkhDDvTiy"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/blaidlink~usaspending-competitor-award-intelligence/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-blaidlink-usaspending-competitor-award-intelligence",
                "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/blaidlink~usaspending-competitor-award-intelligence/runs": {
            "post": {
                "operationId": "runs-sync-blaidlink-usaspending-competitor-award-intelligence",
                "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/blaidlink~usaspending-competitor-award-intelligence/run-sync": {
            "post": {
                "operationId": "run-sync-blaidlink-usaspending-competitor-award-intelligence",
                "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": {
                    "startDate": {
                        "title": "Action date from",
                        "type": "string",
                        "description": "YYYY-MM-DD. Defaults to 30 days before the end date."
                    },
                    "endDate": {
                        "title": "Action date to",
                        "type": "string",
                        "description": "YYYY-MM-DD. Defaults to today."
                    },
                    "competitorNames": {
                        "title": "Competitor or recipient names",
                        "type": "array",
                        "description": "Company names to detect in award recipients.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "agencies": {
                        "title": "Target awarding agencies",
                        "type": "array",
                        "description": "Agency or sub-agency name fragments to prioritize.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "naicsCodes": {
                        "title": "NAICS codes",
                        "type": "array",
                        "description": "Exact NAICS codes to prioritize.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "pscCodes": {
                        "title": "PSC codes",
                        "type": "array",
                        "description": "Exact Product or Service Codes to prioritize.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "keywords": {
                        "title": "Award keywords",
                        "type": "array",
                        "description": "Terms to match across descriptions, recipients, agencies, NAICS, and PSC descriptions.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "minFitScore": {
                        "title": "Minimum fit score",
                        "minimum": 0,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Only activity meeting this deterministic 0–100 fit score is emitted.",
                        "default": 0
                    },
                    "minAbsTransactionAmount": {
                        "title": "Minimum absolute transaction amount",
                        "minimum": 0,
                        "type": "number",
                        "description": "Ignore obligations and deobligations smaller than this absolute dollar amount.",
                        "default": 0
                    },
                    "includeIdvs": {
                        "title": "Include IDVs and contract vehicles",
                        "type": "boolean",
                        "description": "Include GWACs, IDIQs, schedules, BPAs, and other indefinite-delivery vehicles.",
                        "default": true
                    },
                    "onlyNewOrChanged": {
                        "title": "Only emit first-seen or changed awards",
                        "type": "boolean",
                        "description": "Suppress unchanged award activity on later scheduled runs.",
                        "default": true
                    },
                    "maxResults": {
                        "title": "Maximum API transactions",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum recent transactions requested before deduplication and fit filtering.",
                        "default": 25
                    },
                    "resetBaseline": {
                        "title": "Reset persistent baseline",
                        "type": "boolean",
                        "description": "Treat the latest matching transactions as first-seen and replace stored award state.",
                        "default": false
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
