# Grants.gov Scraper — Federal Government Grants & Funding (`ponderable_hydrometer/grants-gov`) Actor

Grants.gov scraper for US federal government grants and funding opportunities. Search by keyword, agency and status; get number, title, agency, open and close dates, award ceiling and floor, eligible applicants, funding category and description. Official API, no key.

- **URL**: https://apify.com/ponderable_hydrometer/grants-gov.md
- **Developed by:** [Ponderable Hydrometer](https://apify.com/ponderable_hydrometer) (community)
- **Categories:** Business, 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 $1.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 Government Grants & Funding

**Every US federal grant opportunity that matches your topic, with the money and the deadline attached.** Search Grants.gov by keyword, agency and status and get one row per opportunity: number, agency, open and close dates, award ceiling and floor, eligible applicant types, funding categories and the full synopsis. Data comes from the official Grants.gov API, no key needed.

### What you can do with it

- **Grant research for nonprofits, universities and small businesses**: pull every posted opportunity on a topic such as "rural broadband" or "climate" and sort by award ceiling or close date.
- **Deadline tracking**: schedule a daily run with `statuses: ["posted"]` and compare against yesterday to catch new notices.
- **Funding intelligence**: list what one agency (NSF, HHS, DOE, USDA) is funding, with estimated total funding and expected number of awards.
- **Feed a CRM, a spreadsheet or an AI assistant**: rows are flat JSON, ready for CSV, Excel or an LLM.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `keyword` | string | — | Search terms. Empty = all opportunities. |
| `statuses` | array | forecasted, posted | Any of `forecasted`, `posted`, `closed`, `archived`. |
| `agency` | string | — | Optional agency code, e.g. `NSF`, `HHS`, `DOE`, `USDA`. |
| `maxResults` | integer | `500` | Stop after this many opportunities. |
| `withDetails` | boolean | `true` | Add award amounts, eligibility and description (one extra request per opportunity). |

Input example:

```json
{
  "keyword": "rural broadband",
  "statuses": ["posted"],
  "maxResults": 50
}
```

### What you get

One row per opportunity: `opportunityId`, `number`, `title`, `agencyCode`, `agency`, `status`, `docType`, `openDate`, `closeDate`, `cfdaNumbers`, `url`, and with details `awardCeiling`, `awardFloor`, `estimatedTotalFunding`, `expectedAwards`, `costSharing`, `applicantTypes`, `fundingCategories`, `description`, `contactEmail`.

### Output sample

```json
{
  "opportunityId": "360123",
  "number": "DE-FOA-0003456",
  "title": "Rural and Remote Area Energy Resilience",
  "agencyCode": "DOE-GFO",
  "agency": "Golden Field Office",
  "status": "posted",
  "docType": "synopsis",
  "openDate": "2026-10-01",
  "closeDate": "2027-01-15",
  "cfdaNumbers": [
    "81.087"
  ],
  "url": "https://www.grants.gov/search-results-detail/360123",
  "awardCeiling": 5000000,
  "awardFloor": 500000,
  "estimatedTotalFunding": 50000000,
  "expectedAwards": 12,
  "costSharing": true,
  "applicantTypes": [
    "Small businesses",
    "Nonprofits having a 501(c)(3) status"
  ],
  "fundingCategories": [
    "Energy"
  ],
  "description": "The Department of Energy is seeking applications…",
  "contactEmail": "foa@ee.doe.gov"
}
```

### Use it from the API or an AI agent

Start a run and read the grants back in one HTTP call:

```bash
curl -X POST "https://api.apify.com/v2/acts/ponderable_hydrometer~grants-gov/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "rural broadband", "statuses": ["posted"], "maxResults": 20}'
```

AI agents can call it through the Apify MCP server: `https://mcp.apify.com?tools=ponderable_hydrometer/grants-gov`.

### Limits and good to know

- **Federal grants only.** The source is Grants.gov, which lists US federal opportunities. State, local and private-foundation grants are not included, and neither are federal contracts (SAM.gov).
- **Filters are keyword, agency and status.** There is no filter by eligibility or funding category in the input; those fields are in each row, so filter the dataset afterwards.
- **Forecasted opportunities** often have no award amounts or final dates yet.
- **With details on, a row is built from two requests.** If the detail request fails for one opportunity, that row still comes back with the search fields only (no award amounts, no description). Turn `withDetails` off for a faster, search-fields-only run.
- Dates are given as `YYYY-MM-DD`. `contactEmail` is the agency mailbox published on the notice.
- If nothing matches your input, the run ends as FAILED with a clear message instead of an empty success.

### FAQ

**Is this the official data?** Yes, it comes from the Grants.gov API; this Actor is not affiliated with Grants.gov.

**Can I get only grants for nonprofits?** Not as a filter. Each row lists `applicantTypes`, so you can keep the rows that include nonprofits after the run.

**How do I catch new notices?** Schedule the Actor daily with `statuses: ["posted"]` and keep the opportunities whose `opportunityId` you have not seen before.

### Pricing

Pay per result — **$1.00 per 1,000 results** (one opportunity = one result), plus Apify's standard per-run start event ($0.00005 per GB of memory, so a fraction of a cent per run). No subscription.

# Actor input Schema

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

Search terms, e.g. "climate", "rural broadband". Empty = everything.

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

Any of forecasted, posted, closed, archived.

## `agency` (type: `string`):

Optional, e.g. NSF, HHS, DOE, USDA.

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

Stop after this many opportunities.

## `withDetails` (type: `boolean`):

One extra request per opportunity.

## Actor input object example

```json
{
  "keyword": "",
  "statuses": [
    "forecasted",
    "posted"
  ],
  "agency": "",
  "maxResults": 20,
  "withDetails": true
}
```

# Actor output Schema

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

All rows produced by this run, as JSON.

# 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 = {
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("ponderable_hydrometer/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 = { "maxResults": 20 }

# Run the Actor and wait for it to finish
run = client.actor("ponderable_hydrometer/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 '{
  "maxResults": 20
}' |
apify call ponderable_hydrometer/grants-gov --silent --output-dataset

```

## MCP server setup

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