# Grants.gov Scraper — Federal Grant Finder (`dk49/grants-gov-finder`) Actor

Find and monitor US federal grant opportunities on Grants.gov. Search by keyword, agency, eligibility and deadline. Get funding amounts, CFDA numbers, open/close dates and links. Ideal for nonprofits, universities and grant writers.

- **URL**: https://apify.com/dk49/grants-gov-finder.md
- **Developed by:** [DK](https://apify.com/dk49) (community)
- **Categories:** Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Grants.gov Scraper — Federal Grant Finder

Search and monitor **US federal grant opportunities** on [Grants.gov](https://www.grants.gov) — the official database of all federal funding programs, with over $700 billion awarded annually.

🔍 **Search it on Google:** "grants.gov scraper", "federal grants API", "grant opportunity monitor"

### Why use this Actor?

- ✅ **Official data source** — uses the Grants.gov API directly
- ✅ **Deadline alerts** — never miss a closing opportunity again
- ✅ **Precise filtering** — keyword, agency, eligibility, CFDA numbers
- ✅ **Automation-ready** — pipe results to email, Slack, Notion, CRMs
- ✅ **Zero setup** — no API key or authentication needed

### Who is this for?

| User | Use case |
|---|---|
| 🎓 **Nonprofits & universities** | Track funding in your program area |
| ✍️ **Grant writers** | Build a pipeline of upcoming deadlines |
| 📊 **Researchers** | Analyze federal funding trends by agency/field |
| 🤖 **Consultants** | Monitor opportunities across client sectors |
| 🧠 **AI agents** | Automated funding-source discovery |

### Input options

| Field | Description | Example |
|---|---|---|
| `keyword` | Search term | `"climate research"`, `"rural health"` |
| `agencies` | Agency codes or names | `["NSF", "NIH"]`, `"Department of Energy"` |
| `eligibilities` | Who can apply | `["nonprofit"]`, `["higher_education"]` |
| `closeAfter` | Only grants closing after this date | `"09/01/2026"` |
| `onlyOpen` | Exclude already-closed (default true) | `true` |
| `maxItems` | Max results per run | `200` |

### Example input

```json
{
    "keyword": "stem education",
    "agencies": ["NSF"],
    "closeAfter": "09/01/2026",
    "onlyOpen": true,
    "maxItems": 300
}
```

### Example output

```json
{
    "id": "334326",
    "number": "21-595",
    "title": "Tribal Colleges and Universities Program",
    "agency": "U.S. National Science Foundation",
    "openDate": "06/24/2021",
    "closeDate": "09/01/2026",
    "status": "posted",
    "cfdaList": ["47.076"],
    "url": "https://www.grants.gov/search-results-detail/334326"
}
```

### 💡 Pro tips

1. **Closing-soon feed**: set `onlyOpen: true` + a `closeAfter` date ~30 days out for urgent deadlines
2. **New-opportunity alerts**: schedule hourly runs and diff against previous results
3. **Multi-agency monitoring**: list several agencies — results merge into one dataset

### Data source

Official Grants.gov search API. This actor is not affiliated with grants.gov or HHS.

# Actor input Schema

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

Search term, e.g. 'climate research', 'stem education'

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

Filter by agency code or name, e.g. \["NSF", "NIH", "Department of Energy"]

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

e.g. \["nonprofit"] — see Grants.gov eligibility codes

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

e.g. \["education", "health", "energy"]

## `closeAfter` (type: `string`):

Only opportunities closing after this date

## `closeBefore` (type: `string`):

Only opportunities closing before this date

## `onlyOpen` (type: `boolean`):

Only return opportunities with status 'posted'

## `maxItems` (type: `integer`):

Maximum opportunities to return per run (max 1000)

## Actor input object example

```json
{
  "onlyOpen": true,
  "maxItems": 200
}
```

# Actor output Schema

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

Scraped items in the default dataset

## `stats` (type: `string`):

Run summary stats (counts, timing)

# 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 = {
    "onlyOpen": true,
    "maxItems": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("dk49/grants-gov-finder").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 = {
    "onlyOpen": True,
    "maxItems": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("dk49/grants-gov-finder").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 '{
  "onlyOpen": true,
  "maxItems": 200
}' |
apify call dk49/grants-gov-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dk49/grants-gov-finder"
        }
    }
}

```

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/63VfsPReBqi2hMdqj/builds/1C3oMJCkJ0EyuXPX2/openapi.json
