# Grants.gov Scraper (`tortuga/grants-gov-scraper`) Actor

US federal grant opportunities from Grants.gov by keyword, agency, category, eligibility and status: opportunity number and ID, link, title, agency, posted and close dates, award ceiling and floor, estimated funding, eligibility, CFDA/ALN numbers and description.

- **URL**: https://apify.com/tortuga/grants-gov-scraper.md
- **Developed by:** [Trevor Ortega](https://apify.com/tortuga) (community)
- **Categories:** Other, 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 $0.40 / 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.
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

Export US federal grant opportunities from Grants.gov into a clean dataset: opportunity number and ID, link, title, agency, posted and close dates, award ceiling and floor, estimated funding, number of awards, eligibility, CFDA/ALN numbers, the full description, contact and attachment links. Search by keyword, agency, funding category, eligibility, instrument and status. Download as JSON, CSV or Excel, or call it through the API. No Grants.gov account and no API key.

### What data does Grants.gov Scraper extract?

| Field | Description |
|---|---|
| `opportunityId`, `opportunityNumber`, `url` | Grants.gov ID, funding opportunity number (for example DE-FOA-0003630) and link |
| `title` | Opportunity title |
| `agencyCode`, `agency`, `topAgency`, `subAgency` | Issuing agency (needs details for the top agency) |
| `status`, `docType` | posted, forecasted, closed or archived; synopsis or forecast |
| `postedDate`, `closeDate`, `archiveDate`, `lastUpdatedDate` | Dates (ISO). Open-ended opportunities have far future close dates as published |
| `cfdaNumbers`, `programTitles` | Assistance Listing (CFDA/ALN) numbers and program titles |
| `awardCeiling`, `awardFloor`, `estimatedFunding`, `expectedAwards` | Money and number of awards (numbers) |
| `costSharingRequired` | True or false |
| `eligibility`, `eligibilityNotes` | Eligible applicant types and the additional eligibility text |
| `fundingInstruments`, `fundingCategories`, `category` | Grant, cooperative agreement and so on; categories such as Health; discretionary or mandatory |
| `description` | Full description as plain text |
| `contactName`, `contactEmail`, `contactPhone`, `contactDescription` | Agency contact as published on the opportunity |
| `additionalInfoUrl` | Link to the agency's full announcement |
| `attachments`, `attachmentCount` | Name, description, size and download link of each attached file |
| `forecastedPostDate`, `forecastedCloseDate`, `forecastedAwardDate`, `fiscalYear` | Forecasted opportunities only |

Fields an opportunity does not publish are `null`. With **Include details** off you get the search listing fields only: ID, number, link, title, agency code and name, status, dates and CFDA numbers.

### How to use Grants.gov Scraper

1. Enter one or more **Keywords**, or leave them empty and filter by **Agencies**, **Funding categories**, **Eligibility codes**, **Funding instruments** or **CFDA / ALN numbers**.
2. Choose **Status** (open and forecasted opportunities by default) and optionally **Posted from**.
3. Set **Max items** and click **Start**. Results appear in the **Dataset** tab.

Each keyword runs as its own search and filters apply to all of them. Opportunity URLs (grants.gov/search-results-detail/...) can be pasted into **Opportunity URLs**.

### Input example

```json
{
  "keywords": ["clean energy"],
  "agencies": ["DOE", "NSF"],
  "status": ["posted"],
  "postedFrom": "30 days",
  "maxItems": 100
}
```

### Output example

```json
{
  "opportunityId": "364136",
  "opportunityNumber": "DE-FOA-0003630",
  "url": "https://www.grants.gov/search-results-detail/364136",
  "title": "Unlocking New Levels of Output and Capacity for Key Subsurface Resources (UNLOCK)",
  "agencyCode": "DOE-ARPAE",
  "status": "posted",
  "postedDate": "2026-10-21",
  "closeDate": "2026-11-20",
  "cfdaNumbers": ["81.135"],
  "awardCeiling": 5000000,
  "awardFloor": 3000000,
  "estimatedFunding": 45000000,
  "expectedAwards": 12,
  "fundingInstruments": ["Cooperative Agreement", "Other"],
  "attachmentCount": 1
}
```

### Pricing

Pay per event, no subscription. Apify's free plan is enough to try it.

| Event | Price (free plan) | Paid plans |
|---|---|---|
| Opportunity (one opportunity from the search listing) | $0.0005 | tier discounts up to 20% |
| Details (description, award amounts, eligibility, contact, attachments) | $0.0005 per opportunity | tier discounts up to 20% |
| Actor start | $0.00005 per run | |

With **Include details** on (the default) an opportunity costs $0.001, so 1,000 opportunities cost about $1. Opportunities already seen in monitoring mode are not charged.

Proxy note: platform usage is included in the price. The Grants.gov JSON is small, so datacenter proxies are enough.

### Monitor changes on a schedule

Turn on **Only new or changed items** and save the input as a Task with a Schedule (for example daily). The Actor remembers what earlier runs returned and outputs only new opportunities and opportunities whose close date, status or posted date changed. Unchanged opportunities are not charged. Each item gets `changeType` ("new" or "changed") and, for changed ones, `previousValues`. Use **Monitoring key** to keep several watches apart.

### FAQ

#### Do I need a Grants.gov account or API key?

No. The Actor reads the same public data the Grants.gov search page shows to visitors who are not logged in.

#### How do I find new grants for my field?

Put your topic in **Keywords**, set **Posted from** to "7 days" (or use monitoring on a daily schedule), and add **Agencies** or **Funding categories** such as HL (health), ED (education) or ST (science and technology).

#### Why do some opportunities close in 2029 or 2076?

Some agencies publish rolling or open-ended programs with a far future close date. The Actor returns the date as published.

#### Can I get forecasted opportunities?

Yes. Forecasts are included by default. Set **Status** to forecasted to get only forecasts, with estimated post, close and award dates.

#### How many results can one search return?

Grants.gov search serves up to 10,000 records per query. Narrow the search with filters for more.

#### Is it legal to scrape Grants.gov?

Grants.gov opportunities are public federal notices. Contact details are those the agency published on the opportunity for inquiries. You are responsible for how you use the data and for complying with applicable law.

### Support

Found a bug or need a field added? Open an issue in the **Issues** tab; it is usually answered within a day.

# Actor input Schema

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

Search words for opportunity titles and descriptions, for example "clean energy". One search per entry. A single plain string also works. Leave empty to filter by the fields below only.

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

Agency codes, for example HHS, NSF, DOE, USDA, DOD or a sub-agency such as HHS-NIH11. A single plain string also works.

## `categories` (type: `array`):

Category codes: ST science and technology, HL health, ED education, EN energy, ENV environment, AG agriculture, CD community development, BC business and commerce, AR arts, HU humanities, TR transportation, NR natural resources, IS information and statistics, O other.

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

Applicant type codes: 00 state governments, 01 county, 02 city or township, 06 public universities, 07 federally recognized tribes, 12 nonprofits (501c3), 20 private universities, 21 individuals, 22 for-profit, 23 small businesses, 25 others, 99 unrestricted.

## `fundingInstruments` (type: `array`):

Instrument codes: G grant, CA cooperative agreement, PC procurement contract, O other.

## `cfdaNumbers` (type: `array`):

Assistance Listing numbers, for example 93.399 or 47.049.

## `opportunityNumber` (type: `string`):

Find one funding opportunity number, for example DE-FOA-0003630.

## `status` (type: `array`):

Opportunity statuses to include. Defaults to posted and forecasted when empty.

## `postedFrom` (type: `string`):

Only opportunities posted on or after a date (YYYY-MM-DD) or a period such as "7 days".

## `postedTo` (type: `string`):

Only opportunities posted on or before a date (YYYY-MM-DD).

## `closingFrom` (type: `string`):

Only opportunities that close on or after a date (YYYY-MM-DD) or a period such as "0 days" for today. Forecasts without a close date are kept.

## `sortBy` (type: `string`):

Order of the results. Default is relevance when you search by words.

## `startUrls` (type: `array`):

Optional grants.gov/search-results-detail/... URLs. Each opportunity is fetched directly.

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

Fetch each opportunity's detail data: description, award ceiling and floor, estimated funding, eligibility, contact, attachments. Billed as the extra Details event. Off gives the search listing fields only.

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

Stop after this many results in total. Keeps cost predictable.

## `onlyNewOrChanged` (type: `boolean`):

Remember what earlier runs of this search returned and output only new items or items whose price/status changed. Use with a Schedule; unchanged items are not charged. Here: new opportunities, and opportunities whose close date, status or posted date changed.

## `monitoringKey` (type: `string`):

Name for this watch, so several schedules on the same search stay separate; defaults to a key derived from the search input

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

Apify Proxy. The Grants.gov JSON is small, so datacenter IPs are enough and cheap.

## Actor input object example

```json
{
  "keywords": [
    "clean energy"
  ],
  "status": [
    "posted"
  ],
  "includeDetails": true,
  "maxItems": 20,
  "onlyNewOrChanged": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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": [
        "clean energy"
    ],
    "status": [
        "posted"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tortuga/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": ["clean energy"],
    "status": ["posted"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("tortuga/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": [
    "clean energy"
  ],
  "status": [
    "posted"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call tortuga/grants-gov-scraper --silent --output-dataset

```

## MCP server setup

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