# Federal Contract Awards - Who Won (USASpending) (`dennydevelops/federal-contract-awards`) Actor

Newly awarded US federal contracts: who won, how much, which agency, NAICS/PSC and place of performance. Official USASpending.gov data. Pairs with the SAM.gov watcher.

- **URL**: https://apify.com/dennydevelops/federal-contract-awards.md
- **Developed by:** [Musedenny](https://apify.com/dennydevelops) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event + usage

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Federal Contract Awards – Who Won (USASpending)

See **who just won US federal contracts**: the winner, amount, agency and sub-agency, NAICS and PSC codes, place of performance and description, straight from **USASpending.gov**, the government's official spending database.

Use it for competitor tracking ("what did our competitors win this month?"), teaming and subcontracting leads (primes that just won work in your NAICS), market sizing and sales prospecting. It pairs with the SAM.gov Opportunity Watcher, which covers what's open to bid; this tool covers who won.

- **Official data, no key**: USASpending.gov API
- **Filters:** NAICS (prefixes), PSC, place of performance state, awarding agency, winner name, description keywords, minimum amount, contracts and/or IDVs
- **New awards only** by default, skipping modifications to older awards
- **Only new since last run** for daily schedules

### Input

```json
{"naicsCodes": ["5415"], "states": ["TX", "VA"], "minAmount": 250000, "withinDays": 30}
```

Track competitors: `{"recipientKeywords": ["Accenture Federal", "Booz Allen"], "naicsCodes": [], "withinDays": 90}`.

| Field | Default | Notes |
|---|---|---|
| `naicsCodes` | 5415 | 2–6 digits, prefixes work |
| `pscCodes` / `states` / `agencies` | – | |
| `recipientKeywords` | – | Winner names |
| `keywords` | – | Words in the description |
| `minAmount` | – | USD |
| `awardKind` | contracts | contracts, idvs, both |
| `withinDays` | 30 | 1–365 |
| `newAwardsOnly` | true | Skip modifications to older awards |
| `onlyNew` | false | **Turn on for daily schedules** |

### Output

```json
{
  "awardId": "70RTAC26F00000123",
  "recipient": "GOVPLACE, LLC",
  "recipientUei": "XXXXXXXXXXXX",
  "amount": 24500000.0,
  "outlays": 0.0,
  "description": "…",
  "awardType": "DELIVERY ORDER",
  "agency": "Department of Homeland Security",
  "subAgency": "…",
  "awardedDate": "2026-10-29",
  "startDate": "2026-10-29",
  "endDate": "2027-10-28",
  "naics": "541519",
  "naicsDescription": "OTHER COMPUTER RELATED SERVICES",
  "psc": "7E20",
  "pscDescription": "…",
  "placeOfPerformanceState": "DC",
  "placeOfPerformanceZip": "20528",
  "lastModified": "2026-10-30",
  "url": "https://www.usaspending.gov/award/CONT_AWD_…",
  "internalId": "CONT_AWD_…"
}
```

### Pricing (pay per event + usage)

| Event | Price | When |
|---|---|---|
| `apify-actor-start` | $0.001 | Once per run |
| `award` | $0.0012 | One award returned |
| `query` | $0.0003 | Each page of up to 100 awards requested |

Example: two weeks of new computer-services awards (~250) ≈ $0.31. Plus Apify platform usage, typically under $0.001 per run.

# Actor input Schema

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

2-6 digits; prefixes work (5415 = all computer services).

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

Product/service codes, e.g. DF01, R499.

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

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

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

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

## `recipientKeywords` (type: `array`):

Track specific companies, e.g. competitors.

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

Words in the award description.

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

Skip smaller awards.

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

Which award types to include.

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

Awards with any action in this window.

## `newAwardsOnly` (type: `boolean`):

Only awards first obligated in the window (skip modifications to older awards).

## `onlyNew` (type: `boolean`):

Turn ON for daily schedules: each award is returned once per filter set.

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

Cap per run.

## `stateStoreName` (type: `string`):

Named store for only-new state.

## Actor input object example

```json
{
  "naicsCodes": [
    "5415"
  ],
  "awardKind": "contracts",
  "withinDays": 30,
  "newAwardsOnly": true,
  "onlyNew": false,
  "maxResults": 2000,
  "stateStoreName": "federal-contract-awards-state"
}
```

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

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

# Run the Actor and wait for it to finish
run = client.actor("dennydevelops/federal-contract-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 '{
  "naicsCodes": [
    "5415"
  ]
}' |
apify call dennydevelops/federal-contract-awards --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dennydevelops/federal-contract-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/FHU2VadBBG8LDabTn/builds/sfibJ8YYlIedXs8j3/openapi.json
