# USAspending Federal Awards API: contracts & grants by recipient (`bosco_labs/us-federal-awards`) Actor

US government contracts, grants and loans by recipient company or stock ticker, every agency, from USAspending.gov: winner, UEI, parent company, agency, amounts, dates, NAICS/PSC/assistance listing, place of performance and a source link. Filter by company, ticker, agency, keyword, state, date.

- **URL**: https://apify.com/bosco_labs/us-federal-awards.md
- **Developed by:** [Bosco Labs](https://apify.com/bosco_labs) (community)
- **Categories:** Business, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 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.

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

## US Federal Awards API: contracts & grants, all agencies

Get **US federal contracts, grants and loans from every agency** (USAspending.gov): who won,
which agency paid, how much, when, for what (NAICS, PSC, assistance listing), where, plus the
winner's **parent company and US stock ticker**. For sales intelligence, investors measuring
government revenue exposure, and procurement or policy research.

**Pricing (pay per event):** $0.004 per award row ($4 per 1,000). Nothing is charged for an
empty or failed run, and the Actor stops at your max charge limit.

Source: the official [USAspending.gov](https://www.usaspending.gov) API run by the US Treasury
(Bureau of the Fiscal Service), which carries the contract records of FPDS and the financial
assistance records agencies report under the DATA Act. Every row links to its award page.

### What you get

One row per award that had an action (a new award or a modification) in your date window. The
row shows that action (the largest one in the window, or the latest with `sortBy: "date"`) and
the award's totals. Real output (NASA, October 2026):

```json
{
  "award_id": "NNM16AA02C",
  "award_type_group": "contracts",
  "award_type": "DEFINITIVE CONTRACT",
  "recipient_name": "AEROJET ROCKETDYNE OF DE, INC",
  "recipient_uei": "JCZYYYQ7JGF5",
  "parent_name": "L3HARRIS TECHNOLOGIES, INC",
  "ticker": "LHX",
  "matched_on": "parent",
  "awarding_agency": "National Aeronautics and Space Administration",
  "action_date": "2026-10-29",
  "action_amount_usd": 53422103.0,
  "modification_number": "174",
  "total_obligated_usd": 3438289825.36,
  "total_value_usd": 4143466817.0,
  "award_date_signed": "2015-11-19",
  "end_date": "2029-09-30",
  "description": "IGF::CT::IGF  RS-25 PRODUCTION RESTART TO BE UNDERTAKEN BY THE CONTRACTOR IN SUPPORT OF PROVIDING SIX RS-25 ENGINES ...",
  "naics_code": "541712",
  "psc_code": "1675",
  "psc_description": "SPACE VEHICLE COMPONENTS",
  "performance_state": "CA",
  "source_url": "https://www.usaspending.gov/award/CONT_AWD_NNM16AA02C_8000_-NONE-_-NONE-",
  "schema_version": "1"
}
```

A grant row (Texas, 2026) has `cfda_number` (`"93.855"`), `cfda_title` (`"ALLERGY AND
INFECTIOUS DISEASES RESEARCH"`) and `awarding_sub_agency` (`"National Institutes of Health"`)
instead of NAICS/PSC.

All fields: `award_id`, `award_key`, `award_type_group`, `award_type`, `award_type_code`,
`parent_award_id` (the IDIQ/BPA a task order sits under), `recipient_name`, `recipient_uei`,
`parent_name`, `parent_uei`, `recipient_city`, `recipient_state`, `recipient_country`, `ticker`,
`matched_on`, `awarding_agency`, `awarding_sub_agency`, `funding_agency`, `action_date`,
`action_amount_usd`, `is_admin_change` (a $0 action), `modification_number`, `total_obligated_usd`, `total_value_usd` (contracts:
value with all options; loans: face value), `award_date_signed`, `start_date`, `end_date`,
`description`, `naics_code`, `naics_description`, `psc_code`, `psc_description`, `cfda_number`,
`cfda_title`, `performance_city`, `performance_state`, `performance_country`, `source_url`,
`api_url`, `retrieved_at`, `schema_version`.

### Input

```json
{
  "agencies": ["NASA"],
  "awardTypes": ["contracts"],
  "dateFrom": "2026-10-01",
  "dateTo": "2026-10-31",
  "maxResults": 20
}
```

| Field | Meaning |
|---|---|
| `recipients` | Winner name text or UEI, e.g. `["palantir"]`, `["university"]`, `["FSY4LVSBGWB7"]` |
| `tickers` | Only awards to these US-listed companies or their subsidiaries, e.g. `["PLTR"]` |
| `agencies` | Abbreviation, name or code, e.g. `["NASA"]`, `["Department of Energy"]`, `["Defense Logistics Agency"]`. Empty = all |
| `awardTypes` | `contracts` (default), `grants`, `loans`, `direct_payments`, `other` |
| `keywords` | Full-text search, any of the words, e.g. `["artificial intelligence"]` |
| `naicsCodes` / `pscCodes` | Industry and product/service codes (contracts), e.g. `541512`, `DA01` |
| `cfdaNumbers` | Assistance listings (grants), e.g. `47.070` |
| `placeOfPerformanceStates` | Where the work is done, e.g. `["TX"]` |
| `dateFrom` / `dateTo` | Action dates. Default: the last 30 days. From 2007-10-01 |
| `minAmount` | Minimum award total obligated, USD |
| `sortBy` | `amount` (largest action first, default) or `date` (newest action first) |
| `maxResults` | Max rows, default 50, up to 1,000 |

Award type codes behind `awardTypes`: contracts A, B, C, D; grants 02-05 (and F001, F002);
loans 07, 08 (F003, F004); direct payments 06, 10 (F006, F007); other 09, 11, -1 (F005, F008-F010).

### Use from an AI agent (MCP)

Agents can call this Actor as a tool through the
[Apify MCP server](https://github.com/apify/apify-mcp-server). Add this server URL to your MCP
client (Claude, Cursor, VS Code, ...):

```text
https://mcp.apify.com?tools=bosco_labs/us-federal-awards
```

It loads this Actor as a tool, plus the tools that read its results. The hosted server signs you
in with OAuth, or accepts your Apify token as `Authorization: Bearer <APIFY_TOKEN>`.

Example prompts:

- *"Which federal contracts did Palantir win this quarter?"* -> `{"tickers": ["PLTR"], "dateFrom": "2026-10-01"}`
- *"Largest NASA contracts last month"* -> `{"agencies": ["NASA"], "dateFrom": "2026-10-01", "dateTo": "2026-10-31"}`
- *"Grants to universities in Texas for AI this year"* -> `{"awardTypes": ["grants"], "recipients": ["university"], "keywords": ["artificial intelligence"], "placeOfPerformanceStates": ["TX"], "dateFrom": "2026-01-01"}`

Each of these answered in about 8 seconds in our tests. Every row has a `source_url` (the
award's usaspending.gov page) for the agent to cite, and a `schema_version`. Bad input fails in
seconds with a message that shows a valid example; an empty result says why.

**Cost:** $0.004 per award row, billed to the Apify account the MCP server is signed in with.

### FAQ

**One row per award or per transaction?** Per award. An award (contract, grant, loan) gets
many actions over its life: the base award and its modifications. A row shows the award's
largest action in your window (`action_amount_usd`, `action_date`, `modification_number`)
next to its lifetime totals. If `award_date_signed` is before your window, the row is a
modification of an older award, not a new win; `is_admin_change: true` marks a $0 action
(paperwork, no new money).

**How fresh is the data?** Civilian agencies report within days. **Department of Defense
contract actions are published up to 90 days after signing** (a DoD rule), so recent DoD windows
are nearly empty; for same-evening DoD awards use our
[Pentagon / DoD Contract Awards](https://apify.com/bosco_labs/dod-contract-awards) Actor.

**What does `minAmount` filter on?** The award's total obligated amount, not the single action.

**Why is an amount 0 or negative?** Administrative modifications obligate $0, de-obligations
are negative, and loan actions obligate $0 (the face value is in `total_value_usd`).

**How does ticker matching work?** The recipient name and its parent company (from the award
record) are cleaned (lower case, no Inc/Corp/LLC/Holdings) and must exactly equal the cleaned
name of a NYSE, Nasdaq or CBOE company in the SEC's ticker list. We would rather miss a match
than give a wrong ticker: joint ventures, foreign parents, renamed subsidiaries and private
companies stay `null`. It is not investment advice.

**Are individuals included?** No. USAspending redacts financial assistance to individuals
("REDACTED DUE TO PII") and groups small payments into county-level "MULTIPLE RECIPIENTS"
records; we leave both out. Some contracts go to sole proprietors whose business name is a
person's name; those are shown exactly as USAspending publishes them, with nothing added.

**Why does a keyword match an award whose description lacks it?** USAspending's keyword search
covers more text fields than the description shown.

**What is not included?** Sub-awards, IDV vehicles themselves (their task orders are included),
DUNS numbers, recipient street addresses and executive pay. Search history starts at
2007-10-01. A run scans at most 2,000 actions; narrow the filters for rare matches.

**Legal basis?** USAspending.gov data may be copied, redistributed and used commercially
(see LEGAL.md in the source). Source: USAspending.gov, U.S. Department of the Treasury, Bureau
of the Fiscal Service. Company names and locations may include data supplied by Dun &
Bradstreet, Inc. (D\&B); they are served per query, never as a bulk extract.

# Actor input Schema

## `recipients` (type: `array`):

Winning organisations, as name text or 12-character SAM UEI, e.g. \["palantir"], \["university of texas"] or \["FSY4LVSBGWB7"]. USAspending matches the text against recipient and parent company names and UEIs. Empty (default) = all recipients.

## `tickers` (type: `array`):

Only awards whose recipient or its parent company matches these US-listed tickers (NYSE, Nasdaq, CBOE; exact cleaned SEC company name), e.g. \["PLTR"] or \["LMT", "BAH"]. Subsidiaries are found through their parent company. Empty (default) = no ticker filter; every row still gets a ticker when its name matches.

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

Awarding agencies by abbreviation, name or toptier code, e.g. \["NASA"], \["Department of Energy"], \["097"] (DoD). A name that is not a top-tier agency is searched as a sub-agency, e.g. \["Defense Logistics Agency"]. Empty (default) = all federal agencies.

## `awardTypes` (type: `array`):

Which awards: "contracts" (USAspending codes A-D: BPA calls, purchase orders, delivery orders, definitive contracts), "grants" (02-05: block, formula, project grants, cooperative agreements), "loans" (07, 08), "direct_payments" (06, 10), "other" (09, 11: insurance, other assistance). E.g. \["grants"]. Default \["contracts"].

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

Full-text search over award descriptions and other text fields, e.g. \["artificial intelligence"] or \["cybersecurity"]. Several keywords = any of them. Empty (default) = no keyword filter.

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

NAICS industry codes, 2 to 6 digits, e.g. \["541512"] (computer systems design) or \["3364"]. Contracts only. Empty (default) = all.

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

Product and Service Codes, e.g. \["DA01"] (IT software development) or \["AR"] (space R\&D). Contracts only. Empty (default) = all.

## `cfdaNumbers` (type: `array`):

Assistance listing (CFDA) numbers as NN.NNN, e.g. \["47.070"] (NSF computer and information science) or \["93.855"] (NIH allergy and infectious diseases). Financial assistance only. Empty (default) = all.

## `placeOfPerformanceStates` (type: `array`):

Two-letter US state or territory codes where the work is done, e.g. \["TX"] or \["VA", "MD", "DC"]. Empty (default) = anywhere, including abroad.

## `dateFrom` (type: `string`):

Earliest action date (signing date of the award or of a modification), YYYY-MM-DD, e.g. "2026-07-01". Searchable from 2007-10-01. Empty (default) = 30 days before dateTo. DoD contracts appear up to 90 days late.

## `dateTo` (type: `string`):

Latest action date, YYYY-MM-DD, e.g. "2026-09-30". Empty (default) = today.

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

Only awards whose total obligated amount (all actions since signing) is at least this many US dollars, e.g. 1000000. Empty or 0 (default) = no minimum.

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

"amount" (default) = awards ordered by their largest action (obligation) in the date window, largest first; that action is the one shown. "date" = ordered by their latest action in the window, newest first. Loans-only searches rank by loan face value.

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

Maximum award rows, one per award, e.g. 20. Default 20, maximum 1000. Each row is one charged event.

## Actor input object example

```json
{
  "awardTypes": [
    "contracts"
  ],
  "sortBy": "amount",
  "maxResults": 20
}
```

# 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 = {
    "awardTypes": [
        "contracts"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("bosco_labs/us-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 = {
    "awardTypes": ["contracts"],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("bosco_labs/us-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 '{
  "awardTypes": [
    "contracts"
  ],
  "maxResults": 20
}' |
apify call bosco_labs/us-federal-awards --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bosco_labs/us-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/j2SPYdyBndYJgu0d2/builds/3rqTDkMgMVjbPQFov/openapi.json
