# NIH RePORTER Grants — Projects, Orgs & PIs (`reverential_haw/nih-reporter-grants`) Actor

Search NIH-funded research projects via the official RePORTER API v2. Filter by organization, fiscal year, keywords, agency, and activity code. Built for university BD and grant intelligence.

- **URL**: https://apify.com/reverential_haw/nih-reporter-grants.md
- **Developed by:** [Finn McDonough](https://apify.com/reverential_haw) (community)
- **Categories:** Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 project rows

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

## NIH RePORTER Grants — Projects, Orgs & PIs

**Search NIH-funded research projects (grants, organizations, PIs, abstracts, award amounts) via the official NIH RePORTER API v2 — structured JSON for university BD, grant writers, and competitive research intel.**

Built on the **official NIH RePORTER public API**. No login for normal volumes. No HTML scraping.

***

### Who this is for

- **University research development / BD** tracking competitor awards and org portfolios
- **Grant writers & consultants** scanning titles, abstracts, and activity codes
- **Biomedical agencies & investors** mapping funding trends by keyword or IC
- **Competitive intelligence** teams watching PI and organization award histories

### What you get

Each dataset item is one NIH project with:

| Field | Example |
| --- | --- |
| `projectNum` | `5R01CA123456-05` |
| `fiscalYear` | `2024` |
| `title` | Sirtuins and Cancer |
| `abstract` | Project abstract text |
| `organizationName` | HARVARD MEDICAL SCHOOL |
| `principalInvestigators` | Contact / named PIs |
| `awardAmount` | `545051` |
| `agency` / `activityCode` | `NIH` / `R01` |
| `projectStartDate` / `projectEndDate` | Award period |
| `detailUrl` | Link into reporter.nih.gov |

#### Sample output

```json
{
  "projectNum": "5R01CA000000-01",
  "fiscalYear": 2024,
  "title": "Sirtuins and Cancer",
  "organizationName": "HARVARD MEDICAL SCHOOL",
  "principalInvestigators": "Jane Q. Researcher",
  "awardAmount": 545051,
  "agency": "NIH",
  "activityCode": "R01",
  "source": "nih-reporter"
}
```

### How to run

1. Optionally set **keywords**, **organization names**, **fiscal years**, **agency/IC codes**, and/or **activity codes**.
2. Set **max results**.
3. Run. Schedule monthly/quarterly for standing competitive intel.

#### Example inputs

**Harvard cancer projects, FY 2024**

```json
{
  "keywords": "cancer",
  "orgNames": ["HARVARD"],
  "fiscalYears": [2024],
  "maxItems": 100
}
```

**NCI R01 awards for a keyword**

```json
{
  "keywords": "immunotherapy",
  "agencies": ["NCI"],
  "activityCodes": ["R01"],
  "fiscalYears": [2023, 2024, 2025],
  "maxItems": 250
}
```

**Organization portfolio**

```json
{
  "orgNames": ["STANFORD", "MIT"],
  "fiscalYears": [2024],
  "maxItems": 500
}
```

### Pricing (PPE recommendation)

Use **pay-per-event** with the synthetic `apify-default-dataset-item` event (one charge per project) plus default `apify-actor-start`.

| Event | Suggested FREE-tier price | Notes |
| --- | --- | --- |
| `apify-actor-start` | $0.00005 (platform default) | Keep default |
| `apify-default-dataset-item` | **$0.002 / project** ($2 / 1,000) | Primary event |

Why this band: RePORTER is HTTP JSON (cheap compute). $2 per 1k matches the openFDA and Federal Register companion Actors. Offer GOLD/PLATINUM discounts (−20% / −35%) for agency volume.

> Do **not** invent revenue projections. Validate pricing with a soft launch and adjust after watching paid-plan runs.

### Why NIH RePORTER (legal / ToS)

- Data is published by NIH via [api.reporter.nih.gov](https://api.reporter.nih.gov/) for public reuse.
- This Actor calls the documented POST endpoint `/v2/projects/search`.
- No API key required for typical volumes; the Actor throttles to ~1 request/sec.
- Organization names are wildcard-matched by RePORTER (`HARVARD` → Harvard Medical School, etc.).

### Limits & honesty

- Award totals and field completeness follow RePORTER (intramural projects may lack some dates).
- Very broad queries return huge result sets — always set `maxItems`.
- Fixture mode (`useFixture: true`) is for local/CI validation only; disable before Store runs.

### Related Actors (catalog)

- **FDA Recalls Monitor (openFDA)** — food / drug / device enforcement recalls
- **Federal Register Monitor** — U.S. rules, notices, and presidential documents

### Support

Open an issue on the Actor page. Target response: same business day.

# Actor input Schema

## `keywords` (type: `string`):

Advanced text search across project title, abstract, and terms (e.g. "cancer immunotherapy"). Use quotes for exact phrases.

## `searchOperator` (type: `string`):

How multiple keywords are combined in advanced_text_search.

## `orgNames` (type: `array`):

Recipient organization names (wildcarded, e.g. HARVARD matches Harvard Medical School).

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

NIH fiscal years to include (integers). Leave empty for API default / all when combined with other filters.

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

Funding agency abbreviations (e.g. NCI, NIGMS, NHLBI).

## `activityCodes` (type: `array`):

Activity codes such as R01, P20, K01.

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

Maximum project records to return.

## `useFixture` (type: `boolean`):

When true, read fixtures/sample-nih-response.json instead of calling RePORTER. For local validation only.

## `fixturePath` (type: `string`):

Path to a fixture JSON file (relative to the Actor root).

## Actor input object example

```json
{
  "keywords": "",
  "searchOperator": "and",
  "orgNames": [
    "HARVARD"
  ],
  "fiscalYears": [
    "2024"
  ],
  "agencies": [],
  "activityCodes": [],
  "maxItems": 100,
  "useFixture": false,
  "fixturePath": "fixtures/sample-nih-response.json"
}
```

# Actor output Schema

## `overview` (type: `string`):

Tabular overview of the most useful dataset fields.

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

All normalized NIH RePORTER project records in the default dataset.

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

JSON summary of items pushed and run metadata, stored in the default key-value store as OUTPUT_SUMMARY.

# 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": "",
    "orgNames": [
        "HARVARD"
    ],
    "fiscalYears": [
        "2024"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("reverential_haw/nih-reporter-grants").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": "",
    "orgNames": ["HARVARD"],
    "fiscalYears": ["2024"],
}

# Run the Actor and wait for it to finish
run = client.actor("reverential_haw/nih-reporter-grants").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 '{
  "keywords": "",
  "orgNames": [
    "HARVARD"
  ],
  "fiscalYears": [
    "2024"
  ]
}' |
apify call reverential_haw/nih-reporter-grants --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,reverential_haw/nih-reporter-grants"
        }
    }
}
```

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/Ias3rJENIrqiDaw6D/builds/oT9r5hR1Xx3dD7QiZ/openapi.json
