# NIH RePORTER Biomedical Grant Awards & Lab Funding Scraper (`groundplanes/nih-reporter-biomedical-grant-pi-scraper`) Actor

Scrape official NIH RePORTER v2 API for biomedical research grants, award amounts, project abstracts, funded institutions, and principal investigators. Keyless official REST API with pagination slicing.

- **URL**: https://apify.com/groundplanes/nih-reporter-biomedical-grant-pi-scraper.md
- **Developed by:** [Groundplane Labs](https://apify.com/groundplanes) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 grant records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Biomedical Grant Awards & Lab Funding Scraper

Extract official biomedical research grant awards, funded project details, funding amounts, recipient organizations, scientific abstracts, and Principal Investigator (PI) research profiles directly from the official National Institutes of Health (NIH) RePORTER v2 API.

> This actor is an independently developed tool and is not affiliated with, endorsed by, or sponsored by the National Institutes of Health (NIH) or the US Department of Health and Human Services (HHS).

### What it does

- **Biomedical Research Grants:** Queries official NIH RePORTER v2 REST API records covering newly awarded and active research grants (R01, R21, SBIR/STTR R43/R44, U01, K-series, etc.).
- **Funding & Award Tracking:** Delivers verified award amounts in USD, fiscal years, award notice dates, and project performance periods.
- **Principal Investigator Directory:** Extracts Principal Investigator names, NIH profile IDs, project roles (Contact PI vs multi-PI), and academic titles as published in official grant records.
- **Scientific Abstracts & Research Scope:** Captures the full scientific abstract text, allowing vendors and analysts to pinpoint specific reagents, technologies, diseases, and experimental models.
- **Offset Ceiling Protection:** Automatically slices multi-year and multi-mechanism queries to navigate the NIH API offset ceiling (14,999 records) without silent truncation.
- **Zero Email Harvesting:** In strict adherence to source facts and privacy standards, this actor extracts only public award records and institutional contacts. It does not perform unverified cross-source email scraping.

### Who it is for

- **Laboratory Equipment & Reagent Vendors:** Identify newly funded biomedical labs and academic researchers the week their grant funding lands.
- **Contract Research Organizations (CROs):** Find principal investigators with active grants in relevant therapeutic areas (oncology, neuroscience, immunology, genomics).
- **Life Sciences B2B Sales Teams:** Target academic medical centers, universities, and research institutes with active budgets.
- **Academic Grant Analysts:** Track NIH institute funding allocations, award trends, and institutional award distributions.

### Source & Update Cadence

- **Source:** Official NIH RePORTER API v2 (`https://api.reporter.nih.gov/v2/projects/search`). Keyless public REST API.
- **Cadence:** NIH updates RePORTER weekly with newly awarded grants, administrative supplements, and project modifications.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `fiscalYears` | array of integer | `[2026, 2027]` | Federal fiscal years to query (e.g. 2026, 2027). |
| `searchText` | string | `"CRISPR"` | Keyword or topic phrase to search for in project records. |
| `searchFields` | string | `"projecttitle,terms,abstract"` | Target fields for search: `projecttitle,terms,abstract` or `all`. |
| `orgNames` | array of string | `[]` | Filter by recipient organization names. Empty queries all. |
| `orgStates` | array of string | `["MA", "CA", "NY", "TX", "MD"]` | 2-letter US state postal codes of recipient institutions. |
| `activityCodes` | array of string | `["R01", "R21", "R43", "R44", "U01"]` | NIH mechanism activity codes. |
| `newlyAddedOnly` | boolean | `true` | When true, queries projects flagged by NIH as newly added. Set to false to search all historical grants. |
| `minAwardAmountUsd` | integer | `250000` | Minimum award funding amount in US dollars. |
| `maxItems` | integer | `1000` | Maximum number of projects to return. |

#### Labeled Canary Input

```json
{
  "fiscalYears": [2026],
  "searchText": "CRISPR",
  "searchFields": "projecttitle,terms,abstract",
  "orgStates": ["MA"],
  "activityCodes": ["R01"],
  "newlyAddedOnly": false,
  "minAwardAmountUsd": 250000,
  "maxItems": 5
}
```

### Output

One row per awarded research grant project.

| Field | Type | Description |
|---|---|---|
| `applId` | integer | Unique NIH RePORTER application identifier. |
| `projectNum` | string | Full NIH grant project number (e.g. 1R01CA310785-01). |
| `activityCode` | string or null | NIH activity mechanism code (e.g. R01, R21). |
| `projectTitle` | string | Official title of research project. |
| `agencyIcAdmin` | string or null | Administering NIH Institute or Center (e.g. National Cancer Institute). |
| `fiscalYear` | integer or null | Fiscal year of award. |
| `awardAmountUsd` | integer or null | Total award amount in USD. |
| `awardNoticeDate` | string or null | Date the Notice of Award was issued (YYYY-MM-DD). |
| `projectStartDate` | string or null | Project start date (YYYY-MM-DD). |
| `projectEndDate` | string or null | Project end date (YYYY-MM-DD). |
| `organizationName` | string or null | Legal name of awardee research institution. |
| `organizationCity` | string or null | City of recipient organization. |
| `organizationState` | string or null | State code of recipient organization. |
| `organizationType` | string or null | Classification of organization (e.g. Independent Hospitals, Higher Education). |
| `contactPiName` | string or null | Name of Contact Principal Investigator as published. |
| `principalInvestigators` | array of object | Principal Investigators including profileId, names, role, and academic title. |
| `programOfficialName` | string or null | Name of assigned NIH Program Official. |
| `abstractText` | string or null | Scientific abstract text describing research project. |
| `projectDetailsUrl` | string | Direct link to NIH RePORTER public project detail page. |

#### Sample Row (Real Live NIH RePORTER Data)

```json
{
  "applId": 11329854,
  "projectNum": "1R01CA310785-01",
  "activityCode": "R01",
  "projectTitle": "A CRISPR-based sensitive liquid biopsy for endometrial cancer using tumor-derived hallmarks (CRISPR SLEUTH)",
  "agencyIcAdmin": "National Cancer Institute",
  "fiscalYear": 2026,
  "awardAmountUsd": 650513,
  "awardNoticeDate": "2026-05-18",
  "projectStartDate": "2026-05-14",
  "projectEndDate": "2030-04-30",
  "organizationName": "MASSACHUSETTS GENERAL HOSPITAL",
  "organizationCity": "BOSTON",
  "organizationState": "MA",
  "organizationType": "Independent Hospitals",
  "contactPiName": "CASTRO, CESAR M",
  "principalInvestigators": [
    {
      "profileId": 1949625,
      "firstName": "Cesar",
      "lastName": "Castro",
      "isContactPi": true,
      "title": "ASSOCIATE PROFESSOR OF MEDICINE"
    },
    {
      "profileId": 9797123,
      "firstName": "Hakho",
      "lastName": "Lee",
      "isContactPi": false,
      "title": "PROFESSOR / MGH SCHOLAR"
    }
  ],
  "programOfficialName": "JUNG SHIN BYUN",
  "abstractText": "Endometrial cancer (EC) exhibits increasing incidence and mortality rates... We recently achieved a technical breakthrough in EV assays through the novel use of a CRISPR approach...",
  "projectDetailsUrl": "https://reporter.nih.gov/project-details/11329854"
}
```

### Troubleshooting & Data Notes

- **Zero Matches with `newlyAddedOnly: true`:** The `newlyAddedOnly` flag restricts results exclusively to projects marked as newly added by NIH during the latest weekly cycle (typically under 100 grants across the entire NIH catalogue). If your search terms or state filters return zero records, set `newlyAddedOnly: false` to search all active and awarded grants for the selected fiscal years.
- **Zero Matches for a Whole Fiscal Year:** Some fiscal years in the accepted range legitimately contain no NIH projects at all (for example very early or future years). That is a healthy zero: the run completes with the zero-match message, not a schema drift failure.
- **Contact Patterns in Free Text:** NIH project abstracts and titles are shipped as published, except that any email address or phone number pattern appearing inside them is replaced with `[redacted]` before output. The run status counts state how many patterns were scrubbed.
- **Rate Limits & Backoff:** NIH RePORTER enforces a recommended pacing of roughly 1 request per second. This actor automatically spaces calls by 1,100 ms and implements exponential backoff on HTTP 429 throttling.
- **Offset Ceiling:** NIH RePORTER limits deep pagination to offset 14,999. The actor automatically slices wide searches by fiscal year and activity code, sub-slicing by state when necessary to stay beneath the limit.

If this keeps happening, please open an issue on this actor's Issues tab and we'll fix it fast.

### Changelog

- **0.1 (2026-11-01):** Initial release. Full support for NIH RePORTER v2 API project search, automated multi-slice pagination, PI roster extraction, and count reconciliation.
- **0.1.1 (2026-11-02):** CEO fix round. Fixed a crash when a record has no `organization_type` but carries an organization `dept_type`. Expanded the core-field sentinel to every field the actor reads, filters on, dedupes on, or headlines, checked on the baseline and on every page. Invalid state codes, fiscal years, activity codes, and search fields now fail as input errors (the API silently returns zero rows for an unknown state code). `searchFields` value `all` is sent as the API's exact `All` token, and `abstract` maps to the API field `abstracttext`. Dates, amounts, and PI flags that arrive in a new format variant are parsed by format family or counted as unparseable rows, never silently nulled. Any skipped row now makes the run PARTIAL with the count stated. Sub-slices are probed individually and slice completeness is judged against each slice's own reported total.
- **0.1.2 (2026-11-02):** Red Team fix round. The core-field sentinel now checks every row of every page and every nested entry: all Principal Investigator entries, all program officer entries, and the inner fields of `agency_ic_admin` and `organization_type` that the actor reads (in 0.1.1 it checked the first row of each page and the first PI entry only). Organization city now passes under either of its source names, `org_city` or `city`, matching what the actor reads. Integer fields (award amounts, fiscal years, identifiers) accept only values that parse exactly: a fractional or negative value is counted as an unparseable row and disclosed, never rounded or silently altered, and a present-but-empty value in a parsed or core field counts the same way instead of shipping as a clean null. A fiscal year that legitimately contains no NIH projects now completes with the zero-match message instead of failing as schema drift: the baseline probes each requested fiscal year and checks the first one that returns rows. The code-level default for `searchText` is now `CRISPR`, matching the spec and this README, so a run that omits it no longer scans unfiltered. Activity codes and state codes are de-duplicated after case normalisation, so the same slice is never probed or counted twice. Hollow program officer entries are dropped and counted like hollow PI entries. Email and phone patterns appearing inside shipped free-text fields (for example an abstract) are scrubbed before output, and the scrub count is stated in the run status counts.
- **0.1.3 (2026-11-02):** Red Team fix round 2. The present-but-empty rule now covers every core-field read path, not only the transform's main path: the institute name and abbreviation (`agency_ic_admin`), the organization type and its `dept_type` fallbacks, the organization city chain (`org_city` / `city`), and PI first and last names all classify a present-but-empty string as an unparseable row instead of shipping a silent null, and a present-but-empty Principal Investigator list counts the same way. Two shapes are classified as the source's own null representations on live evidence and keep shipping as nulls: an empty PI `title` (common in live records) and an empty `program_officers` list. The phone scrubber now covers the full NANP format family, including contiguous and single-separator numbers, which previously shipped verbatim. `searchFields` entries are de-duplicated after normalisation, so two spellings of one field are sent to the API once.

# Actor input Schema

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

NIH mechanism activity codes (e.g. R01, R21, R43, R44, U01).

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

Federal fiscal years to query (e.g. 2026, 2027). Defaults to \[2026, 2027].

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

Maximum number of projects to return.

## `minAwardAmountUsd` (type: `integer`):

Minimum award amount in US dollars.

## `newlyAddedOnly` (type: `boolean`):

If true, queries only projects flagged by NIH as newly added in RePORTER.

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

Filter by recipient organization name(s). Leave empty for all.

## `orgStates` (type: `array`):

Filter by 2-letter US state postal codes of the recipient organization.

## `searchFields` (type: `string`):

Target fields for keyword search: projecttitle,terms,abstract (or 'all').

## `searchText` (type: `string`):

Keyword or topic phrase to search for in project records.

## Actor input object example

```json
{
  "activityCodes": [
    "R01",
    "R21",
    "R43",
    "R44",
    "U01"
  ],
  "fiscalYears": [
    2026,
    2027
  ],
  "maxItems": 1000,
  "minAwardAmountUsd": 250000,
  "newlyAddedOnly": true,
  "orgNames": [],
  "orgStates": [
    "MA",
    "CA",
    "NY",
    "TX",
    "MD"
  ],
  "searchFields": "projecttitle,terms,abstract",
  "searchText": "CRISPR"
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("groundplanes/nih-reporter-biomedical-grant-pi-scraper").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("groundplanes/nih-reporter-biomedical-grant-pi-scraper").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 groundplanes/nih-reporter-biomedical-grant-pi-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,groundplanes/nih-reporter-biomedical-grant-pi-scraper"
        }
    }
}
```

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/Sq61ffLzFyb9c5tlo/builds/sL58NhzG5JjL6SKYW/openapi.json
