# Grants.gov Scraper | Federal Grants & Funding Search (`muzafferkadir/grants-gov-scraper`) Actor

Scrape U.S. federal grant and funding opportunities from Grants.gov by keyword and status: title, agency, dates, CFDA, and detail links. Official API, no API key.

- **URL**: https://apify.com/muzafferkadir/grants-gov-scraper.md
- **Developed by:** [Muzaffer Kadir YILMAZ](https://apify.com/muzafferkadir) (community)
- **Categories:** Business, Lead generation, Education
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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.

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

Scrape **U.S. federal grant and funding opportunities** from **Grants.gov** by keyword and status — **title, agency, opportunity number, dates, CFDA numbers, and detail links**. Built on the **official Grants.gov API**: no API key or setup needed.

Search a topic like `clean energy`, get a clean, dated list of matching grant opportunities — ready to export to CSV, Excel, or JSON, or to power a deadline-alert monitor.

### Features

- **Official, reliable source** — reads the public Grants.gov search API.
- **Every opportunity** — forecasted, posted, closed, or archived, filtered by keyword.
- **Detail links** — each row links straight to the opportunity page on Grants.gov.
- **Monitoring-ready** — schedule it on your keywords and catch new grants and deadlines as they post.

### Use cases

- **Grant discovery & monitoring** — nonprofits, universities, and grant writers tracking new opportunities.
- **Deadline alerts** — schedule daily and flag opportunities closing soon.
- **Consulting & research** — build datasets of funding by agency, topic, or CFDA.
- **B2G intelligence** — see what the federal government is funding in your sector.

### Input

| Field | Type | Description |
| --- | --- | --- |
| `keywords` | string\[] | Search terms. Leave empty to list all opportunities of the chosen statuses. |
| `oppStatuses` | enum\[] | `forecasted`, `posted`, `closed`, `archived`. |
| `maxItems` | integer | Max opportunities per keyword. Default 200. |

#### Example

```json
{
  "keywords": ["artificial intelligence", "clean energy"],
  "oppStatuses": ["forecasted", "posted"],
  "maxItems": 200
}
```

### Output

```json
{
  "id": "358687",
  "number": "W519TC-25-S-0001",
  "title": "Broad Agency Announcement for Fundamental AI Research",
  "agency": "DOD-AMC-ACCRI",
  "agencyCode": "DOD-AMC-ACCRI",
  "status": "forecasted",
  "docType": "synopsis",
  "openDate": "04/16/2025",
  "closeDate": "",
  "cfdaList": ["12.431"],
  "url": "https://www.grants.gov/search-results-detail/358687",
  "keyword": "artificial intelligence",
  "scrapedAt": "2026-08-11T19:00:00.000Z"
}
```

Download the dataset as **JSON, CSV, Excel, or XML**, or pull it via the Apify API.

### Pricing

Pay-per-event: **$0.01 per run start** (per GB of run memory) plus **$1.00 per 1,000 opportunities**. You only pay for opportunities actually returned. See the **Pricing** tab for current rates.

### FAQ

**Do I need an API key?**
No. Grants.gov's search API is public and free; this Actor packages it into clean, filtered rows with detail links.

**Can I list everything, not just a keyword?**
Yes — leave `keywords` empty and choose the statuses you want.

**Can I monitor for new grants?**
Yes — schedule the Actor (e.g. daily) with your keywords and `oppStatuses: ["posted"]`.

**What's a CFDA number?**
The Catalog of Federal Domestic Assistance program number — useful for categorizing funding.

### Disclaimer

This Actor uses the **public U.S. Grants.gov API**. It is not affiliated with or endorsed by Grants.gov or any federal agency. The data is public; you are responsible for how you use it.

# Actor input Schema

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

Search terms, e.g. "artificial intelligence", "clean energy". Leave empty to list all opportunities of the chosen statuses.

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

Which statuses to include.

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

Stop after this many opportunities for each keyword.

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

Optional. Leave empty for most runs.

## Actor input object example

```json
{
  "keywords": [
    "artificial intelligence"
  ],
  "oppStatuses": [
    "forecasted",
    "posted"
  ],
  "maxItems": 100
}
```

# 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": [
        "artificial intelligence"
    ],
    "oppStatuses": [
        "forecasted",
        "posted"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("muzafferkadir/grants-gov-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": ["artificial intelligence"],
    "oppStatuses": [
        "forecasted",
        "posted",
    ],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("muzafferkadir/grants-gov-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": [
    "artificial intelligence"
  ],
  "oppStatuses": [
    "forecasted",
    "posted"
  ],
  "maxItems": 100
}' |
apify call muzafferkadir/grants-gov-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muzafferkadir/grants-gov-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/C5tf5EOEPVCW3BwV5/builds/9YCwMPzvjA8gK45ay/openapi.json
