# Grants.gov Opportunities Scraper: US Federal Grants (`datadesk-io/grants-gov-opportunities-scraper`) Actor

Scrape US federal grant opportunities from Grants.gov: title, number, agency, status, open and close dates, assistance listing and link. Filter by keyword, agency, category, eligibility. Alerts for new grants. $1 per 1,000.

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

## Pricing

from $0.80 / 1,000 opportunities

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 Opportunities Scraper

Track **US federal grant opportunities** from **Grants.gov**, the **official portal for federal funding**. Each record has **title, opportunity number, agency, status (forecasted or posted), open and close dates, assistance listing (CFDA) and the link**. Filter by **keyword, agency, funding category, eligibility and status**. Use daily alerts to catch new grants. No login, no key. **$1 per 1,000 opportunities.**

### Try it now (one click)

1. Click **Start**. The prefilled input is a small test: in our latest check (Nov 13, 2026) it returned **20 opportunities in about 2 seconds**.
2. Change the input to what you need (search terms, filters, max results).
3. Download the results as CSV, Excel or JSON, or get them via API, webhooks, Make or Zapier.

**Price example:** 100 opportunities = **$0.105**, 1,000 opportunities = **$1.005** ($1.00 per 1,000 opportunities + $0.005 per run). Silver and Gold plan users pay 10% and 20% less per opportunity. Apify's free plan includes $5 of usage every month, enough for about 4,995 opportunities. Runs that find nothing are not charged.

#### Sample of real results

*Real rows from a local test run on Nov 13, 2026 (some columns). Each opportunity also includes a link to the source and the other fields listed below.*

| Title | Number | Agency | Status | Open date |
|---|---|---|---|---|
| Advancing Real-World Effectiveness Evidenc… | RFA-MH-27-150 | National Institutes of Health | posted | 11/12/2026 |
| Strengthening Moldova’s Energy and Trade S… | DFOP0019913 | Bureau of European and Eurasian Affairs | posted | 11/06/2026 |
| National Animal Disease Preparedness and R… | USDA-APHIS-10025-VSSP0000-27-0002 | Animal and Plant Health Inspection Service | posted | 11/05/2026 |

### What you get

| Field group | Fields |
|---|---|
| Opportunity | opportunityId, number, title, docType, status |
| Agency | agencyCode, agency, assistanceListings |
| Dates and link | openDate, closeDate, url |

### Sources and coverage

| Source | Coverage | Data |
|---|---|---|
| **Grants.gov** (`api.grants.gov`) | All US federal discretionary grant opportunities | Forecasted, posted, closed and archived |

### How to use it

1. Click **Try for free** (or **Start**): the prefilled input runs a quick test.
2. Adjust the filters (see examples below).
3. Click **Start** and wait a few seconds.
4. Open the **Output** tab and export as **JSON, CSV, Excel, XML or HTML**, or read the dataset via API.

### Input examples

**Software grants open now:**

```json
{"keywords": ["software"], "maxOpportunities": 100}
```

**NSF and NIH forecasts:**

```json
{"agencies": ["NSF", "HHS"], "statuses": ["forecasted"], "maxOpportunities": 200}
```

**Daily alert for AI grants:**

```json
{"keywords": ["artificial intelligence"], "onlyNewOpportunities": true, "alertsKey": "ai"}
```

#### Input fields

| Field | Type | Description |
|---|---|---|
| `keywords` | array | Search words, e.g. software, health, education. Leave empty for all. |
| `statuses` | array | forecasted, posted, closed, archived. Default: forecasted and posted (open). |
| `agencies` | array | Grants.gov agency codes, e.g. HHS, NSF, DOE, USDA. |
| `fundingCategories` | array | e.g. ST (science and technology), HL (health), ED (education), AG (agriculture). |
| `eligibilities` | array | e.g. 25 (all), 12 (nonprofits), 22 (small businesses), 00 (state governments). |
| `assistanceListings` | array | One assistance listing number, e.g. 93.310. |
| `maxOpportunities` | integer | Stop after this many opportunities. |
| `onlyNewOpportunities` | boolean | Return only opportunities not seen in previous runs with the same alerts key. Schedule daily for alerts. |
| `alertsKey` | string | Name for this alert memory (use a different key per saved search). |

### Output example

*Example values from a local test run.*

```json
{
  "source": "grants.gov",
  "opportunityId": "364240",
  "number": "DFOP0019913",
  "title": "Strengthening Moldova’s Energy and Trade Security",
  "agencyCode": "DOS-EUR",
  "agency": "Bureau of European and Eurasian Affairs",
  "status": "posted",
  "docType": "synopsis",
  "openDate": "11/06/2026",
  "closeDate": "12/06/2026",
  "assistanceListings": "19.878",
  "url": "https://www.grants.gov/search-results-detail/364240"
}
```

#### Output fields

| Field | Description |
|---|---|
| `opportunityId / number` | Grants.gov id and opportunity number |
| `title` | Opportunity title |
| `agency / agencyCode` | Funding agency |
| `status / docType` | forecasted or posted; notice type |
| `openDate / closeDate` | Posting and deadline dates |
| `assistanceListings` | CFDA numbers |
| `url` | Grants.gov detail page |

### Pricing

Pay-per-event: **$0.005** once per run that saves results + **$0.001 per opportunity** ($1 / 1,000). Runs that save nothing are not charged.

| Opportunities saved | Approx. cost |
|---|---|
| 20 | $0.025 |
| 100 | $0.105 |
| 1,000 | $1.005 |
| 10,000 | $10.005 |

### Use cases

- Grant writers and consultancies finding new opportunities by agency
- Universities and nonprofits tracking funding calls
- Startups looking for SBIR-style funding
- Daily alerts for a topic

### Integrations / API

Works with the Apify API, Schedules, webhooks, Make, Zapier, n8n and MCP. Example:

```bash
curl "https://api.apify.com/v2/acts/datadesk-io~grants-gov-opportunities-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"keywords": ["software"], "maxOpportunities": 100}'
```

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("datadesk-io/grants-gov-opportunities-scraper").call(run_input={"keywords": ["software"], "maxOpportunities": 100})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### MCP

Use this Actor from an MCP client (Cursor, Claude Desktop, etc.) through the Apify MCP server (`datadesk-io/grants-gov-opportunities-scraper`).

### Alerts mode

Turn on the **Only new** option and schedule the Actor daily: each run returns only opportunities not seen in earlier runs with the same alerts key (nothing is charged when there is nothing new).

### FAQ

**Do I need a key?** No. Grants.gov is public and the Actor calls it directly.

**Is the full announcement included?** No: you get the structured fields and the link to the full notice.

**Are award amounts included?** Not in the search listing; open the link for amounts and eligibility details.

### Limitations

- The search listing does not include award ceilings or the full description.
- Dates are returned as MM/DD/YYYY by Grants.gov.
- Closed and archived opportunities appear only when you request those statuses.

### Start now

Click **Start** to run the prefilled example, then adjust the input. Missing a field, filter or source? Open an issue on the **Issues** tab and tell us what you need.

### Support

Questions, bugs or a missing field? Email **datadesk.io@proton.me** or open an issue on the Actor page.

***

**ES:** Extrae oportunidades de subvenciones federales de EE. UU. desde **Grants.gov**: agencia, estado, fechas y enlace. Filtros por palabra y agencia. **$1 / 1.000.**
**PT:** Extrai oportunidades de subsídios federais dos EUA do **Grants.gov**: agência, status, datas e link. **$1 / 1.000.**

# Actor input Schema

## `keywords` (type: `array`):

Search words, e.g. software, health, education. Leave empty for all.

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

forecasted, posted, closed, archived. Default: forecasted and posted (open).

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

Grants.gov agency codes, e.g. HHS, NSF, DOE, USDA.

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

e.g. ST (science and technology), HL (health), ED (education), AG (agriculture).

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

e.g. 25 (all), 12 (nonprofits), 22 (small businesses), 00 (state governments).

## `assistanceListings` (type: `array`):

One assistance listing number, e.g. 93.310.

## `maxOpportunities` (type: `integer`):

Stop after this many opportunities.

## `onlyNewOpportunities` (type: `boolean`):

Return only opportunities not seen in previous runs with the same alerts key. Schedule daily for alerts.

## `alertsKey` (type: `string`):

Name for this alert memory (use a different key per saved search).

## Actor input object example

```json
{
  "keywords": [
    "software"
  ],
  "statuses": [
    "forecasted"
  ],
  "agencies": [
    "NSF",
    "HHS"
  ],
  "maxOpportunities": 20,
  "onlyNewOpportunities": true
}
```

# 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 = {
    "keywords": [
        "software"
    ],
    "maxOpportunities": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datadesk-io/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 = {
    "keywords": ["software"],
    "maxOpportunities": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datadesk-io/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 '{
  "keywords": [
    "software"
  ],
  "maxOpportunities": 20
}' |
apify call datadesk-io/grants-gov-opportunities-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datadesk-io/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/IlwAetNWvaX65qglf/builds/0tK8VhBdvpHc2WZD4/openapi.json
