# USAspending.gov Federal Awards Tracker (`straightforward_hydra/usaspending-awards-tracker`) Actor

Track who won US federal government money — contracts and grants — with amounts, agencies, recipients and dates, from the official USAspending.gov API. No API key needed.

- **URL**: https://apify.com/straightforward\_hydra/usaspending-awards-tracker.md
- **Developed by:** [Dev D](https://apify.com/straightforward_hydra) (community)
- **Categories:** Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 awards

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

## USAspending.gov Federal Awards Tracker 🇺🇸

**Track who won US federal government money — contracts and grants — with amounts, agencies and dates, straight from the official USAspending.gov API. No API key required.**

Every dollar the US federal government awards is published on **USAspending.gov**. This Actor searches those awards by keyword, recipient, agency, industry, state, amount and date range, and returns clean, structured records — who got the money, how much, from which agency, for what.

> This is the **complement to SAM.gov**: SAM lists *opportunities to bid on*; USAspending shows the *awards that were actually made*. Official open API — clean liability profile.

---

### What you can do with it

- 💰 **See who won** — track contract and grant awards to any company or sector.
- 🕵️ **Competitor intelligence** — which competitors are winning federal work, and how much.
- 🎯 **Sales targeting** — find well-funded recipients and the agencies that buy.
- 📊 **Market research** — spending by agency, industry (NAICS/PSC), state and time.
- 📈 **Trend analysis** — feed a dashboard of federal awards over time.

### Features

- ✅ **No API key** — works out of the box.
- ✅ **Contracts and grants** — pick the award category; fields adapt automatically.
- ✅ **Powerful filters** — keyword, recipient, agency, NAICS/PSC, state, amount range, dates.
- ✅ **Clean output** — recipient, amount, agency, sub-agency, type, dates, direct USAspending link.
- ✅ **Low-maintenance** — official REST API with automatic retries.

---

### Input

| Field | Description |
|---|---|
| **Award category** | Contracts or Grants / financial assistance. |
| **Keywords** | Free-text over recipient + description. |
| **Recipient name** | e.g. `Lockheed Martin`. |
| **Awarding agency** | e.g. `Department of Defense`. |
| **NAICS / PSC codes** | Industry / product-service codes (contracts). |
| **Place of performance state** | e.g. `CA`, `TX`, `VA`. |
| **Min / Max award amount** | USD amount range. |
| **Lookback days** or **Date from/to** | Time window (by action date). |
| **Max results** | Cap the number of awards. |

#### Example — big DoD cybersecurity contracts, last 2 years

```json
{
  "awardCategory": "contracts",
  "keywords": "cybersecurity",
  "awardingAgency": "Department of Defense",
  "minAmount": 1000000,
  "daysBack": 730,
  "maxResults": 500
}
````

#### Example — grants a recipient received

```json
{
  "awardCategory": "grants",
  "recipientName": "Johns Hopkins University",
  "daysBack": 365
}
```

### Output

Each row is one award:

```json
{
  "award_id": "HT940216C0001",
  "recipient_name": "HUMANA GOVERNMENT BUSINESS INC",
  "award_amount": 51269205263.03,
  "awarding_agency": "Department of Defense",
  "awarding_sub_agency": "Defense Health Agency",
  "award_type": "DEFINITIVE CONTRACT",
  "start_date": "2016-08-01",
  "end_date": "2025-12-31",
  "description": "IGF::OT::IGF",
  "place_of_performance_state": "KY",
  "naics_code": "524114",
  "naics_description": "DIRECT HEALTH AND MEDICAL INSURANCE CARRIERS",
  "psc_code": "Q201",
  "psc_description": "MEDICAL- MANAGED HEALTHCARE",
  "assistance_listing": "",
  "recipient_id": "1068e466-707d-6b6f-367f-0255fab79b8c-C",
  "award_url": "https://www.usaspending.gov/award/CONT_AWD_HT940216C0001"
}
```

### Run it on a schedule

Schedule the Actor to capture new awards in your sector, and connect a **Slack / email / webhook / Google Sheets** integration to route them into your CRM or intelligence dashboard.

### Notes & limitations

- Uses the official USAspending.gov open API — no key needed.
- Each search can page through the first ~10,000 awards (API cap); narrow with filters for larger populations.
- Contracts and grants expose slightly different fields (NAICS/PSC for contracts, Assistance Listing for grants).
- This is **factual public spending data**.

***

#### Keywords

USAspending scraper, federal spending, government contracts, federal awards, who won government contracts, contract awards, federal grants, government spending data, USAspending API, GovCon, competitor intelligence, agency spending, NAICS PSC, recipient awards, federal procurement, award amounts, government money, spending analysis, federal contract data, public spending.

# Actor input Schema

## `awardCategory` (type: `string`):

Contracts (procurement) or Grants (financial assistance). Each returns the fields relevant to that category.

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

Free-text search across recipient and award description, e.g. "cybersecurity" or "solar". Leave empty for all.

## `recipientName` (type: `string`):

Filter to a specific recipient / awardee, e.g. "Lockheed Martin". Leave empty for all.

## `awardingAgency` (type: `string`):

Filter by top-tier awarding agency, e.g. "Department of Defense", "Department of Health and Human Services". Leave empty for all.

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

Filter contracts by NAICS industry code, e.g. 541512. Applies to Contracts only.

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

Filter contracts by Product/Service Code, e.g. D310. Applies to Contracts only.

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

Two-letter US state code where the work is performed, e.g. CA, TX, VA. Leave empty for all.

## `minAmount` (type: `integer`):

Only awards worth at least this much, e.g. 1000000. Leave empty for no minimum.

## `maxAmount` (type: `integer`):

Only awards worth at most this much. Leave empty for no maximum.

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

How many days back (by award action date) to search. Ignored if you set explicit dates below.

## `dateFrom` (type: `string`):

Explicit start date, format YYYY-MM-DD. Overrides Lookback days.

## `dateTo` (type: `string`):

Explicit end date, format YYYY-MM-DD. Overrides Lookback days.

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

Stop after this many awards. Leave empty for no limit (up to the API's ~10,000-record paging cap per search).

## Actor input object example

```json
{
  "awardCategory": "contracts",
  "keywords": "cybersecurity",
  "daysBack": 365,
  "maxResults": 100
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("straightforward_hydra/usaspending-awards-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 = { "keywords": "cybersecurity" }

# Run the Actor and wait for it to finish
run = client.actor("straightforward_hydra/usaspending-awards-tracker").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 '{
  "keywords": "cybersecurity"
}' |
apify call straightforward_hydra/usaspending-awards-tracker --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "USAspending.gov Federal Awards Tracker",
        "description": "Track who won US federal government money — contracts and grants — with amounts, agencies, recipients and dates, from the official USAspending.gov API. No API key needed.",
        "version": "0.1",
        "x-build-id": "ohYxulwDv9yTFTwNO"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/straightforward_hydra~usaspending-awards-tracker/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-straightforward_hydra-usaspending-awards-tracker",
                "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/straightforward_hydra~usaspending-awards-tracker/runs": {
            "post": {
                "operationId": "runs-sync-straightforward_hydra-usaspending-awards-tracker",
                "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/straightforward_hydra~usaspending-awards-tracker/run-sync": {
            "post": {
                "operationId": "run-sync-straightforward_hydra-usaspending-awards-tracker",
                "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": {
                    "awardCategory": {
                        "title": "Award category",
                        "enum": [
                            "contracts",
                            "grants"
                        ],
                        "type": "string",
                        "description": "Contracts (procurement) or Grants (financial assistance). Each returns the fields relevant to that category.",
                        "default": "contracts"
                    },
                    "keywords": {
                        "title": "Keywords",
                        "type": "string",
                        "description": "Free-text search across recipient and award description, e.g. \"cybersecurity\" or \"solar\". Leave empty for all."
                    },
                    "recipientName": {
                        "title": "Recipient name",
                        "type": "string",
                        "description": "Filter to a specific recipient / awardee, e.g. \"Lockheed Martin\". Leave empty for all."
                    },
                    "awardingAgency": {
                        "title": "Awarding agency",
                        "type": "string",
                        "description": "Filter by top-tier awarding agency, e.g. \"Department of Defense\", \"Department of Health and Human Services\". Leave empty for all."
                    },
                    "naicsCodes": {
                        "title": "NAICS codes (contracts)",
                        "type": "array",
                        "description": "Filter contracts by NAICS industry code, e.g. 541512. Applies to Contracts only.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "pscCodes": {
                        "title": "PSC codes (contracts)",
                        "type": "array",
                        "description": "Filter contracts by Product/Service Code, e.g. D310. Applies to Contracts only.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "state": {
                        "title": "Place of performance state",
                        "type": "string",
                        "description": "Two-letter US state code where the work is performed, e.g. CA, TX, VA. Leave empty for all."
                    },
                    "minAmount": {
                        "title": "Minimum award amount (USD)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only awards worth at least this much, e.g. 1000000. Leave empty for no minimum."
                    },
                    "maxAmount": {
                        "title": "Maximum award amount (USD)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only awards worth at most this much. Leave empty for no maximum."
                    },
                    "daysBack": {
                        "title": "Lookback days",
                        "minimum": 1,
                        "maximum": 3650,
                        "type": "integer",
                        "description": "How many days back (by award action date) to search. Ignored if you set explicit dates below.",
                        "default": 365
                    },
                    "dateFrom": {
                        "title": "Date from (advanced)",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                        "type": "string",
                        "description": "Explicit start date, format YYYY-MM-DD. Overrides Lookback days."
                    },
                    "dateTo": {
                        "title": "Date to (advanced)",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                        "type": "string",
                        "description": "Explicit end date, format YYYY-MM-DD. Overrides Lookback days."
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Stop after this many awards. Leave empty for no limit (up to the API's ~10,000-record paging cap per search).",
                        "default": 100
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
