# USAspending Contract Radar (`colt2822/usaspending-contract-radar`) Actor

Search federal contract, grant and loan awards on USAspending.gov by keyword, NAICS code, recipient or agency. Clean rows with amounts, dates and award links.

- **URL**: https://apify.com/colt2822/usaspending-contract-radar.md
- **Developed by:** [Colton Mcclain](https://apify.com/colt2822) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 award returneds

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/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

## USAspending Contract Radar

**Find who is winning federal awards in your market, straight from USAspending.gov.**

### What problem does it solve?

GovTech sellers and analysts need recent federal awards by topic, NAICS or agency, but the USAspending API takes real effort to query and normalise.

### What it does

- Queries the official USAspending API with your keyword, NAICS, recipient, agency, date and amount filters.
- Returns normalised rows with amount, dates, agency and a link to each award.
- Covers contracts, IDVs, grants or loans (one category per run).

### Pricing (pay per event)

| Event | Price |
|---|---|
| Actor start (once per run, per GB of memory, minimum one) | $0.0050 |
| Award returned (per award returned) | $0.0020 |

You pay only for the events above plus nothing else from ELYRAON; Apify platform usage is covered by the event prices. The start event is charged on every run, including a run rejected for invalid input (nothing else is charged in that case). If you set a maximum charge per run, the Actor stops when it is reached and reports `PARTIAL_MAX_CHARGE` in the OUTPUT record, so you are never silently billed beyond your cap and never told a partial result is complete.

### Input

| Field | Title | Required | Description |
|---|---|---|---|
| `keywords` | Keywords | no | Match in award descriptions. |
| `naics_codes` | NAICS codes | no | 2-6 digit NAICS codes, e.g. 541512. |
| `recipient` | Recipient name contains | no | Company or organisation name text. |
| `awarding_agency` | Awarding agency (top-tier) | no | Exact top-tier agency name, e.g. Department of Defense. |
| `award_type` | Award type | no | Prime award category. |
| `start_date` | Start date (YYYY-MM-DD) | no | Default: 90 days before end date. |
| `end_date` | End date (YYYY-MM-DD) | no | Default: today. |
| `min_amount` | Minimum award amount (USD) | no | Only awards at or above this amount. |
| `sort_by` | Sort by | no | Sorted descending. |
| `limit` | Max awards | no | You are charged per award returned. |

Example input:

```json
{
  "keywords": [
    "cybersecurity"
  ],
  "naics_codes": [
    "541512"
  ],
  "limit": 25
}
```

### Output

Results go to the run's default dataset (download as JSON, CSV or Excel). Each item:

| Field | Type | Description |
|---|---|---|
| `award_id` | string | Award ID. |
| `recipient_name` | string | Recipient. |
| `award_amount` | number | Amount in USD. |
| `description` | string | Award description. |
| `awarding_agency` | string | Awarding agency. |
| `start_date` | string | Start date. |
| `end_date` | string | End date. |
| `contract_type` | string | Award type. |
| `usaspending_url` | string | Link to the award on USAspending.gov. |

Example item:

```json
{
  "award_id": "693JJ926P000007",
  "recipient_name": "EXAMPLE INC",
  "award_amount": 25000.0,
  "awarding_agency": "Department of Transportation"
}
```

The key-value store holds `OUTPUT` (run summary: status, counts, warnings, limitations, version, source commit) and `REPORT.md` (readable summary). `OUTPUT.status` is `SUCCEEDED`, `PARTIAL_MAX_CHARGE`, `PARTIAL_RESULT_LIMIT` or `FAILED` (with a structured `error` code/message/field). Invalid or empty input fails the run immediately with an explanation and returns no results.

### Use from code

```bash
curl -X POST "https://api.apify.com/v2/acts/colt2822~usaspending-contract-radar/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" -d '{"keywords": ["cybersecurity"], "naics_codes": ["541512"], "limit": 25}'
```

```python
from apify_client import ApifyClient
run = ApifyClient("$APIFY_TOKEN").actor("colt2822/usaspending-contract-radar").call(run_input={"keywords": ["cybersecurity"], "naics_codes": ["541512"], "limit": 25})
```

This Actor can also be called by AI agents through the Apify MCP server (https://mcp.apify.com), which exposes Actors as tools.

### Limitations

- Prime awards only; no subawards.
- Data is as reported to USAspending and can lag the actual award date.
- Source: U.S. Treasury, Bureau of the Fiscal Service (public domain). Max 1,000 awards per run.

### Support

Questions or problems: https://elyraon.com.co/contact/ (ELYRAON). Source revision: `a4e348f`. Actor version 1.0.

# Actor input Schema

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

Match in award descriptions.

## `naics_codes` (type: `array`):

2-6 digit NAICS codes, e.g. 541512.

## `recipient` (type: `string`):

Company or organisation name text.

## `awarding_agency` (type: `string`):

Exact top-tier agency name, e.g. Department of Defense.

## `award_type` (type: `string`):

Prime award category.

## `start_date` (type: `string`):

Default: 90 days before end date.

## `end_date` (type: `string`):

Default: today.

## `min_amount` (type: `number`):

Only awards at or above this amount.

## `sort_by` (type: `string`):

Sorted descending.

## `limit` (type: `integer`):

You are charged per award returned.

## Actor input object example

```json
{
  "keywords": [
    "cybersecurity"
  ],
  "award_type": "contracts",
  "sort_by": "Start Date",
  "limit": 5
}
```

# Actor output Schema

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

No description

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

No description

## `report` (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 = {
    "keywords": [
        "cybersecurity"
    ],
    "limit": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("colt2822/usaspending-contract-radar").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 = {
    "keywords": ["cybersecurity"],
    "limit": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("colt2822/usaspending-contract-radar").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 '{
  "keywords": [
    "cybersecurity"
  ],
  "limit": 5
}' |
apify call colt2822/usaspending-contract-radar --silent --output-dataset

```

## MCP server setup

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

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/QbGD4u7H00WJfO637/builds/gaGE7CT9nvZeBwc0h/openapi.json
