# USAspending Federal Contracts & Grants Search - Award Data (`wood-between-studio/usaspending-awards-search`) Actor

Search US federal spending awards on USAspending.gov: keywords, award type (contracts, grants, IDVs, loans), agency, recipient, NAICS, state and date filters. Returns award ID, recipient, amount, agency, dates, description and links. Official API. $0.50 per 1,000 awards.

- **URL**: https://apify.com/wood-between-studio/usaspending-awards-search.md
- **Developed by:** [Wood Between Studio](https://apify.com/wood-between-studio) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 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 Federal Contracts and Grants Search

**Search US federal spending awards on USAspending.gov,** the official source of federal contract, grant, loan and IDV data, by keyword, award type, awarding agency, recipient, NAICS code, place of performance and date. Get award ID, recipient and UEI, amount and outlays, agencies, start/end dates, description, NAICS/PSC or assistance listing, and links to the award and recipient pages.

### Why use it?

- **Government contractors:** see who wins contracts in your NAICS codes and at which agencies.
- **Competitor tracking:** follow a competitor's federal awards over time.
- **Grant research:** find grant programs and recipients by topic.
- **Journalism and analysis:** export award data to spreadsheets or BI tools.
- **Official USAspending API** (US Treasury, open data, no key).
- **Cheap and fair:** **$0.50 per 1,000 awards**, no start fee. Failed searches are free.

### Input

| Field | Default | Notes |
|---|---|---|
| `keywords` | | One search per line |
| `awardType` | `contracts` | `idvs`, `grants`, `loans`, `direct_payments`, `other` |
| `agencies` | | Top-tier names, e.g. "Department of Defense" |
| `recipients` | | Company/organization name or UEI |
| `naicsCodes` | | Contracts/IDVs only |
| `states` | | Place of performance, e.g. TX, VA |
| `dateFrom` / `dateTo` | start of last fiscal year / today | YYYY-MM-DD (from 2007-10-01) |
| `minAmount` | | USD |
| `sortBy` | `amount` | or `date` |
| `maxResultsPerSearch` | `100` | up to 10,000 |

```json
{ "keywords": ["cybersecurity"], "awardType": "contracts", "agencies": ["Department of Veterans Affairs"], "dateFrom": "2025-10-01", "maxResultsPerSearch": 500 }
```

### Output

```json
{ "search": "cybersecurity", "awardId": "36C10B23F0346", "recipientName": "MAVERIS LLC", "recipientUei": "NEKWPBM5VT33", "amount": 219083824.48, "totalOutlays": 152667817.06,
  "awardingAgency": "Department of Veterans Affairs", "startDate": "2023-09-29", "endDate": "2027-09-28", "description": "VA CYBERSECURITY OPERATIONS CENTER NEXT GENERATION II (CSOC NG II) SUPPORT",
  "awardType": "DELIVERY ORDER", "naics": "541511 CUSTOM COMPUTER PROGRAMMING SERVICES", "psc": "R499 SUPPORT- PROFESSIONAL: OTHER", "placeOfPerformanceState": "WV",
  "url": "https://www.usaspending.gov/award/CONT_AWD_36C10B23F0346_3600_47QSWA18D008Q_4732", "status": "ok" }
```

### Pricing

Pay per event: **$0.0005 per award** returned ($0.50 per 1,000). No start fee.

### Notes

Data from USAspending.gov (public domain US government data). The search covers awards whose activity falls in your date range. Built by Wood Between Studio. Questions? Open an issue on the Issues tab.

# Actor input Schema

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

One search per line, e.g. "cybersecurity", "janitorial". Leave empty to search by the other filters only.

## `awardType` (type: `string`):

USAspending searches one award group at a time.

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

Top-tier agency names, e.g. "Department of Defense", "Department of Veterans Affairs".

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

Recipient (company or organization) name or UEI to filter by.

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

e.g. 541512 (computer systems design). Contracts only.

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

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

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

YYYY-MM-DD. Default: start of last fiscal year (data from 2007-10-01).

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

YYYY-MM-DD. Default: today.

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

Optional.

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

Order of results.

## `maxResultsPerSearch` (type: `integer`):

Up to 10,000 per keyword.

## Actor input object example

```json
{
  "keywords": [
    "cybersecurity"
  ],
  "awardType": "contracts",
  "sortBy": "amount",
  "maxResultsPerSearch": 100
}
```

# Actor output Schema

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

No description

## `summary` (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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("wood-between-studio/usaspending-awards-search").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("wood-between-studio/usaspending-awards-search").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"
  ]
}' |
apify call wood-between-studio/usaspending-awards-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wood-between-studio/usaspending-awards-search"
        }
    }
}
```

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/2MExrPgRL9MbzEqyQ/builds/VXOCJlHCH9nPlI6Xl/openapi.json
