# Research Grant Aggregator (`constant_quadruped/research-grant-aggregator`) Actor

Search NIH, NSF, Grants.gov & USASpending in one query. Get unified grant data with PI names, award amounts, organizations & keywords. Perfect for universities, grant writers, VCs tracking funded research. No API keys needed—all public federal data.

- **URL**: https://apify.com/constant_quadruped/research-grant-aggregator.md
- **Developed by:** [CQ](https://apify.com/constant_quadruped) (community)
- **Categories:** Developer tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 13 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## Research Grant Aggregator

Search NIH, NSF, Grants.gov & USASpending in one query. Get unified, normalized, deduplicated grant data ready for analysis.

### What This Actor Does

<table>
<tr>
<td width="50%">

**Search 4 Federal Sources at Once**

- NIH RePORTER (funded research projects)
- NSF Awards (funded research awards)
- Grants.gov (open & forecasted funding opportunities)
- USASpending.gov (federal grant awards)

</td>
<td width="50%">

**Get Clean, Unified Output**

- Consistent schema across all sources
- Automatic cross-source deduplication
- Ready for Excel/CSV/JSON export

</td>
</tr>
</table>

Each selected source is queried live over its official public API, results are normalized into one schema, deduplicated, sorted by award amount (descending), and capped at your `maxResults`.

### What's New (v1.2)

- **Incremental Mode** — remembers grant IDs seen in prior runs and returns only NEW grants. Pair it with a schedule to get a live new-grants feed for a saved keyword search.
- **Webhook Alerts** — optionally POST a JSON alert (Slack/Discord/Zapier compatible) when incremental mode finds new grants.

### Quick Start

**Find CRISPR grants over $500K:**

```json
{
  "keywords": ["CRISPR", "gene editing"],
  "minAmount": 500000
}
```

**Search a specific university:**

```json
{
  "organizationName": "Stanford University",
  "sources": ["NIH", "NSF"]
}
```

**Filter by state and fiscal year:**

```json
{
  "keywords": ["artificial intelligence"],
  "state": "CA",
  "fiscalYears": ["2024", "2025"]
}
```

### Input Options

<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>sources</code></td>
<td>array</td>
<td>all 4</td>
<td>Which sources to search: <code>NIH</code>, <code>NSF</code>, <code>GRANTS_GOV</code>, <code>USA_SPENDING</code></td>
</tr>
<tr>
<td><code>keywords</code></td>
<td>array</td>
<td>—</td>
<td>Search terms for grant titles and abstracts</td>
</tr>
<tr>
<td><code>organizationName</code></td>
<td>string</td>
<td>—</td>
<td>Filter by recipient organization (university, hospital, institution). Applied by NIH, NSF, and USASpending.</td>
</tr>
<tr>
<td><code>piName</code></td>
<td>string</td>
<td>—</td>
<td>Filter by principal investigator name. Applied by NIH and NSF.</td>
</tr>
<tr>
<td><code>state</code></td>
<td>string</td>
<td>—</td>
<td>Two-letter US state code (e.g., <code>CA</code>, <code>NY</code>). Applied by NIH, NSF, and USASpending.</td>
</tr>
<tr>
<td><code>minAmount</code></td>
<td>integer</td>
<td>—</td>
<td>Minimum award amount in USD (also applied as a post-fetch filter across all sources)</td>
</tr>
<tr>
<td><code>maxAmount</code></td>
<td>integer</td>
<td>—</td>
<td>Maximum award amount in USD (also applied as a post-fetch filter across all sources)</td>
</tr>
<tr>
<td><code>fiscalYears</code></td>
<td>array</td>
<td>—</td>
<td>Filter by fiscal year(s), e.g., <code>["2024", "2025"]</code>. Applied by NIH, NSF, and USASpending.</td>
</tr>
<tr>
<td><code>agency</code></td>
<td>string</td>
<td>—</td>
<td>Filter by funding agency (e.g., NIH, NSF, DOE, DOD). Non-NIH/NSF values are applied as a post-fetch filter.</td>
</tr>
<tr>
<td><code>activeOnly</code></td>
<td>boolean</td>
<td><code>false</code></td>
<td>Prefer currently active grants / posted opportunities</td>
</tr>
<tr>
<td><code>maxResults</code></td>
<td>integer</td>
<td><code>100</code></td>
<td>Max grants fetched per source and returned in total (max 10,000). Each source is queried for up to this many, then results are combined, deduplicated, and capped at this number.</td>
</tr>
<tr>
<td><code>includeAbstracts</code></td>
<td>boolean</td>
<td><code>true</code></td>
<td>Include full grant abstracts/synopses in output</td>
</tr>
<tr>
<td><code>incrementalMode</code></td>
<td>boolean</td>
<td><code>false</code></td>
<td>Persist grant IDs seen in prior runs and return only NEW grants. Great with a schedule for a live new-grants feed.</td>
</tr>
<tr>
<td><code>alertWebhookUrl</code></td>
<td>string</td>
<td>—</td>
<td>Optional: POST a JSON alert when incremental mode finds new grants (Slack/Discord/Zapier compatible)</td>
</tr>
</tbody>
</table>

### Output Format

Each dataset item is a normalized grant. Fields vary slightly by source (see notes below):

```json
{
  "id": "NIH-R01GM123456",
  "source": "NIH",
  "sourceId": "R01GM123456",
  "title": "Novel CRISPR Applications in Cancer Therapy",
  "abstract": "This project aims to...",
  "awardAmount": 1250000,
  "fiscalYear": 2024,
  "startDate": "2024-01-01",
  "endDate": "2028-12-31",
  "organization": {
    "name": "Stanford University",
    "city": "Stanford",
    "state": "CA",
    "country": "USA",
    "type": "university"
  },
  "principalInvestigator": {
    "name": "Jane Smith",
    "email": "jsmith@stanford.edu"
  },
  "coPIs": [],
  "agency": "NIH",
  "institute": "NCI",
  "program": "",
  "keywords": ["CRISPR", "cancer"],
  "lastUpdated": "2026-07-11T00:00:00.000Z",
  "url": "https://reporter.nih.gov/project-details/..."
}
```

**Source-specific fields:**

- **Grants.gov** items describe *opportunities*, not awards, and add `isOpportunity`, `opportunityStatus`, `docType`, `awardCeiling`, `awardFloor`, and `applicationDeadline`. They have no PI, and `awardAmount` reflects the award ceiling/floor.
- **NSF, Grants.gov, and USASpending** items include a `cfda` (Assistance Listing) number.
- Records merged across sources during deduplication include a `mergedFrom` array.
- `abstract` is omitted when `includeAbstracts` is `false`.
- If a search matches nothing, a single informational record `{ "noResults": true, "message": "..." }` is pushed so the run is clearly distinguishable from a failure.

Run metadata (source counts, totals, averages, execution time, and any per-source errors) is written to the key-value store under `metadata` and to `OUTPUT`.

### Data Sources

<table>
<thead>
<tr>
<th>Source</th>
<th>Data Type</th>
<th>API</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>NIH RePORTER</strong></td>
<td>Funded research projects (with PI, institute, abstract)</td>
<td>reporter.nih.gov API v2</td>
</tr>
<tr>
<td><strong>NSF Awards</strong></td>
<td>Funded research awards (with PI, program)</td>
<td>api.nsf.gov Awards API</td>
</tr>
<tr>
<td><strong>Grants.gov</strong></td>
<td>Open &amp; forecasted funding opportunities (not awarded grants)</td>
<td>api.grants.gov search2</td>
</tr>
<tr>
<td><strong>USASpending</strong></td>
<td>Federal grant awards (assistance types 02–05)</td>
<td>api.usaspending.gov v2</td>
</tr>
</tbody>
</table>

### Use Cases

- **Competitive Intelligence**: See what grants organizations are receiving
- **Research Planning**: Find funding opportunities and awards in your field
- **Due Diligence**: Cross-check grant funding claims against federal records
- **Market Research**: Analyze federal R\&D funding patterns
- **Academic Analysis**: Study funding by institution, state, or topic

### Limitations

- **Sources covered**: Only the four US federal sources above. No private foundations, corporate, state/local, or international funders are included.
- **Grants.gov = opportunities, not awards**: Grants.gov returns open/forecasted funding *opportunities* (with ceilings/floors and deadlines), not awarded grants, and includes no PI. It also may return **0 results from datacenter IPs** due to its API restrictions; NIH, NSF, and USASpending generally work from all locations.
- **Result & rate limits**: `maxResults` defaults to 100 (max 10,000) and caps both per-source fetching and the final combined total. NIH is rate-limited to ~1 request/second; NIH returns up to 500 per request, NSF 25 per page, USASpending 100 per page, Grants.gov 25 per page.
- **Filter coverage varies by source**: Not every filter is supported by every API. `minAmount`/`maxAmount` and non-NIH/NSF `agency` values are applied as post-fetch filters, so they narrow results but do not expand cross-source coverage. `piName`/`organizationName`/`state`/`fiscalYears` are honored only by the sources that support them (see the Input Options notes).
- **Freshness**: Every run queries the live APIs. `lastUpdated` is the fetch timestamp, not the source's own record-update time; results are a live snapshot, not a historical archive.
- **Deduplication is heuristic**: Duplicates are merged using a fuzzy key (normalized title, organization, PI last name, amount bucket, fiscal year). Near-identical records may occasionally be over- or under-merged.
- **Incremental mode retention**: Seen grant IDs are stored in the key-value store and capped at the most recent 10,000, so very large long-running searches may eventually re-surface previously seen grants.
- **Nullable fields**: `fiscalYear`, `startDate`, `endDate`, and PI details can be `null`/empty when a source does not provide them.

### Legal

All data is **U.S. Federal Government public domain**. No authentication required. Commercial use permitted.

> "U.S. Federal data available through Data.gov is offered free and without restriction."
> — [Data.gov Privacy Policy](https://www.data.gov/privacy-policy)

# Actor input Schema

## `sources` (type: `array`):

Select which grant databases to search. Leave empty for all sources.

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

Search terms for grant titles and abstracts

## `organizationName` (type: `string`):

Filter by recipient organization (university, hospital, etc.)

## `piName` (type: `string`):

Filter by PI name

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

Two-letter US state code

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

Minimum grant amount in USD

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

Maximum grant amount in USD

## `fiscalYears` (type: `array`):

Filter by fiscal year(s). Leave empty for all years.

## `agency` (type: `string`):

Filter by agency (e.g., NIH, NSF, DOE, DOD)

## `activeOnly` (type: `boolean`):

Only return currently active grants

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

Maximum number of grants to return per source

## `includeAbstracts` (type: `boolean`):

Include full grant abstracts in output

## `incrementalMode` (type: `boolean`):

Persist grant IDs seen in prior runs and only return NEW grants. Combine with a schedule to get a live new-grants feed for your saved keywords.

## `alertWebhookUrl` (type: `string`):

Optional: POST a JSON alert when incremental mode finds NEW grants. Works with Slack/Discord/Zapier.

## Actor input object example

```json
{
  "sources": [
    "NIH",
    "NSF",
    "GRANTS_GOV",
    "USA_SPENDING"
  ],
  "keywords": [
    "CRISPR",
    "gene editing",
    "cancer"
  ],
  "organizationName": "Stanford University",
  "state": "CA",
  "fiscalYears": [
    "2024",
    "2025"
  ],
  "activeOnly": false,
  "maxResults": 100,
  "includeAbstracts": true,
  "incrementalMode": false
}
```

# Actor output Schema

## `grants` (type: `string`):

No description

## `overview` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("constant_quadruped/research-grant-aggregator").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("constant_quadruped/research-grant-aggregator").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 constant_quadruped/research-grant-aggregator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,constant_quadruped/research-grant-aggregator"
        }
    }
}
```

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/02Xnadt1jOiogxYmu/builds/e4gvjysKwfUwnXAC2/openapi.json
