# USAspending award lookup — federal awards monitor (`apex-nexus/usa-spending-award-lookup`) Actor

USAspending award lookup for government award prospect research: search recent federal awards by recipient name, UEI, NAICS code or agency; citation-ready rows with award ID, amount, agency and direct USAspending award URL. Public data, keyless, free when empty.

- **URL**: https://apify.com/apex-nexus/usa-spending-award-lookup.md
- **Developed by:** [Valunex](https://apify.com/apex-nexus) (community)
- **Categories:** Business, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0001 / actor start

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 award lookup — federal award, UEI & NAICS lookup for AI assistants

Look up recent federal awards on the public [USAspending](https://www.usaspending.gov/)
API for **government award prospect research** by recipient name, recipient UEI,
NAICS code, awarding agency or keyword. Returns **citation-ready award rows** —
award ID, recipient, UEI, agency, action date, amount, assistance listing (CFDA),
award type, description and a direct USAspending award URL — one row per award,
ready to paste into a spreadsheet or an AI assistant.

**Actor:** `apex-nexus~usa-spending-award-lookup` (Actor id `MSDWCHTcw7hgyHUPs`,
account `apex-nexus`, owner userId `cgh1CqgRIRsjx7PlQ`), public Store listing,
isPublic = true, notice = NONE, categories \[BUSINESS, NEWS], pricing
PAY_PER_EVENT ($0.0001/start + $0.005/award row, 20% Apify margin).
**Store page:** https://apify.com/apex-nexus/usa-spending-award-lookup
**Actor source:** `actor/` (Apify SDK Python project, `main.py`, schemas in
`.actor/`, tests, Dockerfile)
**Default input:** `{"keyword": "health", "maxItems": 25}` — searches recent
federal contracts for awards mentioning "health" and returns up to 25 award rows.

### What it is for

Government-contracting researchers, small-business development centers,
SBIR/grant seekers and capture teams use USAspending to find who the
federal government is awarding contracts, grants and loans to. USAspending
itself is an interactive UI; Apify Store incumbents are paid per award
($0.0002–$0.005 per row) with ≤2 users and 0 bookmarks. This Actor is a
free-to-start, stateless, agent-friendly lookup:

1. You supply optional filters (recipient name, UEI, awarding agency,
   keyword) plus a max row count (default 25, max 100).
2. The Actor queries `https://api.usaspending.gov/api/v2/search/spending_by_award/`
   (public, no API key, no signup) and pages through results.
3. Each matching award is emitted as one citation-ready dataset row with a
   direct `https://www.usaspending.gov/award/{Award ID}` link.

Typical workflows:

- **Recipient prospect research.** `{"recipientName": "Acme Corp"}` → every
  recent federal award to Acme, with amounts, dates and agency.
- **UEI verification.** `{"uei": "ZE6ZM6NKSV43"}` → awards for that exact SAM UEI.
- **Agency watch.** `{"awardingAgency": "Department of Veterans Affairs"}` →
  recent VA awards (default scope: federal contracts; switch
  `awardTypeGroup` to `grants`/`loans` for assistance awards).
- **Keyword discovery.** `{"keyword": "SBIR"}` → recent awards mentioning SBIR.

### What this is NOT

This is explicitly **not a tracker**: there are no checkpoints, no delta
alerts, no watchlist state, and nothing is remembered between runs. Each
run is stateless and independent. It is not a delta monitor — for that
use case see the separate USAspending award *delta monitor* product
(watchlist + checkpoint + alert on new awards), which is a different
function. The Actor is free when there is nothing to return.

### Data sources

Public U.S. government data only, via official USAspending endpoints:

- `https://api.usaspending.gov/api/v2/search/spending_by_award/` — award search (POST; time window + field list required; one award-type group per query)
- `https://api.usaspending.gov/api/v2/references/toptier_agencies/` — agency reference
- Award links: `https://www.usaspending.gov/award/{Award ID}`

No credentials, no proxies, no scraping of anti-bot pages, no commercial
inference (no LLMs) inside the product. Default run: a handful of
requests, well under 5 minutes.

### Search terms (Store discovery)

Users find this Actor on the Apify Store with terms such as:

- usaspending
- federal award
- UEI
- NAICS
- recipient name
- prospect research
- government awards
- USAspending award lookup
- federal award search for agents
- government contract award data
- USAspending award agent
- SAM.gov award watchlist
- federal contracts grants loans lookup

The Store title and description carry the core terms ("USAspending award
lookup", "federal award lookup for AI assistants"); this section lists
them for reference when updating the listing metadata.

### 30-second quickstart

Open https://apify.com/apex-nexus/usa-spending-award-lookup on the Apify Store,
paste the default input below into the input editor and run
(or `POST /v2/actors/MSDWCHTcw7hgyHUPs/runs` with the same body):

```json
{
  "keyword": "health",
  "maxItems": 25
}
```

The run returns up to 25 recent federal award rows — award ID, recipient, UEI,
agency, action date, amount and a direct USAspending URL — typically in seconds.
No API key, signup or scraping needed. Every input field is optional; with no
filters the default run returns the most recently modified federal contracts.

Pricing: PAY_PER_EVENT — $0.0001 per run start plus $0.005 per award row
(20% Apify margin); a run that returns nothing costs only the start fee.

### Input schema (`.actor/input_schema.json`)

Every field is optional; the default run searches keyword `"health"` across
federal contracts and returns up to 25 rows. See [Input](#input) for the full
schema and [Output](#output) for the returned shapes.

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `recipientName` | string | — | Filter by recipient/contractor name (case-insensitive substring). |
| `uei` | string | — | Filter by SAM UEI, exact match, 12 alphanumeric chars (case-insensitive). |
| `awardingAgency` | string | — | Filter by awarding agency name (case-insensitive substring). |
| `naicsCode` | string | — | Filter by NAICS code (2–6 digits); USAspending API `naics_codes` filter plus client-side prefix match. Optional. |
| `state` | string | — | Filter by place-of-performance state (2-letter USPS code, e.g. `CA`); USAspending API `place_of_performance.state` filter plus client-side exact match. Optional. |
| `keyword` | string | `"health"` | Keyword searched across recipient names, award descriptions and award IDs. |
| `maxItems` | integer | `25` | Maximum award rows returned (1–100). |
| `awardTypeGroup` | string | `"contracts"` | Award type group: `contracts` (default), `grants`, `loans`, `idvs`, `otherFinancialAssistance`, `directPayments`. USAspending requires one group per query. |

### Example input → output pairs (live runs)

All three pairs below were run on the live public Actor against the public
USAspending API. Output shown is the first dataset item; `runId` and
`datasetId` cite the evidence run on Apify.

#### Pair 1 — default input: keyword "health", up to 25 rows (verified live run `FBLgzVO3KN3rSeALN`)

Input (verified live run `FBLgzVO3KN3rSeALN`, Actor `MSDWCHTcw7hgyHUPs`,
started `2026-11-06T19:59:16Z` → finished `19:59:20Z` (4.305 s), build `1.1.1`,
dataset `yHR0Ve8R8TlEwS29O`, exit code 0):

```json
{
  "keyword": "health",
  "maxItems": 25
}
```

Output (25 dataset items — citation-ready federal award rows; first item shown;
run `FBLgzVO3KN3rSeALN`, SUCCEEDED):

```json
{
  "awardId": "SPE2DV23F5X8Z",
  "recipientName": "CARDINAL HEALTH 200, LLC",
  "recipientUei": "ZJEUBM5FYLQ2",
  "awardingAgency": "Department of Defense",
  "actionDate": "2023-05-08",
  "awardAmount": 496.23,
  "assistanceListing": null,
  "awardType": "DELIVERY ORDER",
  "description": "4560863361!TRKR NVG FSN AXIEM ENT INST STRL LF DISP",
  "awardUrl": "https://www.usaspending.gov/award/SPE2DV23F5X8Z",
  "retrievedAt": "2026-11-06T19:59:18.603178+00:00"
}
```

#### Pair 2 — recipient name: NATIONAL INDUSTRIES FOR THE BLIND

Input:

```json
{
  "recipientName": "NATIONAL INDUSTRIES FOR THE BLIND",
  "maxItems": 3
}
```

Output (first of 3 items; run `t7ljWt6CoMiD0Ibbr`, SUCCEEDED, dataset
`HdgXyg9ObK9eZhKOr`):

```json
{
  "awardId": "47QSSC27F0UFZ",
  "recipientName": "NATIONAL INDUSTRIES FOR THE BLIND",
  "recipientUei": "E8QNBC287DY4",
  "awardingAgency": "General Services Administration",
  "actionDate": "2026-11-04",
  "awardAmount": 212.85,
  "assistanceListing": null,
  "awardType": "DELIVERY ORDER",
  "description": "BRUSH,DUSTING,BENCH",
  "awardUrl": "https://www.usaspending.gov/award/47QSSC27F0UFZ",
  "retrievedAt": "2026-11-06T23:43:48.846323+00:00"
}
```

#### Pair 3 — keyword "SBIR", up to 10 rows

Input:

```json
{
  "keyword": "SBIR",
  "maxItems": 10
}
```

Output (first of 10 items; run `NV9E4N41Dw9kA2xpe`, SUCCEEDED, dataset
`ROdLJGuPiNT6fhsl1`):

```json
{
  "awardId": "80NSSC22CA231",
  "recipientName": "ASTROBOTIC TECHNOLOGY INC",
  "recipientUei": "JAQ3W2MGVNV1",
  "awardingAgency": "National Aeronautics and Space Administration",
  "actionDate": "2022-09-30",
  "awardAmount": 4997014,
  "assistanceListing": null,
  "awardType": "DEFINITIVE CONTRACT",
  "description": "EO14042 - SBIR PHASE II SEQUENTIAL - LUNAR NIGHT SURVIVAL AND LONG-RANGE COMMUNICATIONS FOR DISTRIBUTED ROBOTICS ASSETS.",
  "awardUrl": "https://www.usaspending.gov/award/80NSSC22CA231",
  "retrievedAt": "2026-11-06T23:43:00.900068+00:00"
}
```

### Output

One dataset item per matching award. Download the whole dataset as CSV or
JSON from the Apify run. See `.actor/output_schema.json` and
`.actor/dataset_schema.json`.

| Field | Type | Description |
|-------|------|-------------|
| `awardId` | string | USAspending award ID |
| `recipientName` | string | Recipient / contractor name |
| `recipientUei` | string|null | SAM UEI of the recipient |
| `awardingAgency` | string | Federal awarding agency |
| `actionDate` | string | Base obligation date (YYYY-MM-DD); falls back to last modified date |
| `awardAmount` | number|null | Award obligation amount (USD) |
| `assistanceListing` | string|null | Assistance listing / CFDA number (null for contracts) |
| `awardType` | string | Award type (e.g. PURCHASE ORDER, PROJECT GRANT) |
| `description` | string|null | Award description |
| `awardUrl` | string | Direct USAspending award page |
| `retrievedAt` | string | UTC timestamp (ISO 8601) |

### Limits

- Default time window: awards touched in the last 90 days.
- `maxItems` caps output at 1–100 rows per run.
- Recipient name / UEI / agency / NAICS code / state filters are applied
  client-side too, so returned rows always match the requested filters.
- Invalid input finishes with an empty dataset rather than crashing.
- One award-type group per query (USAspending API requirement); default is
  federal contracts (types A–D).

### Quality gate (POLICY #6, verified live)

Default input returns >0 dataset items in well under 5 minutes: run
`FBLgzVO3KN3rSeALN` (Actor `MSDWCHTcw7hgyHUPs`, build `1.1.1`, dataset
`yHR0Ve8R8TlEwS29O`), status SUCCEEDED, 25 dataset items, server runtime
4.305 s — well under the 1-minute bound. `isPublic`, categories and pricing
were not modified — no regressions.

### Local checks

```bash
## From product root
python3 -m pytest tests/   # deterministic & network-free (Apify SDK stubbed)
```

### Claims statement

All claims in this README are limited to what the product verifiably does: it
reads public USAspending award data through official USAspending endpoints and
returns citation-ready CSV/JSON rows. This README contains no revenue, user, or
adoption claims, because none are verified (see knowledge/portfolio.md: 0 buyer
runs, $0 verified revenue, owner runs only on every Actor). Pricing is the
listing's current PAY_PER_EVENT model — no price change was made.

# Changelog

This Actor's version history is a separate document: https://apify.com/apex-nexus/usa-spending-award-lookup/changelog.md

# Actor input Schema

## `recipientName` (type: `string`):

Filter awards by recipient/contractor name (case-insensitive substring match). Optional.

## `uei` (type: `string`):

Filter awards by the recipient's SAM UEI (exact match, case-insensitive, 12 alphanumeric characters). Optional.

## `awardingAgency` (type: `string`):

Filter awards by awarding agency name (case-insensitive substring match, e.g. "Department of Defense"). Optional.

## `keyword` (type: `string`):

Keyword searched across recipient names, award descriptions and award IDs by the USAspending API. Optional.

## `naicsCode` (type: `string`):

Filter awards by NAICS code (2-6 digit North American Industry Classification System code). The USAspending API `naics_codes` filter is applied and returned rows are client-side prefix-matched on the code (API `naics_codes: ["11"]` matches codes such as `115310`). Optional.

## `state` (type: `string`):

Filter awards by place-of-performance state (2-letter USPS code, e.g. "CA"). The USAspending API `place_of_performance.state` filter is applied and returned rows are client-side exact-matched on the state code. Optional.

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

Maximum number of award rows returned per run (1-100). Default 25.

## `awardTypeGroup` (type: `string`):

USAspending requires all award type codes from one group. Default scope is federal contracts; choose grants/loans/other groups for assistance awards.

## Actor input object example

```json
{
  "maxItems": 25,
  "awardTypeGroup": "contracts"
}
```

# Actor output Schema

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

Citation-ready USAspending award rows — one item per award.

# 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("apex-nexus/usa-spending-award-lookup").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("apex-nexus/usa-spending-award-lookup").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 apex-nexus/usa-spending-award-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apex-nexus/usa-spending-award-lookup"
        }
    }
}
```

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/MSDWCHTcw7hgyHUPs/builds/ku3ovtoeA41h5eZMR/openapi.json
