# Search NIH RePORTER

Search and read NIH RePORTER records through the Assyro API: research projects NIH (and AHRQ, CDC, FDA, HRSA, the VA) funded in the last ten published fiscal…

Source: https://www.assyro.com/docs/sources/nih-reporter

`GET https://api.assyro.com/v1/sources/nih-reporter/search`

> **Note:** Preview: `api.assyro.com` is not serving production data yet. This page follows the API's published description and may change before launch.

Search and read NIH RePORTER records from your own code: research projects NIH (and AHRQ, CDC, FDA, HRSA, the VA) funded in the last ten published fiscal years: title, abstract, institute, activity code, organization, investigators, periods and costs, and the PubMed papers NIH links to each project. Published by National Institutes of Health (RePORTER / ExPORTER) ([reporter.nih.gov](https://reporter.nih.gov/)); answered from Assyro's copy, refreshed weekly Sunday 06:50 UTC.

> **Warning:** Attribution required: every record carries `attribution`. Show it wherever you show the data: "Source: NIH RePORTER ExPORTER files (National Institutes of Health, reporter.nih.gov), Open Database License via HealthData.gov; reformatted by Assyro, content not modified." See the [terms](https://opendatacommons.org/licenses/odbl/1.0/).

Example: "Which NIH grants fund CAR-T research in solid tumors, and at which institutions?"

## Search

`GET https://api.assyro.com/v1/sources/nih-reporter/search` with any of these query parameters. Repeat a parameter for a list (`?phase=PHASE2&phase=PHASE3`). An unknown parameter is refused by name.

### Search parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Words in the title, abstract, terms or public health relevance, e.g. "CAR-T solid tumor" or "GLP-1 obesity adolescents". |
| `projectNumber` | string | no | An NIH project number, core or full, e.g. "R01CA123456" or "5R01CA123456-07". |
| `pmid` | string | no | A PubMed ID: the projects NIH links to that paper, e.g. "39370451". |
| `organization` | string | no | The funded institution, e.g. "University of Pennsylvania". |
| `investigator` | string | no | A principal investigator's name, as RePORTER writes it ("LAST, FIRST"), e.g. "June, Carl". |
| `institute` | string | no | The administering institute's code, e.g. "CA" (NCI), "AI" (NIAID), "HL" (NHLBI), "DK" (NIDDK). |
| `activity` | string | no | The activity code, e.g. "R01", "U01", "R43" (SBIR), "P30". |
| `fiscalYear` | integer | no | One fiscal year, e.g. 2024. |
| `yearFrom` | integer | no | Fiscal years from this one. |
| `yearTo` | integer | no | Fiscal years up to this one. |
| `limit` | integer | no | Projects to return, default 8. |
| `offset` | integer | no | Skip this many results (for paging), default 0. |

Each result is a record; read one in full with [Get a record](https://www.assyro.com/docs/sources/nih-reporter/records).

## What a record holds

- `id`, `title`, `url`: the source's identifier, its title and its page at the source, to verify it.
- `authority`, `publishedDate`, `version`: who published it, when, and the edition read.
- `snippet` and `fields`: the matching text and the source's own fields.
- `asOf`: the day Assyro's copy of the source was read.
- `attribution`: the attribution the licence requires.

## Example request

curl:

```bash
curl "https://api.assyro.com/v1/sources/nih-reporter/search?query=CAR-T+solid+tumor"
```

Python:

```python
import requests

response = requests.get(
    "https://api.assyro.com/v1/sources/nih-reporter/search",
    params={
        "query": "CAR-T solid tumor"
    },
)
response.raise_for_status()
print(response.json())
```

JavaScript:

```javascript
const response = await fetch("https://api.assyro.com/v1/sources/nih-reporter/search?query=CAR-T+solid+tumor");
const result = await response.json();
```
