# USAspending Federal Awards Tracker (Contracts & Grants) (`nominal_holmium/usaspending-awards-tracker`) Actor

Federal contract and grant awards from the official USAspending.gov API: recipient, amount, agency, NAICS/PSC, CFDA, dates and award links.

- **URL**: https://apify.com/nominal_holmium/usaspending-awards-tracker.md
- **Developed by:** [Gal Peled](https://apify.com/nominal_holmium) (community)
- **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 federal 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/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 Federal Awards Tracker (Contracts & Grants)

See **who is winning US federal money**: new contract awards, IDVs, grants, loans and other assistance, from the official USAspending.gov API.

USAspending.gov is the US Treasury's public record of federal spending. This Actor queries its API with the filters you set (agency, NAICS, PSC, assistance listing, recipient, state, keyword, amount, dates) and returns one clean row per award. No API key is needed and no web pages are scraped.

### What you can do with it

#### Government contracting business development

Get a feed of new contract awards in your NAICS or PSC codes. See which agencies and sub-agencies are buying, from whom, and for how much.

#### Competitor tracking

List the awards a named company wins, by recipient name or UEI, across agencies.

#### Proposal and capture research

Find past awards for similar work by keyword and agency, with amounts, dates and the recipients who hold them.

#### Grant seekers and nonprofits

See which organisations win grants under a given assistance listing (CFDA) number, and how large the awards are.

#### Journalism, research and market signals

Track an agency's spending by keyword, state or award size. Every row links to the award page on usaspending.gov, so each figure can be checked at the source.

### Sample output

One row per award. The values below are an illustration of the row's shape, not a real award:

```json
{
  "awardId": "W91QF425P0001",
  "awardCategory": "contracts",
  "awardType": "PURCHASE ORDER",
  "recipientName": "ACME CORP",
  "recipientUei": "ABC123",
  "amount": 125000.5,
  "description": "IT SERVICES",
  "awardingAgency": "Department of Defense",
  "awardingSubAgency": "Department of the Army",
  "startDate": "2026-11-05",
  "endDate": "2027-11-04",
  "baseObligationDate": null,
  "lastModifiedDate": null,
  "naicsCode": "541512",
  "naicsDescription": "COMPUTER SYSTEMS DESIGN",
  "pscCode": "D310",
  "pscDescription": "IT SUPPORT",
  "cfdaNumber": null,
  "placeOfPerformanceState": null,
  "usaspendingId": "CONT_AWD_W91QF425P0001_9700_-NONE-_-NONE-",
  "url": "https://www.usaspending.gov/award/CONT_AWD_W91QF425P0001_9700_-NONE-_-NONE-"
}
```

NAICS and PSC fields are filled for contracts and IDVs. `cfdaNumber` is filled for grants and other assistance. Export the dataset as JSON, CSV or Excel, or read it through the Apify API.

### Configuration

No input is required: an empty input returns new contract awards of the last 7 days. A typical input:

```json
{
  "awardCategories": ["contracts"],
  "daysBack": 7,
  "dateType": "new_awards_only",
  "awardingAgencies": ["Department of Defense"],
  "naicsCodes": ["541512"],
  "minAmount": 100000,
  "maxResults": 200
}
```

| Input | What it does |
|---|---|
| `awardCategories` | Any of `contracts`, `idvs`, `grants`, `loans`, `direct_payments`, `other`. Default `contracts`. |
| `daysBack` | Awards in the last N days. Default 7. |
| `startDate`, `endDate` | An explicit date range (YYYY-MM-DD) instead of `daysBack`. The earliest supported date is 2007-10-01. |
| `dateType` | Which date the period filters on: `new_awards_only` (default), `action_date`, `last_modified_date`, `date_signed`. |
| `awardingAgencies` | Top-tier agency names exactly as USAspending writes them, e.g. `Department of Health and Human Services`. |
| `naicsCodes`, `pscCodes` | Industry and product/service codes. They apply to contracts and IDVs. |
| `cfdaNumbers` | Assistance listing numbers, e.g. `93.837`. They apply to grants, loans and other assistance. |
| `recipients` | Recipient names or UEIs. |
| `keywords` | Search terms matched across award descriptions and other text. |
| `states` | Place-of-performance states, two-letter codes. |
| `minAmount`, `maxAmount` | Award size limits in dollars. 0 means no limit. |
| `sortBy`, `sortOrder` | `Last Modified Date` (default), `Start Date` or `Award Amount`; `desc` or `asc`. |
| `maxResults` | Cap per award category. Default 200. |

#### A daily feed of new contract awards

Schedule the Actor once a day with `dateType: new_awards_only` and `daysBack: 1`.

#### A weekly feed of grants

Schedule it weekly with `awardCategories: ["grants"]`, `daysBack: 90` and `dateType: last_modified_date`. Grants are reported late, so a short window is often empty.

### Pricing

Pay per result: you pay for each award saved to your dataset. The current price is on the Pricing tab. The Actor respects the maximum charge you set for a run and stops when it is reached.

### Good to know

- The data comes as USAspending publishes it. Contracts appear within days. Grants and other assistance are reported in batches, often a month or more after the award, so use `daysBack` 60-90 or an explicit `startDate` for them.
- Department of Defense contracts are published with a 90-day delay.
- An empty result for a short window is not an error. Widen the dates or loosen the filters.
- USAspending data is in the public domain.
- This Actor is not affiliated with USAspending.gov or the US government.

# Actor input Schema

## `awardCategories` (type: `array`):

Which kinds of awards to fetch: contracts, idvs (indefinite-delivery vehicles), grants, loans, direct_payments, other.

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

Awards in the last N days (ignored when a start date is given). Contracts show up within days. Grants and other assistance are reported weeks late, so use 60-90 for them.

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

Optional. Overrides Days back. Earliest supported is 2007-10-01.

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

Optional. Defaults to today.

## `dateType` (type: `string`):

Which date the period filters on. 'New awards only' gives a feed of awards whose first action falls in the period.

## `awardingAgencies` (type: `array`):

Top-tier agency names exactly as USAspending writes them, e.g. "Department of Defense", "Department of Health and Human Services".

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

Search terms matched across award descriptions and other text, e.g. "cybersecurity".

## `recipients` (type: `array`):

Track specific companies or organisations.

## `states` (type: `array`):

Two-letter state codes, e.g. VA, TX.

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

e.g. 541512. Applies to contracts and IDVs.

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

Product/service codes, e.g. D310. Applies to contracts and IDVs.

## `cfdaNumbers` (type: `array`):

e.g. 93.837. Applies to grants, loans and other assistance.

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

Skip awards below this amount. 0 = no minimum.

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

Skip awards above this amount.

## `sortBy` (type: `string`):

Order of results within each category. Last Modified Date (default) shows the most recently updated awards first; Start Date can put awards that start next year at the top.

## `sortOrder` (type: `string`):

desc = newest or largest first.

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

Cap per award category.

## Actor input object example

```json
{
  "awardCategories": [
    "contracts"
  ],
  "daysBack": 7,
  "dateType": "new_awards_only",
  "minAmount": 0,
  "maxAmount": 0,
  "sortBy": "Last Modified Date",
  "sortOrder": "desc",
  "maxResults": 200
}
```

# Actor output Schema

## `awards` (type: `string`):

All saved awards as JSON from the default dataset.

# 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 = {
    "awardCategories": [
        "contracts"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nominal_holmium/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 = { "awardCategories": ["contracts"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nominal_holmium/usaspending-awards-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/lYWeKwXcgVIcgkOC5/builds/aoR7dtbF6XjNxZNko/openapi.json
