# Federal Grants Database | Grants.gov Data | $1.10 / 1K (`bovi/grants-scraper`) Actor

Collect federal grant opportunities from Grants.gov without login or an API key. Run with keyword, status, agency, funding category, eligibility, ALN, and dates. Get structured records with IDs, titles, agencies, statuses, ALNs, and source links.

- **URL**: https://apify.com/bovi/grants-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** Lead generation, 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 $1.10 / 1,000 federal grants database | grants.gov data | $1.5 / 1ks

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

## Grants.gov Federal Grants Scraper

This Actor collects federal grant opportunities from the public Grants.gov API, with no Grants.gov login or API key needed. It outputs IDs, titles, agencies, dates, statuses, ALNs, and source links for grant monitoring, applicant research, and funding analysis. It supports search and opportunity-detail requests; Free-plan pricing is detailed below.

- Search opportunity titles and descriptions by keyword; multiple words are treated as OR terms.
- Filter opportunities by status, agency, funding category, applicant eligibility, ALN, and opening date on or after a chosen date.
- Monitor posted and forecasted opportunities for grant prospecting or internal funding research.
- Fetch synopsis, award ranges, eligibility, and attachments with `includeDetails` enabled.

### What you get

The Actor uses Grants.gov's `search2` and `fetchOpportunity` endpoints. See the [Grants.gov search2 documentation](https://www.grants.gov/api/common/search2), [fetchOpportunity documentation](https://www.grants.gov/api/common/fetchopportunity), and [API guide](https://www.grants.gov/api/api-guide).

| Field(s) | Type | Description |
|---|---|---|
| `id`, `number`, `title` | string | Grants.gov opportunity ID, opportunity number, and title. |
| `agencyCode`, `agency`, `department` | string | Owning agency code, agency name, and parent department name when returned by the detail endpoint. `department` is omitted from basic records. |
| `openDate`, `closeDate` | ISO 8601 string | Opportunity opening and closing dates when supplied by Grants.gov. |
| `oppStatus`, `docType` | string | Opportunity status and Grants.gov document type. |
| `alns` | array of strings | Assistance Listing Numbers associated with the opportunity. |
| `synopsis`, `eligibilityDescription` | string | Opportunity synopsis and additional eligibility text. Email addresses and phone numbers are redacted from these free-text fields. |
| `awardFloor`, `awardCeiling`, `estimatedFunding` | number | Minimum award, maximum award, and estimated total funding when provided. |
| `expectedAwards` | integer | Expected number of awards when provided. |
| `costSharing` | boolean | Whether cost sharing is required when provided. |
| `fundingInstruments`, `eligibleApplicants`, `categoryOfFunding` | array of strings | Funding instruments, eligible applicant types, and funding activity categories when returned by the detail endpoint. |
| `opportunityCategory` | string | Grants.gov opportunity category when returned by the detail endpoint. |
| `lastUpdated` | ISO 8601 string | Last updated date when supplied by Grants.gov. |
| `attachments` | array of objects | Announcement and supporting files, with `name` and `url` values when available. |
| `detailsFetched` | boolean | Indicates whether the full opportunity detail request succeeded; present when full details are requested. |
| `sourceUrl` | string | Grants.gov opportunity detail page. |
| `scrapedAt` | ISO 8601 string | UTC time when the record was collected. |

Basic records contain search-result fields. With `includeDetails` enabled, the Actor makes one extra API request per opportunity and adds detail fields when Grants.gov provides them.

### Sample output

Example record:

```json
{
  "id": "364160",
  "number": "NOAA-OAR-CPO-2027-33392",
  "title": "Climate Program Office FY 2027 - Super Intelligence/Machine Learning Innovation to Advance NOAA's Earth System Science and Support Hazard",
  "agencyCode": "DOC-DOCNOAAERA",
  "agency": "DOC NOAA - ERA Production",
  "openDate": "2026-10-27",
  "closeDate": "2027-02-09",
  "oppStatus": "posted",
  "docType": "synopsis",
  "alns": ["11.431"],
  "sourceUrl": "https://www.grants.gov/search-results-detail/364160",
  "scrapedAt": "2026-10-28T11:24:37.839976+00:00"
}
```

### Pricing

The live pricing model is pay per event. The listed charge events are:

| Charge event | Price (Free plan) | What it covers |
|---|---:|---|
| `apify-actor-start` | $0.00005 per event | Charged when the Actor starts running. |
| `apify-default-dataset-item` | $0.0011 per event | One scraped result with all fields. |

The `apify-actor-start` event is charged once per GB of run memory, with a minimum of one event. `maxResults` bounds the number of records saved. Enabling `includeDetails` does not change the per-result price.

1,000 results cost $1.10005 on the Free plan (1,000 × $0.0011 + $0.00005 for one Actor Start event).

10,000 results cost $11.00005 on the Free plan (10,000 × $0.0011 + $0.00005 for one Actor Start event).

The Apify Free plan includes **$5 of monthly platform usage credit**. After one Actor Start event, the **$5 credit covers 4,545 result items** at the Free-plan dataset-item price.

You pay only for the events listed above. This Actor does not use the Pay per event + usage option, so the platform usage of your runs (compute, proxy traffic and storage) is not billed to you separately.

### How to use

1. **Open** the Actor in your Apify account.
2. **Enter** a keyword such as `climate resilience` to search opportunity titles and descriptions.
3. **Choose** one or more statuses and add optional agency, funding-category, eligibility, ALN, or posted-date filters.
4. **Enable** `includeDetails` if you need the detail fields above.
5. **Set** `maxResults`, request pacing, retries, and a valid sort expression if you need to control the run.
6. **Start** the run and review the resulting records in the dataset.
7. **Repeat** the run through Apify Schedules; daily is a reasonable starting point for grant-opportunity monitoring.

Example input:

```json
{
  "keyword": "climate resilience",
  "oppStatuses": ["posted", "forecasted"],
  "fundingCategories": ["ENV"],
  "postedSince": "2 weeks",
  "includeDetails": true,
  "maxResults": 50,
  "requestsPerSecond": 2,
  "maxRetries": 4,
  "sortBy": "openDate|desc"
}
```

Export the dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

| Parameter | What it does | Default |
|---|---|---|
| `keyword` | Searches opportunity titles and descriptions. Multiple words are passed as OR terms. | Prefilled with `climate resilience`; empty if omitted |
| `oppStatuses` | Includes `posted`, `forecasted`, `closed`, and/or `archived` opportunities. | `["posted", "forecasted"]` |
| `agencies` | Filters by agency codes such as `HHS`, `USDA`, `DOD`, `NSF`, `DOE`, `ED`, `EPA`, or `DOI`. | Empty |
| `fundingCategories` | Filters by funding activity category codes such as `HL`, `ED`, `ENV`, or `ST`. | Empty |
| `eligibilities` | Filters by applicant eligibility codes such as `00`, `12`, `06`, or `99`. | Empty |
| `aln` | Filters by one Assistance Listing Number, such as `93.243`. | None |
| `postedSince` | Keeps opportunities with an open date on or after `YYYY-MM-DD`, or accepts relative values such as `2 days`, `1 week`, or `3 months`. | None |
| `includeDetails` | Adds one detail request per opportunity: synopsis, award amounts, eligibility, funding classifications, update dates, attachments. | `false` |
| `maxResults` | Sets the maximum number of records to save. Accepted range: 1–100000. | `50` |
| `requestsPerSecond` | Throttles Grants.gov API requests. Accepted range: 1–5. | `2` |
| `maxRetries` | Controls retries for network errors, HTTP 429 responses, and server errors. Accepted range: 0–10. | `4` |
| `sortBy` | Sorts by `openDate`, `closeDate`, `agency`, or `oppNum`, followed by `\|asc` or `\|desc`. | `openDate\|desc` |
| `proxyConfiguration` | Optional Apify Proxy settings; the Grants.gov API works without a proxy. | Schema default is Apify Proxy RESIDENTIAL; if the input is absent, the Actor uses no proxy |

### Limits and edge cases

| Condition | What you see | What to do |
|---|---|---|
| No opportunities match the keyword or filters | The search page contains no hits and no matching records are saved. | Broaden the keyword, remove a filter, select additional statuses, or expand the `postedSince` window. |
| `maxResults` is reached | The Actor stops saving records at the maximum. | Increase `maxResults` for more records. |
| A detail request fails after its retries | The base search record is still pushed, and `detailsFetched` is set to `false`; detail fields from that request are absent. | Review `detailsFetched` and rerun with an appropriate `maxRetries` value if the detail fields are important. |
| A search request encounters a network error, HTTP 429, or server error | The request is retried with exponential backoff. | Keep `requestsPerSecond` within 1–5, adjust `maxRetries` (0–10), and run again. |
| `sortBy` does not match an allowed field and direction | The run raises an error before searching. | Use an allowed field plus `\|asc` or `\|desc` (see Input parameters). |
| `postedSince` is set and a result has no parseable opening date | That result is skipped by the date cutoff. | Use a valid absolute or relative date and review whether the cutoff is too restrictive. |

### FAQ

#### How much does it cost to scrape Grants.gov federal grant opportunities?

See Pricing for the event prices and worked examples.

#### What does `includeDetails` add?

It adds the detail fields listed in Input parameters; the per-result price does not change.

#### Is it legal or allowed to use public Grants.gov data?

The Actor collects public Grants.gov data. Whether a particular use is legal or allowed depends on the source terms and applicable law for your use case; review those requirements before using the data.

# Actor input Schema

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

Search public opportunity titles and descriptions. Grants.gov treats multiple words as OR terms.

## `oppStatuses` (type: `array`):

Statuses to include: posted, forecasted, closed, or archived.

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

Agency codes, for example HHS, USDA, DOD, NSF, DOE, ED, EPA, or DOI. Leave empty for all agencies.

## `fundingCategories` (type: `array`):

Funding activity category codes, such as HL (Health), ED (Education), ENV (Environment), or ST (Science and Technology).

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

Applicant eligibility codes, such as 00 (state governments), 12 (501(c)(3) nonprofits), 06 (public universities), or 99 (unrestricted).

## `aln` (type: `string`):

Filter by one Assistance Listing Number, formerly CFDA, such as 93.243.

## `postedSince` (type: `string`):

Keep opportunities with an open date on or after YYYY-MM-DD, or use a relative value such as 2 days, 1 week, or 3 months.

## `includeDetails` (type: `boolean`):

Fetch synopsis, award amounts, eligibility, funding classifications, update date, and attachments for each result.

## `maxResults` (type: `integer`):

Maximum number of grant records to save.

## `requestsPerSecond` (type: `integer`):

Throttle for public Grants.gov API requests, from 1 to 5.

## `maxRetries` (type: `integer`):

Retry network errors, HTTP 429, and server errors with exponential backoff.

## `sortBy` (type: `string`):

Sort expression: openDate, closeDate, agency, or oppNum followed by |asc or |desc.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy settings. The public Grants.gov API works without a proxy.

## Actor input object example

```json
{
  "keyword": "climate resilience",
  "oppStatuses": [
    "posted",
    "forecasted"
  ],
  "agencies": [],
  "fundingCategories": [],
  "eligibilities": [],
  "includeDetails": false,
  "maxResults": 50,
  "requestsPerSecond": 2,
  "maxRetries": 4,
  "sortBy": "openDate|desc",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset with the scraped grant opportunity records.

# 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": "climate resilience",
    "oppStatuses": [
        "posted",
        "forecasted"
    ],
    "agencies": [],
    "fundingCategories": [],
    "eligibilities": [],
    "maxResults": 50,
    "requestsPerSecond": 2,
    "maxRetries": 4,
    "sortBy": "openDate|desc",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/grants-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": "climate resilience",
    "oppStatuses": [
        "posted",
        "forecasted",
    ],
    "agencies": [],
    "fundingCategories": [],
    "eligibilities": [],
    "maxResults": 50,
    "requestsPerSecond": 2,
    "maxRetries": 4,
    "sortBy": "openDate|desc",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/grants-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": "climate resilience",
  "oppStatuses": [
    "posted",
    "forecasted"
  ],
  "agencies": [],
  "fundingCategories": [],
  "eligibilities": [],
  "maxResults": 50,
  "requestsPerSecond": 2,
  "maxRetries": 4,
  "sortBy": "openDate|desc",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/grants-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/grants-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/XSV2lZEiXJZBYPZCN/builds/3UmbJF9EcFlahPjYO/openapi.json
