# US Federal Contract Awards Scraper (USAspending.gov) (`oddsdesk/usaspending-federal-awards`) Actor

Who is winning US federal contracts and grants, from the official USAspending.gov API: recipient, UEI, amount, agency, NAICS, PSC, description, location and dates. Filter by keyword, agency, NAICS, PSC, state, recipient and minimum amount.

- **URL**: https://apify.com/oddsdesk/usaspending-federal-awards.md
- **Developed by:** [Jakob](https://apify.com/oddsdesk) (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 $2.00 / 1,000 result rows

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

**US Federal Contract Awards Scraper** shows who is winning US federal money, from the official **USAspending.gov** API: award ID, recipient and UEI, amount and outlays, awarding and funding agency, NAICS and PSC codes, description, recipient location, place of performance and dates, with a link to each award. Works for contracts, contract vehicles (IDVs), grants, loans and direct payments.

### What you can do with it

- **Government contractors (GovCon):** find teaming partners and competitors, and see which agencies buy what you sell.
- **B2B sales:** companies that just won federal contracts are hiring and buying.
- **Journalists and researchers:** follow federal spending by agency, state or industry.

### How to use it

1. Pick an **Award type** and set **Activity within (days)**.
2. Optional: keywords, agencies, NAICS, PSC, states, recipient name, minimum amount.
3. Click **Start**. Results are sorted by award amount, largest first.

**Example input**

```json
{
  "keywords": [
    "cybersecurity"
  ],
  "withinDays": 30,
  "maxItems": 20
}
```

### What you get

| Field | Meaning |
|---|---|
| `awardId` | Award ID (PIID/FAIN) |
| `recipient` | Recipient company |
| `recipientUei` | Recipient UEI |
| `amount` | Award amount (obligated, USD) |
| `outlays` | Total outlays (USD) |
| `description` | Description |
| `awardType` | Award type |
| `awardingAgency` | Awarding agency |
| `awardingSubAgency` | Awarding sub-agency |
| `fundingAgency` | Funding agency |
| `naicsCode` | NAICS code |
| `naicsDescription` | NAICS description |
| `pscCode` | Product/service code |
| `pscDescription` | PSC description |
| `assistanceListing` | Assistance listing (CFDA), grants only |
| `recipientCity` | Recipient city |
| `recipientState` | Recipient state |
| `recipientZip` | Recipient ZIP |
| `recipientCountry` | Recipient country |
| `placeOfPerformanceState` | Place of performance state |
| `startDate` | Period of performance start |
| `endDate` | Period of performance end |
| `firstObligationDate` | Base obligation date |
| `lastModified` | Last modified |
| `url` | Link to the record on the official site |
| `fetchedAt` | When this Actor fetched the row |

**Example row (real output)**

```json
{
  "awardId": "1333LB21F00000320",
  "recipient": "IRON VINE SECURITY LLC",
  "recipientUei": "UL2BFA85ME72",
  "amount": 104028980.33,
  "outlays": 90501156.26,
  "description": "ENTERPRISE CYBERSECURITY SUPPORT SERVICES",
  "awardType": "DELIVERY ORDER",
  "awardingAgency": "Department of Commerce",
  "awardingSubAgency": "U.S. Census Bureau",
  "fundingAgency": "Department of Commerce",
  "naicsCode": "541519",
  "naicsDescription": "OTHER COMPUTER RELATED SERVICES",
  "pscCode": "DD01",
  "pscDescription": "IT AND TELECOM - SERVICE DELIVERY SUPPORT SERVICES: ITSM, OPERATIONS CENTER, PROJECT/PM (LABOR)",
  "assistanceListing": null,
  "recipientCity": "FAIRFAX",
  "recipientState": "VA",
  "recipientZip": "22031",
  "recipientCountry": "UNITED STATES",
  "placeOfPerformanceState": "MD",
  "startDate": "2021-09-28",
  "endDate": "2027-03-27",
  "firstObligationDate": "2021-09-28",
  "lastModified": "2026-10-22 11:40:10",
  "url": "https://www.usaspending.gov/award/CONT_AWD_1333LB21F00000320_1323_47QTCA19D00HF_4732",
  "fetchedAt": "2026-11-10T08:15:22Z"
}
```

### Pricing

You pay per result: **$2.00 per 1,000 rows** ($0.002 per row), plus a small Apify start fee per run. Set **Max results** to cap the cost of any run. There's no monthly rental.

### Run it on a schedule

Most people use this Actor as a feed. In Apify Console, open **Schedules**, pick this Actor and a time (daily is typical), and connect an integration to send new rows to **Google Sheets, Slack, email, Zapier, Make, n8n or a webhook**. You can also call it from your own code with the [Apify API](https://docs.apify.com/api/v2) or the Apify Python and JavaScript clients, or let an AI agent call it through the Apify MCP server.

### Good to know

- "Activity within" means any action on the award in that window, so long-running contracts with a recent modification also appear. Use **Min award amount** and keywords to focus.
- Grants data reaches USAspending with a delay of several weeks; use 90 days or more for grants.

### Is this allowed?

This Actor only reads **public US federal spending data from the official USAspending.gov API (public domain)**. It does not log in anywhere or bypass any access control, and it is built to return business data, not personal data about individuals. You are responsible for using the data in line with the source's terms and the laws that apply to you (for example GDPR and anti-spam rules if you use company contact data for outreach).

*Not affiliated with or endorsed by the US Treasury or USAspending.gov. Data is provided as-is from the official source.*

### Questions, bugs, ideas

Open an issue on the **Issues** tab and I'll look into it. If a source changes and something breaks, I fix it; Apify also tests this Actor automatically every day. Feature requests (a new field, a new filter, another source) are welcome.

More data tools from the same developer: [apify.com/oddsdesk](https://apify.com/oddsdesk).

# Actor input Schema

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

Which kind of federal award.

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

Award description keywords, e.g. cybersecurity, janitorial.

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

Top-tier agency names exactly as on USAspending, e.g. Department of Defense, Department of Veterans Affairs.

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

e.g. 541512 (computer systems design), 236220.

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

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

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

Two-letter states, e.g. VA, MD.

## `recipient` (type: `string`):

Search awards to a specific company.

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

Skip smaller awards.

## `withinDays` (type: `integer`):

Awards with an action in the last N days. Grants data lags by several weeks, so use 90+ for grants.

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

Maximum number of rows to return. You pay per row, so this also caps your cost.

## Actor input object example

```json
{
  "awardType": "contracts",
  "withinDays": 30,
  "maxItems": 200
}
```

# Actor output Schema

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

One row per result, as described in the README.

# 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 = {};

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

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

```

## MCP server setup

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

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/pRVbBPJr0oYR8DQ48/builds/j79riXisNgvW1FstJ/openapi.json
