# Grants.gov Scraper: US Federal Grant Opportunities (`plain-build/grants-gov-opportunities-scraper`) Actor

US federal grant opportunities from the Grants.gov API: agency, title, status, deadline, estimated funding, award ceiling and floor, eligible applicants, funding categories and assistance listings. Open and forecasted grants, by keyword, agency and category. No login, no key; no contact persons.

- **URL**: https://apify.com/plain-build/grants-gov-opportunities-scraper.md
- **Developed by:** [Plain Build](https://apify.com/plain-build) (community)
- **Categories:** Lead generation, Open source
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.28 / 1,000 results

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

## Grants.gov Scraper: US Federal Grant Opportunities

This Grants.gov scraper returns US federal grant opportunities from the Grants.gov API: one row per opportunity with agency, title, status, posted and close dates, estimated funding, award ceiling and floor, eligible applicants, funding categories, assistance listings and link. Open and forecasted grants by keyword, agency, category and applicant type, or run it daily for new opportunities only. No login, no key; USD 1.50 per 1,000 results (USD 1.28 on Silver and above). This product uses the Grants.gov API but is not endorsed or certified by the U.S. Department of Health and Human Services.

### What it does

US federal grant opportunities from the Grants.gov API: agency, title, status, deadline, estimated funding, award ceiling and floor, eligible applicants, funding categories and assistance listings. Open and forecasted grants, by keyword, agency and category. No login, no key; no contact persons.

The data comes from Grants.gov (US Department of Health and Human Services) through its official API (https://www.grants.gov/api/api-guide). This Actor is not affiliated with, endorsed by or sponsored by Grants.gov (US Department of Health and Human Services). It reads only that API, one request at a time, and it checks robots.txt before the first request to each host.

### Who it is for

- Grant writers and consultants who track new federal funding for their clients by category, agency and eligibility.
- Nonprofits, universities, local governments and small businesses that watch for open and forecasted grants they can apply for.
- Grant-intelligence and CRM products that load federal opportunities with deadlines and award sizes every day.
- Analysts who follow federal funding by agency, category and assistance listing.

### Key features

- One row per Grants.gov opportunity: number, title, status, synopsis or forecast, agency and parent agency, category, funding instruments, funding categories, eligible applicants, assistance listings, posted, close and archive dates, last update, estimated funding, award ceiling and floor, expected awards, cost sharing, description snippet, eligibility note, agency information link and Grants.gov link.
- Forecasts add the fiscal year and the estimated posting, close, award and project start dates.
- Filters: keyword, statuses (posted, forecasted, closed, archived), agency codes with their sub-agencies, funding categories, eligible applicant types and posting date (at most 366 days back).
- Option new_since_last_run delivers and charges only opportunities you have not had for the same filters.
- The Grants.gov REST API without a key; agency contacts never read.
- Errors and empty results go to a separate errors dataset and are not charged.

### How it works

The Actor calls the Grants.gov REST API (api.grants.gov), which the API guide says needs no key for search2 and fetchOpportunity. It searches with your keyword, statuses, categories and applicant types, 1,000 opportunities a page, newest posted first, and keeps those of your agencies; with posted_after it stops at the first opportunity posted before it. Then it asks fetchOpportunity for each opportunity you have not had: one row per opportunity with number, title, status, agency and parent agency, category, funding instruments and categories, eligible applicants, assistance listings, posted, close and archive dates, estimated funding, award ceiling and floor, expected awards, cost sharing, the forecast's estimated dates and fiscal year, a description snippet, the eligibility note and the agency's information link. The agency contact (name, email, phone), the agency address and the publisher's user id are never read. Free text is cleaned the same way as all free text. One request at a time, 2 seconds after the answer to the one before; after a 429 or 503 answer the run waits the seconds the API names in Retry-After and tries again; it fails after 3 retries, or at once when the API asks for more than 2 minutes, without sending early.

### How to try it

1. Open the Input tab. The prefilled input returns 25 open or forecasted opportunities that match the keyword health, newest posted first.
2. Click Start. A run reads the search in pages of 1,000, then one detail request per opportunity, 2 seconds after the answer to the one before (about 2.2 to 2.9 seconds each), so the prefilled run takes about a minute; all 1,381 open and forecasted opportunities take about 55 minutes.
3. Open the Output tab to see the results as a table, or export them as JSON, CSV or Excel.

To get new opportunities every day, schedule a daily run with `new_since_last_run` on. Each run then delivers and charges only opportunities you have not had from this Actor for the same filters; an opportunity changed after you had it does not come again.

- An opportunity held back by `max_items` or your spending limit comes in a later run only after all newer ones, because the list is read newest posted first, and only while it is still listed: one that closes or is archived first is never delivered, without a notice. A first daily run finds all open and forecasted opportunities (1,381 on 20 Nov 2026), so with `max_items` 10 the oldest come only after about 140 runs. Raise `max_items` for the first run, add filters (keyword, agencies, categories, applicant types) or run more often.
- Each combination of keyword, statuses, agencies, categories and applicant types has its own memory, a key-value store named `grants-gov-opportunities-scraper-state` in your account. Delete it to start again.
- Two runs at the same time can deliver and charge the same opportunity, so leave a gap between scheduled runs.

On 20 Nov 2026 Grants.gov listed 790 posted and 591 forecasted opportunities; 16 were posted or forecasted in the last 7 days. Each opportunity costs one detail request, 2 seconds apart, so a large first run takes a while; a daily run reads only the new ones.

Notice required by the Grants.gov API terms: This product uses the Grants.gov API but is not endorsed or certified by the U.S. Department of Health and Human Services. The rows are selected and cleaned by this Actor (contacts removed, descriptions shortened); the full opportunity is on Grants.gov at the row's link.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `keyword` | string | "" | Search words, as on Grants.gov's search, for example clean energy. At most 200 characters. Leave empty for every opportunity. |
| `statuses` | array | \[] | Some of posted (open for applications), forecasted (announced before posting), closed and archived. Leave empty for posted and forecasted. closed and archived need posted_after. |
| `agencies` | array | \[] | Grants.gov agency codes, for example NSF, HHS or HHS-NIH11. A code also matches its sub-agencies (HHS matches HHS-NIH11). The codes are Grants.gov's, not the department names, and do not always nest by department (the DOE Office of Science is PAMS-SC, the Department of Transportation DOT, the Department of the Treasury USDOT, the Department of Justice USDOJ). Leave empty for every agency. |
| `funding_categories` | array | \[] | Grants.gov category codes, for example HL (Health), ED (Education), ST (Science and Technology), EN (Energy), ENV (Environment), AG (Agriculture), CD (Community Development). Leave empty for every category. |
| `eligibilities` | array | \[] | Grants.gov applicant codes, for example 23 (small businesses), 12 (nonprofits with 501(c)(3) status), 06 (public universities), 00 (state governments), 99 (unrestricted). Leave empty for every applicant type. |
| `posted_after` | string | "" | Date as YYYY-MM-DD, at most 366 days back. Only opportunities posted (or, for forecasts, announced) on or after it. Leave empty for every posted and forecasted opportunity; needed with closed or archived. |
| `new_since_last_run` | boolean | false | Deliver and charge only opportunities this Actor has not delivered to you before for the same keyword, statuses, agencies, categories and applicant types. An opportunity held back by Maximum results or your spending limit comes in a later run, after all newer ones (the list is read newest posted first), if it is still listed then. Delivered opportunities are remembered in a key-value store named grants-gov-opportunities-scraper-state in your account. |
| `max_items` | integer | 10 | How many results to return at most, from 1 to 10000. |

### Output

Each result has these fields. Missing values are `null`, never a different type.

| Field | Type | Description |
|---|---|---|
| `item_type` | string | Always `grant_opportunity` |
| `source_id` | string | grants-gov: and the opportunity id, for example grants-gov:356893 |
| `opportunity_id` | string | Grants.gov's opportunity id |
| `opportunity_number` | string or null | The agency's funding opportunity number, for example PAR-25-144 |
| `title` | string or null | The opportunity's title; at most 1,000 characters |
| `status` | string or null | posted, forecasted, closed or archived, as the search gives it |
| `notice_type` | string or null | synopsis (a posted opportunity) or forecast |
| `agency_code` | string or null | Grants.gov's agency code, for example HHS-NIH11 |
| `agency_name` | string or null | The agency, for example National Institutes of Health |
| `parent_agency_name` | string or null | The parent agency, for example Department of Health and Human Services |
| `category` | string or null | Discretionary, Mandatory, Continuation, Earmark or Other |
| `funding_instruments` | string or null | Grant, Cooperative Agreement, Procurement Contract or Other, separated by '; ' |
| `funding_categories` | string or null | Grants.gov funding categories, for example Health, separated by '; ' |
| `eligible_applicants` | string or null | Grants.gov applicant types, for example Small businesses, separated by '; ' |
| `assistance_listings` | string or null | Assistance Listing numbers (formerly CFDA) and program titles, separated by '; ' |
| `posted_date` | string or null | The day the opportunity or forecast was posted, YYYY-MM-DD |
| `close_date` | string or null | The application deadline, YYYY-MM-DD, when the opportunity gives one |
| `archive_date` | string or null | The day Grants.gov archives the opportunity, YYYY-MM-DD |
| `last_updated_at` | string or null | When the agency last changed the opportunity, ISO time in UTC |
| `estimated_total_funding` | number or null | The estimated total program funding in US dollars. Empty when not given |
| `award_ceiling` | number or null | The largest award in US dollars. Empty when not given, none or 0 |
| `award_floor` | number or null | The smallest award in US dollars. Empty when not given, none or 0 |
| `expected_awards` | integer or null | The expected number of awards |
| `cost_sharing` | boolean or null | True when cost sharing or matching is required |
| `fiscal_year` | integer or null | Forecasts: the fiscal year |
| `estimated_post_date` | string or null | Forecasts: the estimated posting day, YYYY-MM-DD |
| `estimated_close_date` | string or null | Forecasts: the estimated application deadline, YYYY-MM-DD |
| `estimated_award_date` | string or null | Forecasts: the estimated award day, YYYY-MM-DD |
| `estimated_project_start` | string or null | Forecasts: the estimated project start, YYYY-MM-DD |
| `description_snippet` | string or null | The first 300 characters of the description, as plain text |
| `eligibility_note` | string or null | The additional information on eligibility, as plain text; at most 1,000 characters |
| `info_url` | string or null | The agency's link for more information, without query |
| `url` | string | The opportunity's page on Grants.gov |
| `source_url` | string | The record on the source site |
| `fetched_at` | string | When the record was fetched, ISO 8601 UTC |
| `actor_version` | string | The build that produced the record |

Example item:

```json
{
  "item_type": "grant_opportunity",
  "source_id": "<source_id>",
  "opportunity_id": "<opportunity_id>",
  "opportunity_number": "<opportunity_number>",
  "title": "<title>",
  "status": "<status>",
  "notice_type": "<notice_type>",
  "agency_code": "<agency_code>",
  "agency_name": "<agency_name>",
  "parent_agency_name": "<parent_agency_name>",
  "category": "<category>",
  "funding_instruments": "<funding_instruments>",
  "funding_categories": "<funding_categories>",
  "eligible_applicants": "<eligible_applicants>",
  "assistance_listings": "<assistance_listings>",
  "posted_date": "<posted_date>",
  "close_date": "<close_date>",
  "archive_date": "<archive_date>",
  "last_updated_at": "<last_updated_at>",
  "estimated_total_funding": 0,
  "award_ceiling": 0,
  "award_floor": 0,
  "expected_awards": 0,
  "cost_sharing": true,
  "fiscal_year": 0,
  "estimated_post_date": "<estimated_post_date>",
  "estimated_close_date": "<estimated_close_date>",
  "estimated_award_date": "<estimated_award_date>",
  "estimated_project_start": "<estimated_project_start>",
  "description_snippet": "<description_snippet>",
  "eligibility_note": "<eligibility_note>",
  "info_url": "<info_url>",
  "url": "<url>",
  "source_url": "<source_url>",
  "fetched_at": "2026-11-04T09:30:00Z",
  "actor_version": "0.1.1"
}
```

Free-text fields are cleaned before delivery: email addresses, phone numbers, @handles and person names introduced by words such as "contact", "recruiter", "founder" or "manager" are replaced with `[removed]`. The cleaning follows fixed rules, so a name written elsewhere in the text, or in lower case, can remain.

### What it does not do

- One row per opportunity, not per change: a daily run does not deliver an opportunity again when the agency changes its deadline or amounts, nor when a forecast is posted as an open opportunity (it keeps its id). Run without new_since_last_run to read the current values. With posted_after, an opportunity that gives no posting date in the search or in its detail is left out.
- Each opportunity costs one detail request, 2 seconds after the answer to the one before (about 2.2 to 2.9 seconds each): all 1,381 open and forecasted opportunities of 20 Nov 2026 take about 55 minutes. Closed and archived opportunities posted in one year were 1,981 (20 Nov 2025 to 20 Nov 2026), about 80 minutes. The default run timeout is 1 hour, which holds about 1,300 opportunities: raise it to 2 hours for more; a run that nears its timeout delivers what it has and says so.
- The description is cut to its first 300 characters and the eligibility note to 1,000; the full text, the documents and the application package are on Grants.gov.
- Values are as the agency entered them: estimated funding, award ceiling and floor and the close date are often empty, and an award ceiling of 0 or none is delivered empty.
- The agency filter matches Grants.gov agency codes and their sub-agencies (HHS matches HHS-NIH11), applied by the Actor to the search's results; the keyword, status, category and applicant filters are Grants.gov's own.
- Contacts are not returned: the agency contact's name, email and phone, the agency address and the publisher's user id are never read. Emails, phones and names after words such as contact are removed from the description and eligibility note; a name without such a word before it ("ask Jane Roe") can stay. The agency's information link loses its query and is left out when it holds an @ or a phone number written with separators (301-555-0100); a name or a number without separators in its path stays, and a web address without https:// (www. or a .gov, .com, .org or similar host) gets it; a file name is no link.
- Dates are the agency's calendar days as Grants.gov gives them (YYYY-MM-DD), without a time zone; the last update is a time in UTC.
- Notice required by the Grants.gov API terms: This product uses the Grants.gov API but is not endorsed or certified by the U.S. Department of Health and Human Services. The rows are selected and cleaned by this Actor; the full opportunity is on Grants.gov.

### How much it costs

You pay per result delivered to the default dataset. Errors and empty results are written to a separate `errors` dataset and are never charged.

| Plan tier | Price per 1,000 results |
|---|---|
| Free and Bronze | USD 1.50 |
| Silver and above | USD 1.28 |

Example: a run that delivers 1,000 results costs USD 1.50 on the Free and Bronze tiers and USD 1.28 on Silver and above, plus the platform's start event of USD 0.00005. If you set a maximum cost per run, the Actor stops before it would go over it and delivers nothing it cannot charge for.

### Other Actors in this family

This Actor is part of a family of job and public-data scrapers built on the same core: one result per charge, a separate uncharged errors dataset, and no person fields. Links follow as the other Actors are published.

### FAQ and support

- **Is there personal data in the output?** No personal data by design. The output holds facts about federal grant opportunities and the agencies that offer them. The agency contact (name, email, phone), the agency address and the publisher's user id are never read. Emails, phones and names after words such as contact are removed from the description and the eligibility note.
- **Is the data accurate?** The data comes from the Grants.gov API as agencies publish it. Accuracy is not guaranteed. The Grants.gov API terms provide the API "as is"; check deadlines and amounts on Grants.gov before you apply.
- **Who runs this Actor?** It is not affiliated with Grants.gov (US Department of Health and Human Services).
- **How is the data collected?** The official API or open data is used where the source offers it. This Actor uses only the official Grants.gov (US Department of Health and Human Services) API.
- **How do I get new federal grants every day?** Schedule a daily run with new_since_last_run on and your keyword, agencies, categories or applicant types. Each run delivers and charges only opportunities you have not had for the same filters.
- **Does it return forecasted grants?** Yes. Forecasts come with the status forecasted, the notice type forecast, the fiscal year and the estimated posting, close, award and project start dates.
- **Do I need an API key?** No. The Grants.gov API guide says search2 and fetchOpportunity need no authentication.
- **Can I use the data commercially?** The Grants.gov API terms allow you to search, display, analyze and retrieve the data and ask for the notice "This product uses the Grants.gov API but is not endorsed or certified by the U.S. Department of Health and Human Services". The data is made by US federal agencies. This is an open reading, not a legal opinion. Not affiliated with Grants.gov or the US government.
- **What may I do with the data?** You are responsible for complying with the law and with the source's terms when you use the data.
- **Something is broken.** Open an issue on the Issues tab with the run link and your input. Issues are answered by the automated maintainer.

# Changelog

This Actor's version history is a separate document: https://apify.com/plain-build/grants-gov-opportunities-scraper/changelog.md

# Actor input Schema

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

Search words, as on Grants.gov's search, for example clean energy. At most 200 characters. Leave empty for every opportunity.

## `statuses` (type: `array`):

Some of posted (open for applications), forecasted (announced before posting), closed and archived. Leave empty for posted and forecasted. closed and archived need posted_after.

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

Grants.gov agency codes, for example NSF, HHS or HHS-NIH11. A code also matches its sub-agencies (HHS matches HHS-NIH11). The codes are Grants.gov's, not the department names, and do not always nest by department (the DOE Office of Science is PAMS-SC, the Department of Transportation DOT, the Department of the Treasury USDOT, the Department of Justice USDOJ). Leave empty for every agency.

## `funding_categories` (type: `array`):

Grants.gov category codes, for example HL (Health), ED (Education), ST (Science and Technology), EN (Energy), ENV (Environment), AG (Agriculture), CD (Community Development). Leave empty for every category.

## `eligibilities` (type: `array`):

Grants.gov applicant codes, for example 23 (small businesses), 12 (nonprofits with 501(c)(3) status), 06 (public universities), 00 (state governments), 99 (unrestricted). Leave empty for every applicant type.

## `posted_after` (type: `string`):

Date as YYYY-MM-DD, at most 366 days back. Only opportunities posted (or, for forecasts, announced) on or after it. Leave empty for every posted and forecasted opportunity; needed with closed or archived.

## `new_since_last_run` (type: `boolean`):

Deliver and charge only opportunities this Actor has not delivered to you before for the same keyword, statuses, agencies, categories and applicant types. An opportunity held back by Maximum results or your spending limit comes in a later run, after all newer ones (the list is read newest posted first), if it is still listed then. Delivered opportunities are remembered in a key-value store named grants-gov-opportunities-scraper-state in your account.

## `max_items` (type: `integer`):

How many results to return at most. You pay per result delivered.

## Actor input object example

```json
{
  "keyword": "health",
  "statuses": [],
  "agencies": [],
  "funding_categories": [],
  "eligibilities": [],
  "posted_after": "",
  "new_since_last_run": false,
  "max_items": 25
}
```

# Actor output Schema

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

One item per grant opportunity.

## `errors` (type: `string`):

Records that could not be delivered, and queries with no results. Not charged.

# 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": "health",
    "max_items": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("plain-build/grants-gov-opportunities-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 = {
    "keyword": "health",
    "max_items": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("plain-build/grants-gov-opportunities-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 '{
  "keyword": "health",
  "max_items": 25
}' |
apify call plain-build/grants-gov-opportunities-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plain-build/grants-gov-opportunities-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/f5hpBazUbgPFTGuSE/builds/zYKGSZqhd6Mdh34P4/openapi.json
