# Federal Grant Awards Scraper API - Recipient Leads (`pink_comic/federal-grant-awards`) Actor

Research federal grant and cooperative-agreement awards from USAspending. Find recipients, agencies, Assistance Listings, amounts, dates, locations, descriptions, and source-linked award evidence.

- **URL**: https://apify.com/pink\_comic/federal-grant-awards.md
- **Developed by:** [Ava Torres](https://apify.com/pink_comic) (community)
- **Categories:** Business, Lead generation, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 usaspending federal grant awards scraper api evidence items

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## USAspending Federal Grant Awards Scraper API

Search official USAspending.gov prime awards for federal **grants and cooperative agreements**. Package recipients, awarding/funding agencies, Assistance Listings, reported amounts/outlays, dates, locations, descriptions, pagination bounds, and official award links for grant research.

### First run

```json
{
  "keywords": ["artificial intelligence"],
  "awardTypes": ["grants", "cooperative_agreements"],
  "dateFrom": "2025-01-01",
  "dateTo": "2026-07-26",
  "sortBy": "amount_desc",
  "maxResults": 5
}
```

This revalidated deterministic query returns 1–5 assistance-award rows and excludes contracts, loans, and IDVs. `maxResults` is a total cap across separately queried assistance groups. The default costs at most **$0.0101**: $0.0001 start + $0.002 per dataset item.

### Filters

- award description keywords
- recipient name/UEI
- awarding and funding agencies
- Assistance Listing / historical CFDA number
- exact award ID
- place-of-performance and recipient-location state
- NAICS where reported
- grants and/or cooperative agreements
- action-date and award-amount ranges
- amount/date sort, starting page, total result cap

### Evidence, not conclusions

Every row includes query scope, retrieval time, source messages, official API and award URLs, bounded pagination evidence, and interpretation limits. `NO_MATCH`, `SOURCE_UNAVAILABLE`, and invalid input produce explicit records.

USAspending values are agency reported and can lag, change, be blank, or differ between award and transaction records. Results are not funding opportunities, payment ledgers, performance results, recipient identity/eligibility/responsibility determinations, final audits, complete transaction/subaward histories, or proof future funds remain available. Review the linked source and awarding agency before decisions.

# Actor input Schema

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

Terms matched by USAspending keyword search. The default artificial intelligence fixture is revalidated and returns current grant rows.

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

Recipient name text or identifiers.

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

Exact top-tier awarding agency names, such as National Science Foundation.

## `fundingAgencies` (type: `array`):

Exact top-tier funding agency names.

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

Assistance Listing / historical CFDA program numbers, such as 47.070.

## `awardIds` (type: `array`):

Exact source award identifiers.

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

Two-letter domestic state or territory codes.

## `recipientStates` (type: `array`):

Two-letter recipient-location state or territory codes.

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

Require reported NAICS codes. Assistance awards may not carry NAICS values.

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

Grant and cooperative-agreement groups are queried separately and merged under one total cap; contracts, loans, and IDVs cannot be selected.

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

Inclusive USAspending action-period start. Search endpoint coverage begins 2007-10-01.

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

Inclusive action-period end for the deterministic default fixture.

## `minAwardAmount` (type: `number`):

Lower award-amount bound in USD. Reported amount is not a payment ledger.

## `maxAwardAmount` (type: `number`):

Upper award-amount bound in USD; zero means no upper bound.

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

Optional sort filter or result-control setting. See the README for source semantics and examples.

## `page` (type: `integer`):

Starting USAspending page. Cursor metadata is exposed when more source rows exist.

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

Total paid output cap across all selected assistance types. Default five costs at most $0.0101 including the $0.0001 start event.

## Actor input object example

```json
{
  "keywords": [
    "artificial intelligence"
  ],
  "recipients": [],
  "awardingAgencies": [],
  "fundingAgencies": [],
  "assistanceListings": [],
  "awardIds": [],
  "placeOfPerformanceStates": [],
  "recipientStates": [],
  "naicsCodes": [],
  "awardTypes": [
    "grants",
    "cooperative_agreements"
  ],
  "dateFrom": "2025-01-01",
  "dateTo": "2026-07-26",
  "minAwardAmount": 0,
  "maxAwardAmount": 0,
  "sortBy": "amount_desc",
  "page": 1,
  "maxResults": 5
}
```

# 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 = {
    "keywords": [
        "artificial intelligence"
    ],
    "maxResults": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("pink_comic/federal-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 = {
    "keywords": ["artificial intelligence"],
    "maxResults": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("pink_comic/federal-grant-awards").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "artificial intelligence"
  ],
  "maxResults": 5
}' |
apify call pink_comic/federal-grant-awards --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=pink_comic/federal-grant-awards",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/aCTbpoUvyWJJMwp61/builds/dNJwoLRZ7yv94mv8O/openapi.json
