# USAspending Federal Contracts & Grants Search API (`clearpathdata/usaspending-award-search`) Actor

Find who wins U.S. federal contracts and grants by keyword, NAICS code and date, from the official USAspending.gov API: recipient, amount, agency, description. $3 per 1,000 awards.

- **URL**: https://apify.com/clearpathdata/usaspending-award-search.md
- **Developed by:** [Six Figure Salute](https://apify.com/clearpathdata) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 award records

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 & Grants Search API

Find who wins U.S. federal contracts and grants by keyword, NAICS code and date, from the official USAspending.gov API: recipient, amount, agency, description. $3 per 1,000 awards.

### What does it do?

**USAspending Federal Award Search** finds U.S. federal contracts and grants from the official USAspending.gov API. Search by keyword, NAICS code and date range and get recipient, award amount, awarding agency/sub-agency, description, period of performance and a link to each award.

- ✅ Official public data source: no login, no cookies, no proxies
- ✅ Fast: plain API calls, typical runs finish in seconds
- ✅ Clean, flat JSON / CSV / Excel output, ready for Sheets, BI tools or AI agents
- ✅ Pay only for results: no monthly rental

### Use cases

- **GovCon BD teams:** see who's winning contracts in your NAICS codes.
- **Sales prospecting:** build lead lists of federal contractors.
- **Journalists & analysts:** track spending by topic or agency.

### How to use it

1. Click **Try for free**. The input is prefilled with a working example.
2. Edit the input (see examples below) and click **Start**.
3. Download results as JSON, CSV, Excel or HTML, or pull them via API.

### Input examples

**Defibrillator contracts, FY2026**

```json
{
  "keywords": [
    "defibrillator"
  ],
  "awardTypes": "contracts",
  "startDate": "2025-10-01",
  "endDate": "2026-09-30",
  "maxItems": 50
}
```

### Output

Sample rows:

| Award ID | Recipient Name | Award Amount | Awarding Agency | Start Date | NAICS |
|---|---|---|---|---|---|
| 36C26126P0922 | AFTER ACTION MEDICAL AND DENTAL SUPPLY, LLC | 7681618.84 | Department of Veterans Affairs | 2026-08-05 | {"code": "334510", "description": "ELECTROMEDICAL AND ELECTR |
| 36C25626N0566 | AFTER ACTION MEDICAL AND DENTAL SUPPLY, LLC | 4401574.69 | Department of Veterans Affairs | 2026-06-01 | {"code": "334510", "description": "ELECTROMEDICAL AND ELECTR |
| 36C25925F0430 | AFTER ACTION MEDICAL AND DENTAL SUPPLY, LLC | 4027185.46 | Department of Veterans Affairs | 2025-07-01 | {"code": "334510", "description": "ELECTROMEDICAL AND ELECTR |

Sample JSON record (long fields shortened):

```json
{
  "internal_id": 361091979,
  "Award ID": "36C26126P0922",
  "Recipient Name": "AFTER ACTION MEDICAL AND DENTAL SUPPLY, LLC",
  "Award Amount": 7681618.84,
  "Awarding Agency": "Department of Veterans Affairs",
  "Awarding Sub Agency": "Department of Veterans Affairs",
  "Description": "VISN 21 BUNDLE DEFIBRILLATORS WITH TRADE INS",
  "Start Date": "2026-08-05",
  "End Date": "2026-12-31",
  "NAICS": {
    "code": "334510",
    "description": "ELECTROMEDICAL AND ELECTROTHERAPEUTIC APPARATUS MANUFACTURING"
  },
  "generated_internal_id": "CONT_AWD_36C26126P0922_3600_-NONE-_-NONE-",
  "awarding_agency_id": 561,
  "agency_slug": "department-of-veterans-affairs",
  "url": "https://www.usaspending.gov/award/CONT_AWD_36C26126P0922_3600_-NONE-_-NONE-"
}
```

### Pricing

Pay per event: **$0.003 per award record** ($3.00 per 1,000). No start fee, no monthly rental. Rows for not-found inputs and errors are free.

| Results | Cost |
|---|---|
| 100 award records | $0.30 |
| 1,000 award records | $3.00 |
| 10,000 award records | $30.00 |

Apify's free plan includes monthly platform credit, so you can try it at no cost.

### Integrations

- **Google Sheets:** use Apify's Google Sheets integration, or import the dataset CSV link with `=IMPORTDATA()`.
- **Zapier & Make:** trigger runs and receive the dataset via the official Apify apps.
- **Webhooks & schedules:** run daily or hourly and post results anywhere.
- **AI agents (MCP):** available to Claude, ChatGPT and other agents through the Apify MCP server.
- **API & SDKs:** call from Python, JavaScript or any HTTP client:

```bash
curl -X POST 'https://api.apify.com/v2/acts/clearpathdata~usaspending-award-search/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"keywords": ["defibrillator"], "awardTypes": "contracts", "startDate": "2025-10-01", "endDate": "2026-09-30", "maxItems": 50}'
```

### FAQ

**Contracts or grants?**

Set `awardTypes` to `contracts` or `grants`.

**Data source?**

USAspending.gov public API (U.S. Treasury).

**Something not working?**

Open an issue on the Actor's Issues tab, and it will be fixed quickly.

### More details

Find who's winning federal contracts and grants in your niche, by keyword, NAICS, and date.

#### What it does

Queries the official USAspending.gov API v2 and returns recipient, amount, agency and sub-agency, description, NAICS, dates, and a direct USAspending link. Good for competitor research, lead lists for government sellers, and grant prospecting.

# Actor input Schema

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

Keywords

## `awardTypes` (type: `string`):

Award type

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

NAICS codes (optional)

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

Start date (YYYY-MM-DD)

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

End date (YYYY-MM-DD)

## `maxItems` (type: `integer`):

Max awards

## Actor input object example

```json
{
  "keywords": [
    "defibrillator"
  ],
  "awardTypes": "contracts",
  "naicsCodes": [],
  "startDate": "2025-10-01",
  "endDate": "2026-09-30",
  "maxItems": 100
}
```

# Actor output Schema

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

USAspending awards

# 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": [
        "defibrillator"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("clearpathdata/usaspending-award-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": ["defibrillator"] }

# Run the Actor and wait for it to finish
run = client.actor("clearpathdata/usaspending-award-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": [
    "defibrillator"
  ]
}' |
apify call clearpathdata/usaspending-award-search --silent --output-dataset

```

## MCP server setup

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