# USAspending Contract Awards Scraper: US Federal Contracts (`datadesk-io/usaspending-contract-awards-scraper`) Actor

Scrape US federal contract awards from USAspending.gov: contractor, UEI, amount, agency, NAICS, PSC, place of performance, dates and link. Filter by keyword, NAICS, state, amount. Find winning contractors and buyers. $1.50 per 1,000 awards.

- **URL**: https://apify.com/datadesk-io/usaspending-contract-awards-scraper.md
- **Developed by:** [DataDesk](https://apify.com/datadesk-io) (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 $1.20 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Awards Scraper

Find **who wins US federal contracts**, from which agency, for how much. Pulls awards from **USAspending.gov**, the **official US government spending database**. Each record has **contractor name and UEI, award amount, awarding and funding agency, award type, NAICS and PSC codes, place of performance, start and end dates, description and link**. Filter by **keyword, NAICS, PSC, state, amount and date**. Also supports IDVs, grants, loans and direct payments. No login, no key. **$1.50 per 1,000 awards.**

### Try it now (one click)

1. Click **Start**. The prefilled input is a small test: in our latest check (Nov 13, 2026) it returned **20 awards in about 2 seconds**.
2. Change the input to what you need (search terms, filters, max results).
3. Download the results as CSV, Excel or JSON, or get them via API, webhooks, Make or Zapier.

**Price example:** 100 awards = **$0.155**, 1,000 awards = **$1.505** ($1.50 per 1,000 awards + $0.005 per run). Silver and Gold plan users pay 10% and 20% less per award. Apify's free plan includes $5 of usage every month, enough for about 3,330 awards. Runs that find nothing are not charged.

#### Sample of real results

*Real rows from a local test run on Nov 13, 2026 (some columns). Each award also includes a link to the source and the other fields listed below.*

| Recipient | Amount USD | Awarding agency | Award type | NAICS |
|---|---|---|---|---|
| ASSOCIATION OF UNIVERSITIES FOR RESEARCH I… | 2,544,388,480 | National Aeronautics and Space Administrat… | DEFINITIVE CONTRACT | OPTICAL INSTRUMENT AND LENS MANUFACTURING |
| PERATON INC. | 1,526,163,709.96 | National Aeronautics and Space Administrat… | DEFINITIVE CONTRACT | ALL OTHER TELECOMMUNICATIONS |
| SCIENCE APPLICATIONS INTERNATIONAL CORPORA… | 1,426,694,597.2 | General Services Administration | DELIVERY ORDER | RESEARCH AND DEVELOPMENT IN THE PHYSICAL, … |

### What you get

| Field group | Fields |
|---|---|
| Contractor | recipient, recipientUei |
| Money and agency | amountUsd, awardingAgency, awardingSubAgency, fundingAgency, awardType |
| Classification | naicsCode, naics, pscCode, psc |
| Place and dates | state, country, startDate, endDate, lastModified |
| Content and link | description, awardId, generatedId, url |

### Sources and coverage

| Source | Coverage | Data |
|---|---|---|
| **USAspending.gov** (`api.usaspending.gov`) | US federal spending since FY2008, official open API | Awards, recipients, agencies, classifications |

### How to use it

1. Click **Try for free** (or **Start**): the prefilled input runs a quick test.
2. Adjust the filters (see examples below).
3. Click **Start** and wait a few seconds.
4. Open the **Output** tab and export as **JSON, CSV, Excel, XML or HTML**, or read the dataset via API.

### Input examples

**Software contracts last 30 days:**

```json
{"keywords": ["software"], "daysBack": 30, "maxAwards": 100}
```

**Large IT awards in Virginia:**

```json
{"naicsCodes": ["541512"], "states": ["VA"], "minAmount": 1000000, "maxAwards": 200}
```

**Daily alert for cybersecurity awards:**

```json
{"keywords": ["cybersecurity"], "daysBack": 2, "onlyNewAwards": true, "alertsKey": "cyber"}
```

#### Input fields

| Field | Type | Description |
|---|---|---|
| `keywords` | array | Words searched in award descriptions, e.g. software, cybersecurity, janitorial. |
| `awardKind` | string | contracts (default), idv (IDV vehicles), grants, loans or direct-payments. |
| `daysBack` | integer | Only awards with an action in the last N days (ignored if start date is set). |
| `startDate` | string | Optional YYYY-MM-DD, overrides daysBack. |
| `endDate` | string | Optional YYYY-MM-DD (default today). |
| `naicsCodes` | array | e.g. 541511 (custom programming), 541512, 236220. Prefixes work. |
| `pscCodes` | array | Product/service codes, e.g. DA01, R425. |
| `recipientNames` | array | Search by contractor name, e.g. Booz Allen, Palantir. |
| `states` | array | Two-letter US state codes, e.g. VA, CA, TX. |
| `minAmount` | integer | Only awards of at least this amount. |
| `maxAmount` | integer | Only awards up to this amount. |
| `sortBy` | string | Largest amount first, or newest start date first. |
| `maxAwards` | integer | Stop after this many awards. |
| `onlyNewAwards` | boolean | Return only awards not seen in previous runs with the same alerts key. Schedule daily for alerts. |
| `alertsKey` | string | Name for this alert memory (use a different key per saved search). |

### Output example

*Example values from a local test run.*

```json
{
  "source": "usaspending",
  "awardId": "GSFC0198106DNAS526555",
  "recipient": "ASSOCIATION OF UNIVERSITIES FOR RESEARCH IN ASTRONOMY, INC.",
  "recipientUei": "W1NBN156CYF9",
  "amountUsd": 2544388480.0,
  "awardingAgency": "National Aeronautics and Space Administration",
  "awardingSubAgency": "National Aeronautics and Space Administration",
  "fundingAgency": "National Aeronautics and Space Administration",
  "awardType": "DEFINITIVE CONTRACT",
  "description": "THE PRIMARY ACTIVITIES COVERED BY THIS EFFORT INCLUDE THE FINAL SERVICING MISSION AND SUBSEQUENT OPERATIONS THROUGH END-OF-MISSION. THESE ACTIVITIES INCLUDE: A. SCIENCE PROGRAM IMPLEMENTATION INCLUDING: MISSION PLANNING …",
  "naicsCode": "333314",
  "naics": "OPTICAL INSTRUMENT AND LENS MANUFACTURING",
  "pscCode": "AR21",
  "psc": "R&D- SPACE: SCIENCE/APPLICATIONS (BASIC RESEARCH)",
  "state": "MD",
  "country": "USA",
  "startDate": "1987-09-15",
  "endDate": "2027-11-26",
  "lastModified": "2026-10-30 12:19:34",
  "generatedId": "CONT_AWD_GSFC0198106DNAS526555_8000_-NONE-_-NONE-",
  "url": "https://www.usaspending.gov/award/CONT_AWD_GSFC0198106DNAS526555_8000_-NONE-_-NONE-"
}
```

#### Output fields

| Field | Description |
|---|---|
| `recipient / recipientUei` | Contractor name and unique entity ID |
| `amountUsd` | Award amount in USD |
| `awardingAgency / awardingSubAgency` | Buying agency |
| `awardType` | Contract type, e.g. DEFINITIVE CONTRACT |
| `naics / pscCode` | Industry and product-service classification |
| `state` | Place of performance state |
| `startDate / endDate` | Period of performance |
| `url` | USAspending award page |

### Pricing

Pay-per-event: **$0.005** once per run that saves results + **$0.002 per award** ($1.5 / 1,000). Runs that save nothing are not charged.

| Awards saved | Approx. cost |
|---|---|
| 20 | $0.035 |
| 100 | $0.155 |
| 1,000 | $1.505 |
| 10,000 | $15.005 |

### Use cases

- Sales teams building lead lists of active federal contractors by NAICS and state
- Subcontracting and teaming research
- Competitor and market intelligence on agency spend
- Daily alerts for new awards in a niche

### Integrations / API

Works with the Apify API, Schedules, webhooks, Make, Zapier, n8n and MCP. Example:

```bash
curl "https://api.apify.com/v2/acts/datadesk-io~usaspending-contract-awards-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"keywords": ["software"], "daysBack": 30, "maxAwards": 100}'
```

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("datadesk-io/usaspending-contract-awards-scraper").call(run_input={"keywords": ["software"], "daysBack": 30, "maxAwards": 100})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### MCP

Use this Actor from an MCP client (Cursor, Claude Desktop, etc.) through the Apify MCP server (`datadesk-io/usaspending-contract-awards-scraper`).

### Alerts mode

Turn on the **Only new** option and schedule the Actor daily: each run returns only awards not seen in earlier runs with the same alerts key (nothing is charged when there is nothing new).

### FAQ

**Do I need a key?** No. USAspending is public and the Actor calls it directly.

**Are contact emails included?** No. Use the contractor name with our **company-data-enrichment** or **website-contact-finder** Actors to find a website and emails.

**How fresh is it?** Agencies report on a daily to monthly lag, so very recent actions may be missing.

### Limitations

- Amounts are obligated values as reported by agencies and can be revised.
- Emails and phones are not part of the data.
- Very broad queries are paged 100 at a time; use maxAwards to bound cost.

### Start now

Click **Start** to run the prefilled example, then adjust the input. Missing a field, filter or source? Open an issue on the **Issues** tab and tell us what you need.

### Support

Questions, bugs or a missing field? Email **datadesk.io@proton.me** or open an issue on the Actor page.

***

**ES:** Extrae contratos federales de EE. UU. desde **USAspending.gov**: contratista, UEI, monto, agencia, NAICS, estado. Filtros por palabra, NAICS y monto. **$1,50 / 1.000.**
**PT:** Extrai contratos federais dos EUA do **USAspending.gov**: contratado, UEI, valor, agência, NAICS, estado. **$1,50 / 1.000.**

# Actor input Schema

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

Words searched in award descriptions, e.g. software, cybersecurity, janitorial.

## `awardKind` (type: `string`):

contracts (default), idv (IDV vehicles), grants, loans or direct-payments.

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

Only awards with an action in the last N days (ignored if start date is set).

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

Optional YYYY-MM-DD, overrides daysBack.

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

Optional YYYY-MM-DD (default today).

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

e.g. 541511 (custom programming), 541512, 236220. Prefixes work.

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

Product/service codes, e.g. DA01, R425.

## `recipientNames` (type: `array`):

Search by contractor name, e.g. Booz Allen, Palantir.

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

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

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

Only awards of at least this amount.

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

Only awards up to this amount.

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

Largest amount first, or newest start date first.

## `maxAwards` (type: `integer`):

Stop after this many awards.

## `onlyNewAwards` (type: `boolean`):

Return only awards not seen in previous runs with the same alerts key. Schedule daily for alerts.

## `alertsKey` (type: `string`):

Name for this alert memory (use a different key per saved search).

## Actor input object example

```json
{
  "keywords": [
    "software"
  ],
  "awardKind": "contracts",
  "daysBack": 30,
  "startDate": "1987-09-15",
  "endDate": "2027-11-26",
  "naicsCodes": [
    "541512"
  ],
  "states": [
    "VA"
  ],
  "minAmount": 1000000,
  "sortBy": "amount",
  "maxAwards": 20,
  "onlyNewAwards": true
}
```

# Actor output Schema

## `results` (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": [
        "software"
    ],
    "daysBack": 30,
    "maxAwards": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datadesk-io/usaspending-contract-awards-scraper").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": ["software"],
    "daysBack": 30,
    "maxAwards": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datadesk-io/usaspending-contract-awards-scraper").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": [
    "software"
  ],
  "daysBack": 30,
  "maxAwards": 20
}' |
apify call datadesk-io/usaspending-contract-awards-scraper --silent --output-dataset

```

## MCP server setup

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

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/6aAcvFZbrHI43Kq6y/builds/YtfWXXXgXPVfSNbIW/openapi.json
