# NIH and NSF Research Grants Feed: New Awards (`thoob/federal-research-awards-feed`) Actor

New NIH RePORTER and NSF research awards matching a keyword, newest first: award ID, title, organization, location, PI, amount, dates, program, abstract snippet and source URL. Public APIs, no key needed. Billed only per delivered award row.

- **URL**: https://apify.com/thoob/federal-research-awards-feed.md
- **Developed by:** [Pono Data](https://apify.com/thoob) (community)
- **Categories:** Lead generation, 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.10 / 1,000 research awards

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 and NSF Research Grants Feed: New Awards

This actor returns recent research awards from NIH RePORTER and the NSF Awards API that match a keyword, newest first. It is for grant officers, research sales teams, analysts and journalists who track who gets funded for what.

### What you get

- Award: `source`, `awardId`, `projectNumber` (NIH only), `title`, `program`, `abstractSnippet` (first 500 characters)
- Recipient: `organization`, `city`, `state`, `country`, `piName`
- Money: `amount`, `amountType` (obligated for NSF, awarded for NIH)
- Dates: `startDate`, `endDate`, `awardDate` (YYYY-MM-DD)
- Provenance: `sourceUrl`, `retrievedAt`

### Input

```json
{
  "keyword": "semiconductor",
  "agencies": ["nsf", "nih"],
  "daysBack": 180,
  "maxRecords": 20,
  "onlyNew": false
}
```

- `keyword` is required.
- `agencies`: nsf, nih or both. Unknown entries and duplicates are dropped with a warning.
- `daysBack` covers the last N days through today, UTC. `since` and `until` (YYYY-MM-DD) set an exact window; `since` replaces `daysBack`.
- `onlyNew` delivers only awards not seen in earlier runs, tracked in the key-value store `federal-research-awards-feed-seen` (newest 20,000 keys).
- `maxRecords` caps billed rows, 0 means no cap. With both agencies, NIH gets half (rounded down) and NSF the rest plus anything NIH did not use.

### Output

Illustration only, values are placeholders:

```json
{
  "source": "NSF",
  "awardId": "2535466",
  "projectNumber": null,
  "title": "Example semiconductor research project",
  "organization": "Example University",
  "city": "Example City",
  "state": "CA",
  "country": "US",
  "piName": "Jane Doe",
  "amount": 300000,
  "amountType": "obligated",
  "startDate": "2025-09-01",
  "endDate": "2028-08-31",
  "awardDate": "2025-08-24",
  "program": "Example Program",
  "abstractSnippet": "Example abstract text ...",
  "sourceUrl": "https://api.nsf.gov/services/v1/awards/2535466.json",
  "retrievedAt": "2026-01-15T12:00:00Z"
}
```

NIH rows come first, then NSF rows, each newest first.

### Who uses it

- University research offices who track new awards in a field by `organization` and `piName`.
- Lab equipment and software vendors who find newly funded groups using `amount` and `startDate`.
- Grant consultants who review `program` and `abstractSnippet` to see what agencies fund.
- Science reporters who follow new awards on a topic set in `keyword`.

### Pricing

Pay per event `award-record`: USD 3.00 per 1,000 delivered award rows. Only delivered award rows are charged; every other row is free, and the actor writes no other rows. A failed request is a log warning, and awards skipped by `onlyNew` are neither delivered nor billed. No page is fetched that your spend limit or `maxRecords` could not bill.

### Limits

- Values are copied as the source gives them: NSF country is a code (US), NIH country a name (UNITED STATES). Missing values are null.
- NSF amounts are obligated funds, NIH amounts are award amounts; they are not directly comparable.
- NSF is searched one day at a time, so a 180-day window can take about 3 minutes.
- NIH search stops at offset 14,999 per run.
- If one source keeps failing, its walk stops with a warning and the other source continues.

### FAQ

#### What input is needed?

`keyword` is required. `agencies` chooses NIH, NSF or both, and `daysBack`, or `since` and `until`, set the date window.

#### How do I tell NIH and NSF rows apart?

`source` shows which agency a row came from. `sourceUrl` links to the award record.

#### What does an empty result mean?

No award matched the keyword, agencies and date window. Searches with no match are not billed.

#### Can it run on a schedule or through the API?

Yes, through Apify Schedules or the Apify API. Turn on `onlyNew` for repeat runs so that only awards not delivered before are returned.

### Compliance

- Public sources only, through documented public endpoints: `api.nsf.gov/services/v1/awards.json` and `api.reporter.nih.gov/v2/projects/search`. No API key, no login.
- Honest User-Agent: `PonoDataActors/1.0 (+https://ponodata.com)`.
- Requests are paced (500 ms apart for NSF, 1.1 s for NIH) and retried only on 429 and 5xx errors.

# Actor input Schema

## `keyword` (type: `string`):

Search text sent to both sources. Trimmed; an empty value is an error.

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

nsf, nih or both, case-insensitive. Unknown entries and duplicates are dropped with a warning. An empty result is an error.

## `daysBack` (type: `integer`):

Window covers the last N days through today, UTC. Ignored when Since is set.

## `since` (type: `string`):

Optional start date, YYYY-MM-DD. Replaces Days back. Must not be after Until.

## `until` (type: `string`):

Optional end date, YYYY-MM-DD. Defaults to today, UTC.

## `onlyNew` (type: `boolean`):

Deliver only awards not seen in earlier runs, tracked in the key-value store federal-research-awards-feed-seen (newest 20,000 keys). Skipped awards are not billed.

## `maxRecords` (type: `integer`):

Cap on delivered, billed award rows. 0 means no cap. With both agencies NIH gets half, rounded down, and NSF the rest plus what NIH left unused. The platform spend cap is honored regardless.

## Actor input object example

```json
{
  "keyword": "semiconductor",
  "agencies": [
    "nsf",
    "nih"
  ],
  "daysBack": 180,
  "onlyNew": false,
  "maxRecords": 20
}
```

# Actor output Schema

## `awards` (type: `string`):

One row per delivered award.

# 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 = {
    "keyword": "semiconductor",
    "agencies": [
        "nsf",
        "nih"
    ],
    "daysBack": 180,
    "maxRecords": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("thoob/federal-research-awards-feed").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 = {
    "keyword": "semiconductor",
    "agencies": [
        "nsf",
        "nih",
    ],
    "daysBack": 180,
    "maxRecords": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("thoob/federal-research-awards-feed").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 '{
  "keyword": "semiconductor",
  "agencies": [
    "nsf",
    "nih"
  ],
  "daysBack": 180,
  "maxRecords": 20
}' |
apify call thoob/federal-research-awards-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thoob/federal-research-awards-feed"
        }
    }
}
```

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/nS4zv4LS4hkrHkrfs/builds/LzrcovEV8aThxX25F/openapi.json
