# Grants.gov Scraper - Federal Funding Opportunities (`thirdwatch/grants-gov-scraper`) Actor

Search U.S. federal grant opportunities and export agencies, deadlines, award ranges, eligibility, descriptions, assistance listings, contacts, and official source links. Built for research, diligence, and market intelligence.

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

## Pricing

from $2.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.
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 Scraper

> Search U.S. federal grant opportunities with agencies, deadlines, award ranges, eligibility, descriptions, contacts, and official links.

### What you get

Build a repeatable federal-funding pipeline from the official Grants.gov opportunity catalog. Search several topics in one run, limit results to posted opportunities or forecasts, filter agency codes, and optionally add the full published synopsis needed for qualification and deadline tracking.

### Output fields

| Field | Description |
|---|---|
| `opportunity_id` / `opportunity_number` | Grants.gov identifiers |
| `title` | Opportunity title |
| `agency_code` / `agency` | Funding agency identifiers and name |
| `status` / `document_type` | Opportunity status and document type |
| `opportunity_category` | Published opportunity category |
| `open_date` / `close_date` / `archive_date` | Important dates |
| `award_floor` / `award_ceiling` | Published award range |
| `description` | Full synopsis when requested |
| `eligible_applicants` | Published eligibility explanation |
| `funding_instruments` / `funding_categories` | Funding classifications |
| `assistance_listings` | Assistance-listing numbers |
| `contact_name` / `contact_email` / `contact_phone` | Agency contact details |
| `query` | Search term that produced the result |
| `source_url` / `source` | Official opportunity link and attribution |

### Example output

```json
{
  "opportunity_number": "PD-19-127Y",
  "title": "Science of Learning and Augmented Intelligence",
  "agency_code": "NSF",
  "agency": "U.S. National Science Foundation",
  "status": "posted",
  "close_date": "08/05/2026",
  "assistance_listings": ["47.075"],
  "query": "artificial intelligence"
}
```

### Input parameters

| Parameter | Required | Description |
|---|---|---|
| `queries` | No | Topics, program names, or funding keywords. |
| `statuses` | No | Any combination of `posted` and `forecasted`. |
| `agencies` | No | Optional agency codes such as `NSF`, `HHS`, or `DOE`. |
| `includeDetails` | No | Add synopsis, eligibility, award, and contact fields. Defaults to true. |
| `maxResultsPerQuery` | No | Maximum unique opportunities per search. Defaults to 10. |

### Use cases

- Nonprofits: monitor new opportunities aligned with programs and geography.
- Universities: build funding pipelines for research themes and sponsors.
- Grant consultants: triage opportunities by deadline, eligibility, and award range.
- Businesses: track federal funding programs relevant to customers or partnerships.

### Search Grants.gov opportunities without an API key

Run several funding themes together, optionally narrow them to agency codes, and request full opportunity details only when needed. Saved rows retain official links and identifiers for application research.

### Limitations

Opportunity fields vary by agency, status, and document revision. Forecast dates and award estimates may change, while some programs omit ranges or contact fields. This Actor does not determine eligibility, prepare applications, or guarantee funding. Confirm every decision on the current Grants.gov notice.

### Compared to alternatives

Compared with `parseforge/grants-gov-scraper`, this Actor supports multiple topic searches per run and starts with a bounded 10-row default. Compared with USAspending Actors, Grants.gov covers prospective opportunities rather than past awards, making it useful earlier in the funding lifecycle. Store pricing and features can change.

### FAQ

#### Is a Grants.gov API key required?

No. The search and opportunity-detail endpoints used here are available without authentication.

#### What is the difference between posted and forecasted?

Posted opportunities are open or published notices; forecasts describe expected future opportunities and may change.

#### Can I search a specific agency?

Yes. Add its Grants.gov code, such as `NSF`, to `agencies`.

Explore more at [thirdwatch.dev](https://thirdwatch.dev). Related Actors: [USAspending Federal Awards Scraper](https://apify.com/thirdwatch/usaspending-federal-awards-scraper), [Federal Register Scraper](https://apify.com/thirdwatch/federal-register-scraper), and [EU TED Tenders Scraper](https://apify.com/thirdwatch/eu-ted-tenders-scraper).

Last verified: 2026-07

# Actor input Schema

## `queries` (type: `array`):

Topics, program names, or funding keywords to search.

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

Choose posted opportunities and/or forecasts.

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

Optional Grants.gov agency codes such as NSF, HHS, or DOE.

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

Add award ranges, eligibility, description, contacts, and other published synopsis fields.

## `maxResultsPerQuery` (type: `integer`):

Stop after this many unique opportunities for each funding search.

## Actor input object example

```json
{
  "queries": [
    "artificial intelligence"
  ],
  "statuses": [
    "posted"
  ],
  "agencies": [],
  "includeDetails": true,
  "maxResultsPerQuery": 10
}
```

# 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 = {
    "queries": [
        "artificial intelligence"
    ],
    "statuses": [
        "posted"
    ],
    "maxResultsPerQuery": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("thirdwatch/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 = {
    "queries": ["artificial intelligence"],
    "statuses": ["posted"],
    "maxResultsPerQuery": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("thirdwatch/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 '{
  "queries": [
    "artificial intelligence"
  ],
  "statuses": [
    "posted"
  ],
  "maxResultsPerQuery": 10
}' |
apify call thirdwatch/grants-gov-scraper --silent --output-dataset

```

## MCP server setup

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