# Grants.gov Scraper - Federal Grant Opportunities (`evpp/grants-gov`) Actor

Scrape and export Grants.gov federal funding opportunities as a clean JSON API: deadlines, award amounts, eligibility, agencies, CFDA numbers, and synopses.

- **URL**: https://apify.com/evpp/grants-gov.md
- **Developed by:** [Evp Labs](https://apify.com/evpp) (community)
- **Categories:** Lead generation, Business, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

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

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 - Federal Grant Opportunities

Scrape **Grants.gov**, the central registry of US federal funding, into clean flat JSON. Search by keyword, agency, funding category, eligibility, and status (posted, forecasted, closed, archived). Every opportunity can be enriched with its **full synopsis**: award ceiling/floor, estimated total funding, expected number of awards, CFDA / Assistance Listing numbers, eligibility descriptions, deadlines, and agency contact details. Uses the public Grants.gov JSON API directly, no browser, no CAPTCHAs, no API key.

### Why use it

- **Grant writers & consultants**: monitor new federal funding announcements the moment they post, filter to the agencies and categories you serve, and pull award ceilings into your pipeline.
- **Nonprofits & universities**: track opportunities by eligibility type (501(c)(3), higher ed, small business) and deadline so nothing slips past.
- **SBIR/STTR applicants & research offices**: watch forecasted opportunities before they open and plan submissions ahead of the crowd.
- **State & local governments**: feed open grants into your grants-management workflow with structured, deduplicated records.

### What it scrapes

| Mode | Trigger | Source |
|------|---------|--------|
| Browse newest | `keyword` empty | `api.grants.gov/v1/api/search2` sorted by open date |
| Keyword search | `keyword` set | same endpoint, relevance-sorted |
| Detail enrichment | `includeDetails: true` (default) | `api.grants.gov/v1/api/fetchOpportunity` per result |

### Quick start input

Target source: `grants.gov`. Paste this JSON into the Actor input tab for a fast first run, or use it as the body of the Apify API run call:

```json
{
    "keyword": "infrastructure",
    "oppStatuses": [
        "posted"
    ],
    "includeDetails": true,
    "maxItems": 10
}
```

The default input is intentionally small. Raise `maxItems` only after validating the first grant opportunity records.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `keyword` | string | `""` | Free-text search over titles and descriptions. Empty = newest opportunities across all of Grants.gov. |
| `oppStatuses` | array | `["posted"]` | Statuses to include: `posted`, `forecasted`, `closed`, `archived`. |
| `agencies` | string | `""` | Pipe-separated agency codes, e.g. `DOE-ARPAE`, `NSF`, `HHS-NIH11\|HHS-CDC`. |
| `fundingCategories` | string | `""` | Pipe-separated activity category codes, e.g. `ST` Science & Tech, `HL` Health, `ED` Education, `EN` Environment. |
| `eligibilities` | string | `""` | Pipe-separated applicant type codes, e.g. `99` Unrestricted, `12` Nonprofits 501(c)(3), `25` Small businesses. |
| `includeDetails` | boolean | `true` | Fetch `fetchOpportunity` per hit to add award amounts, eligibility, CFDA numbers and a plain-text synopsis. |
| `maxItems` | integer | `10` | Maximum opportunities to output (1-1000), strictly enforced. |
| `proxyConfiguration` | object | `{ "useApifyProxy": false }` | Optional. The API is public and needs no proxy. |

### Output

One flat JSON item is produced per grant opportunity. Download the dataset as JSON, CSV, Excel, or HTML, or consume it through the Apify API.

#### Field reference

| Field | Type | Description |
|-------|------|-------------|
| `opportunityId` | number | Grants.gov internal opportunity ID |
| `opportunityNumber` | string | Public funding opportunity number (FOA/NOFO number) |
| `title` | string | Opportunity title |
| `agency` | string | Grant-making agency or sub-agency name |
| `agencyCode` | string | Grants.gov agency code of the owning agency |
| `status` | string | Opportunity status (posted, forecasted, closed, archived) |
| `docType` | string | Document type on Grants.gov (synopsis, forecast, modification, package) |
| `postDate` | string | Date the synopsis was posted (YYYY-MM-DD) |
| `openDate` | string | Date the opportunity opened for applications (YYYY-MM-DD) |
| `closeDate` | string | Application due date (YYYY-MM-DD) |
| `closeDateText` | string | Free-text description of the deadline when the agency provides one (e.g. rolling submissions) |
| `awardCeiling` | number | Maximum award amount in USD |
| `awardFloor` | number | Minimum award amount in USD |
| `estimatedTotalFunding` | number | Estimated total program funding in USD |
| `numberOfAwards` | number | Expected number of awards |
| `cfdaList` | string\[] | Assistance Listing (CFDA) numbers associated with the opportunity |
| `fundingInstrument` | string | Funding instrument types, joined when several apply (e.g. Grant; Cooperative Agreement) |
| `fundingCategory` | string | Funding activity categories, joined when several apply |
| `eligibilities` | string\[] | Applicant types eligible to apply |
| `description` | string | Plain-text synopsis of the opportunity, trimmed to about 500 characters |
| `fundingLink` | string | Agency-provided link to the full funding announcement |
| `contactEmail` | string | Agency contact email for questions |
| `url` | string | Grants.gov opportunity detail page |

#### Real sample output (latest live dataset)

```json
{
    "opportunityId": 359325,
    "opportunityNumber": "23-589",
    "title": "Community Infrastructure for Research in Computer and Information Science and Engineering (CIRC)",
    "agency": "U.S. National Science Foundation",
    "agencyCode": "NSF",
    "status": "posted",
    "docType": "synopsis",
    "postDate": "2025-06-06",
    "openDate": "2025-06-06",
    "closeDate": "2027-09-10",
    "awardCeiling": 5000000,
    "awardFloor": 50000,
    "estimatedTotalFunding": 24000000,
    "numberOfAwards": 25,
    "cfdaList": [
        "47.075"
    ],
    "fundingInstrument": "Grant",
    "fundingCategory": "Science and Technology and other Research and Development",
    "eligibilities": [
        "Others (see text field entitled \"Additional Information on Eligibility\" for clarification)"
    ],
    "description": "The Community Infrastructure for Research in Computer and Information Science and Engineering (CIRC) program drives discovery and learning in the core disciplines of the three participating CISE divisions [Computing and Communication Foundations (CCF), Comp...",
    "fundingLink": "http://www.nsf.gov/publications/pub_summ.jsp?ods_key=nsf23589",
    "contactEmail": "grantsgovsupport@nsf.gov",
    "url": "https://www.grants.gov/search-results-detail/359325"
}
```

### Use with AI agents (MCP), n8n, Make, and Python

- **AI agents / MCP:** add `https://mcp.apify.com/?tools=evpp/grants-gov` to your MCP client, then ask the agent to scrape Grants.gov data or export the latest dataset.
- **n8n / Make / Zapier:** run Actor `evpp/grants-gov` with the quick-start input, then map dataset items into Google Sheets, a CRM, a webhook, or a monitoring workflow.
- **Python:** install the client with `pip install apify-client` and run:

```python
import json
from apify_client import ApifyClient

client = ApifyClient()
run_input = json.loads('''{"keyword":"infrastructure","oppStatuses":["posted"],"includeDetails":true,"maxItems":10}''')
run = client.actor("evpp/grants-gov").call(run_input=run_input)
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(items[0])
```

The same dataset is available as JSON, CSV, Excel, XML, RSS, and HTML through the Apify API.

### Cost

One search call per page plus one detail call per result: a 10-item run finishes in seconds on 256 MB. At the pay-per-event price of **$3 per 1,000 results**, monitoring every posted federal opportunity daily costs cents. This is high-value B2G data, grant pipelines live or die on timeliness.

### FAQ

**Is this an official Grants.gov API?**
It calls the same public `api.grants.gov` JSON endpoints that power the grants.gov search UI. No authentication and no HTML scraping.

**How fresh is the data?**
Live. Every run queries the API in real time, so newly posted opportunities appear immediately. Schedule the Actor to run daily for a monitoring feed.

**Can I get upcoming (not yet open) opportunities?**
Yes: set `oppStatuses` to `["forecasted"]`. Forecasted records carry whatever estimates the agency has published.

**What do `closed` and `archived` return?**
`closed` = past application deadline, `archived` = moved to the historical archive. Useful for funding-history research and benchmarking award sizes.

**Why is a field missing on some items?**
Agencies publish uneven data: forecasts rarely have award amounts, and some synopses lack CFDA numbers or contacts. Empty fields are omitted rather than filled with placeholders.

**Does it need proxies?**
No. Defaults run direct. The `proxyConfiguration` input exists for users who want their own proxy pool.

# Actor input Schema

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

Free-text search over opportunity titles and descriptions (e.g. "infrastructure", "SBIR", "rural health"). Leave empty to list the newest opportunities across all of Grants.gov.

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

Which opportunity statuses to include. "posted" = open federal funding opportunities, "forecasted" = upcoming planned announcements, "closed" / "archived" = past deadlines.

## `agencies` (type: `string`):

Optional pipe-separated Grants.gov agency codes, e.g. "DOE-ARPAE", "NSF", "HHS-NIH11|HHS-CDC". Sub-agency codes work best; see the agency filter on grants.gov.

## `fundingCategories` (type: `string`):

Optional pipe-separated category codes, e.g. "ST" (Science & Technology), "HL" (Health), "ED" (Education), "EN" (Environment), "IS" (Infrastructure). Multiple codes: "ST|EN".

## `eligibilities` (type: `string`):

Optional pipe-separated applicant type codes, e.g. "99" (Unrestricted), "12" (Nonprofits with 501(c)(3)), "20" (Private institutions of higher education), "25" (Small businesses).

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

Call fetchOpportunity for every hit to add award ceiling/floor, estimated total funding, eligibility descriptions, CFDA program titles and a plain-text synopsis. Recommended; adds one request per result.

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

Maximum number of opportunities to output (1-1000), strictly enforced.

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

Optional proxies for outbound requests. The Grants.gov API is public and usually needs no proxy.

## Actor input object example

```json
{
  "keyword": "",
  "oppStatuses": [
    "posted"
  ],
  "agencies": "",
  "fundingCategories": "",
  "eligibilities": "",
  "includeDetails": true,
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all 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": "",
    "oppStatuses": [
        "posted"
    ],
    "agencies": "",
    "fundingCategories": "",
    "eligibilities": "",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("evpp/grants-gov").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": "",
    "oppStatuses": ["posted"],
    "agencies": "",
    "fundingCategories": "",
    "eligibilities": "",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("evpp/grants-gov").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": "",
  "oppStatuses": [
    "posted"
  ],
  "agencies": "",
  "fundingCategories": "",
  "eligibilities": "",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call evpp/grants-gov --silent --output-dataset

```

## MCP server setup

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

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/OrRFbMTuPQ3OxqzLE/builds/HuJxgi3QeX2HvsP1b/openapi.json
