# Federal Grant Awards (USAspending) (`fedfacts/grant-awards`) Actor

Federal grant and cooperative-agreement awards to organizations: recipient, agency, program, amount, dates and place. Official USAspending API, source-linked.

- **URL**: https://apify.com/fedfacts/grant-awards.md
- **Developed by:** [FedFacts](https://apify.com/fedfacts) (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

$1.50 / 1,000 grant 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

## Federal Grant Awards (USAspending)

Get US federal **grant and cooperative-agreement awards** as a clean table: who got the money, from which agency and program, how much, when, and where. Data comes straight from the official [USAspending.gov API](https://api.usaspending.gov) run by the US Treasury.

### What you get

One row per award, with these fields:

- `awardId`, `recipientName`, `recipientUei`
- `awardAmount` (obligated) and `totalOutlays` (paid so far)
- `awardType` (block, formula, project grant or cooperative agreement)
- `awardingAgency`, `awardingSubAgency`, `fundingAgency`
- `assistanceListing` (CFDA number) and its title
- `description`, `startDate`, `endDate`, `baseObligationDate`, `lastModified`
- `placeState`, `placeCityCode`, `placeZip5`, `disasterEmergencyCodes`
- `sourceUrl`, which links to the award page on usaspending.gov

### Filters

Date range (any action, new awards only, or last modified), award type, awarding agency, place-of-performance state, Assistance Listing number, keywords, recipient name or UEI, amount range, recipient type, and sort order. `maxItems` caps the run.

### Typical uses

- Grant writers and consultants: see who won a program last cycle, and for how much.
- Nonprofits and universities: benchmark peers' federal funding.
- Journalists and analysts: track new awards by agency or state each week.
- Sales teams selling to grantees: find organizations that just got funded.

### Example input

```json
{ "states": ["NV"], "dateFrom": "2026-07-01", "dateType": "new_awards_only", "minAmount": 100000, "maxItems": 500 }
```

### What this Actor does NOT do

- **No awards to individuals.** It requests organization recipients only (businesses, nonprofits, governments and higher education) and also drops any row marked as an individual or redacted for privacy.
- **No contracts, loans or direct payments.** Only grant award types 02-05.
- **No sub-awards.** Prime awards only.
- Search goes back to 2007-10-01, the API's limit. Recent awards can take a few weeks to show up, because agencies report on a delay.

### Pricing

Pay per event: **$0.0015 per award row** returned (`grant-award` event, $1.50 per 1,000 rows). There's no start fee, and nothing is charged when a search returns no rows. Example: a 500-row state pull costs $0.75. Set a maximum charge on the run, and the Actor stops cleanly when it reaches it.

### Reliability

The Actor calls one official, documented, keyless API. It retries on server errors, and every run saves a `SUMMARY` record in the key-value store with the filters used, the pages read, the rows returned, the rows dropped, and why the run stopped.

### Source and license

USAspending.gov data is public US government data. This Actor isn't affiliated with or endorsed by the US Treasury or any agency.

# Actor input Schema

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

YYYY-MM-DD. Earliest 2007-10-01. Default: 90 days ago (USAspending data lags by weeks).

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

YYYY-MM-DD. Default: today.

## `dateType` (type: `string`):

How the date range is matched.

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

Grant award types to include. Contracts and loans are not covered.

## `awardingAgencies` (type: `array`):

Top-tier agency names exactly as USAspending writes them, e.g. Department of Energy, National Science Foundation.

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

Two-letter codes, e.g. NV, CA.

## `assistanceListings` (type: `array`):

e.g. 47.076, 93.778.

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

Matches award descriptions and other text fields.

## `recipientSearch` (type: `string`):

Text or UEI matched against recipient names.

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

Only awards at or above this amount.

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

Only awards at or below this amount. 0 means no maximum.

## `recipientTypes` (type: `array`):

Organizations only. Awards to individuals are never returned.

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

Field to sort results by.

## `sortOrder` (type: `string`):

Descending or ascending.

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

Stop after this many awards. 0 means no limit (use a max charge instead).

## Actor input object example

```json
{
  "dateFrom": "2026-09-01",
  "dateType": "action_date",
  "awardTypes": [
    "block",
    "formula",
    "project",
    "cooperative"
  ],
  "states": [
    "NV"
  ],
  "minAmount": 0,
  "maxAmount": 0,
  "recipientTypes": [
    "category_business",
    "nonprofit",
    "government",
    "higher_education"
  ],
  "sortBy": "amount",
  "sortOrder": "desc",
  "maxItems": 50
}
```

# Actor output Schema

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

Dataset rows (one per record), as JSON/CSV/Excel via the dataset API.

## `summary` (type: `string`):

Filters used, rows returned/dropped and why the run stopped.

# 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 = {
    "dateFrom": "2026-09-01",
    "states": [
        "NV"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("fedfacts/grant-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 = {
    "dateFrom": "2026-09-01",
    "states": ["NV"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("fedfacts/grant-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 '{
  "dateFrom": "2026-09-01",
  "states": [
    "NV"
  ],
  "maxItems": 50
}' |
apify call fedfacts/grant-awards --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fedfacts/grant-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/IFEhO4oSeztXOqZRy/builds/bwBuOgQnRjuMpaLHK/openapi.json
