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

Scrape federal grant opportunities from Grants.gov. Get titles, agencies, funding amounts, deadlines, eligibility, and descriptions. Filter by keyword, agency, status, category, and date range. Supports detailed mode with full descriptions, contacts, and attachments.

- **URL**: https://apify.com/parseforge/grants-gov-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Automation, Developer tools, Other
- **Stats:** 4 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

![ParseForge Banner](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)

## 🏛️ Grants.gov Federal Grant Opportunities Scraper

🚀 Scrape federal grant opportunities from Grants.gov. Get titles, agencies, funding amounts, deadlines, eligibility, and descriptions. Filter by keyword, agency, status, category, and date range with optional detailed mode.

🕒 Last updated: 2026-04-23

Whether you're a nonprofit seeking funding, a university tracking research grants, or a government contractor monitoring new opportunities, this tool makes it easy to collect structured grant data from the federal government's official grant portal.

The Grants.gov Scraper collects federal grant opportunities with titles, agencies, funding amounts, deadlines, eligibility, descriptions, and document attachments. Filter by keyword, agency, status, category, and date range. Supports detailed mode with full descriptions, contacts, and attachments.

| | |
|---|---|
| **Target Audience** | Nonprofits, universities, government contractors, grant writers, policy analysts |
| **Primary Use Cases** | Grant monitoring, funding research, competitive intelligence, deadline tracking |

---

### 📋 What Does It Do

This tool collects federal grant opportunity data from Grants.gov, supporting keyword search with multiple filter options. It delivers:

- 📋 **Grant listings** - opportunity titles, numbers, agencies, and statuses from hundreds of federal programs
- 💰 **Funding details** - estimated funding totals, award ceilings, and award floors for each opportunity
- 📅 **Key dates** - posting dates, application deadlines, and archive dates
- 🏛️ **Agency data** - agency names, codes, and parent department information
- 🔍 **Powerful filters** - search by keyword, agency, status, funding category, eligibility type, and date range
- 📄 **Full descriptions** - optionally fetch complete descriptions, eligibility details, contact info, and document attachments

---

### 🎬 How to Use the Grants.gov Scraper - Full Demo

🚧 Demo video coming soon

---

### ⚙️ Input

To start collecting federal grant data, simply fill in the input form. You can search Grants.gov based on:

<table>
<tr><th>Field</th><th>Type</th><th>Description</th></tr>
<tr><td><b>Keywords</b></td><td>String</td><td>Search for grants containing these keywords (e.g. "health", "education", "climate"). Supports AND/OR operators.</td></tr>
<tr><td><b>Max Items</b></td><td>Integer</td><td>Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000.</td></tr>
<tr><td><b>Opportunity Status</b></td><td>Select</td><td>Filter by grant status: Posted (Open), Forecasted, Closed, Archived, or All.</td></tr>
<tr><td><b>Agency</b></td><td>String</td><td>Filter by federal agency code (e.g. "HHS", "DOE", "EPA", "NSF", "USDA").</td></tr>
<tr><td><b>Funding Category</b></td><td>String</td><td>Filter by category code (e.g. HL for Health, ED for Education, EN for Energy).</td></tr>
<tr><td><b>Eligibility</b></td><td>String</td><td>Filter by applicant type code (e.g. 12 for Nonprofits, 00 for State govts).</td></tr>
<tr><td><b>Close Date From</b></td><td>String</td><td>Only include grants closing on or after this date (MM/DD/YYYY).</td></tr>
<tr><td><b>Close Date To</b></td><td>String</td><td>Only include grants closing on or before this date (MM/DD/YYYY).</td></tr>
<tr><td><b>Include Full Details</b></td><td>Boolean</td><td>Fetch full description, eligibility info, contact details, and attachments for each grant.</td></tr>
</table>

**Example 1: Search open grants by keyword**

```json
{
    "keywords": "climate",
    "maxItems": 50,
    "oppStatuses": "posted",
    "agencies": "EPA",
    "includeDetails": true
}
````

**Example 2: Browse all open health grants**

```json
{
    "keywords": "health",
    "maxItems": 200,
    "oppStatuses": "posted",
    "fundingCategories": "HL"
}
```

> ⚠️ Free users are limited to 10 items per run. [Sign up for a paid plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 items.

***

### 📊 Output

After the Actor finishes its run, you'll get a dataset with the output. You can download results as Excel, HTML, XML, JSON, or CSV.

#### 🧾 Output Schema

| Field | Type | Description |
|-------|------|-------------|
| url | String | Grant opportunity page on Grants.gov |
| opportunityId | Number | Unique opportunity identifier |
| opportunityNumber | String | Official opportunity number |
| title | String | Opportunity title |
| agencyCode | String | Issuing agency code |
| agency | String | Issuing federal agency name |
| topAgency | String | Parent department name |
| status | String | Current status (Posted, Forecasted, Closed) |
| category | String | Grant category type |
| estimatedFunding | String | Total estimated program funding |
| awardCeiling | String | Maximum award amount |
| awardFloor | String | Minimum award amount |
| costSharing | Boolean | Whether cost sharing is required |
| postDate | String | Date posted |
| closeDate | String | Application deadline |
| contactEmail | String | Agency contact email |
| applicantTypes | Array | Eligible applicant types |
| fundingInstruments | Array | Funding instrument types |
| scrapedAt | String | Timestamp of data collection |

#### 📦 Sample Output

**Sample 1:**

```json
{
    "url": "https://www.grants.gov/search-results-detail/357994",
    "opportunityId": 357994,
    "opportunityNumber": "P25AS00474",
    "title": "FY2025 NAGPRA Repatriation Grants",
    "agencyCode": "DOI-NPS",
    "agency": "National Park Service",
    "topAgency": "Department of the Interior",
    "status": "POSTED",
    "category": "Discretionary",
    "estimatedFunding": "3407000",
    "awardCeiling": "25000",
    "awardFloor": "1000",
    "costSharing": false,
    "postDate": "2025-01-03",
    "closeDate": "2026-05-08",
    "contactEmail": "nagpra_grants@nps.gov",
    "applicantTypes": ["Special district governments", "Native American tribal governments"],
    "fundingInstruments": ["Grant"],
    "scrapedAt": "2026-04-07T12:00:00.000Z"
}
```

**Sample 2:**

```json
{
    "url": "https://www.grants.gov/search-results-detail/358120",
    "opportunityId": 358120,
    "title": "Environmental Education Grants Program",
    "agencyCode": "EPA",
    "agency": "Environmental Protection Agency",
    "topAgency": "Environmental Protection Agency",
    "status": "POSTED",
    "estimatedFunding": "3500000",
    "awardCeiling": "100000",
    "postDate": "2025-02-15",
    "closeDate": "2026-06-30",
    "scrapedAt": "2026-04-07T12:00:00.000Z"
}
```

**Sample 3:**

```json
{
    "url": "https://www.grants.gov/search-results-detail/358250",
    "opportunityId": 358250,
    "title": "Community Health Worker Training Program",
    "agencyCode": "HHS-HRSA",
    "agency": "Health Resources and Services Administration",
    "topAgency": "Department of Health and Human Services",
    "status": "POSTED",
    "estimatedFunding": "12000000",
    "awardCeiling": "500000",
    "awardFloor": "50000",
    "postDate": "2025-03-01",
    "closeDate": "2026-07-15",
    "scrapedAt": "2026-04-07T12:00:00.000Z"
}
```

***

### ✨ Why Choose the Grants.gov Scraper?

| Benefit | Description |
|---------|-------------|
| ⚡ **Batch collection** | Collect up to 1 million grants at once instead of browsing one at a time |
| 🔍 **Multiple filters** | Search by keyword, agency, status, category, eligibility, and date range |
| 📄 **Full descriptions** | Optionally fetch complete text, contacts, and attachments |
| 📁 **Structured output** | Export to JSON, CSV, or Excel for immediate analysis |
| 🔄 **Automated scheduling** | Set up daily or weekly monitoring for new opportunities |
| 📞 **Agency contacts** | Email, phone, and contact name included when available |
| 🎯 **No coding required** | Point-and-click interface that anyone can use |

***

### 📈 How Does It Compare?

| Feature | Our Tool | Manual Website Search |
|---------|----------|----------------------|
| Batch collection | ✅ Up to 1M grants | ❌ Browse one at a time |
| Multiple filters | ✅ Keyword, agency, status, category | ⚠️ Limited search |
| Full descriptions | ✅ Complete text + attachments | ⚠️ Click each one |
| Structured output | ✅ JSON, CSV, Excel | ❌ HTML pages only |
| Automated scheduling | ✅ Daily/weekly monitoring | ❌ Manual visits |

***

### 🚀 How to Use

1. **Sign Up** - [Create a free account w/ $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) (takes 2 minutes)
2. **Find the Scraper** - Search for "Grants.gov Scraper" in the Apify Store
3. **Set Input** - Enter your keywords, filters, and how many grants you want
4. **Run It** - Click "Start" and let it collect your data
5. **Download Data** - Get your results in the "Dataset" tab as CSV, Excel, or JSON

**Total Time:** Basic mode: 100 grants in about 2 seconds. With details enabled, each grant adds 0.2-0.5 seconds.
**No Technical Skills Required:** Everything is point-and-click

***

### 💼 Business Use Cases

**Nonprofits and Universities:**

- Monitor new funding opportunities daily to catch deadlines early
- Track research grants from NSF, NIH, DOE, and other agencies
- Build a pipeline of upcoming opportunities with deadlines and funding amounts

**Government Contractors:**

- Identify new contract and grant opportunities as they are posted
- Analyze federal funding trends and agency priorities
- Compare award amounts across agencies and categories

***

***

### ✨ Why choose this Actor

| | Capability |
|---|---|
| 🎯 | **Built for the job.** Scoped specifically to this data source so you skip the parser engineering entirely. |
| 🔖 | **Structured output.** Clean, typed fields ready for analysis, dashboards, or downstream pipelines. |
| ⚡ | **Fast.** Optimized request patterns return results in seconds, not minutes. |
| 🔁 | **Always fresh.** Every run pulls live data, so the dataset reflects the source as of run time. |
| 🌐 | **No infra to manage.** Apify handles proxies, retries, scaling, scheduling, and storage. |
| 🛡️ | **Reliable.** Battle-tested across many runs and edge cases, with graceful error handling. |
| 🚫 | **No code required.** Configure in the UI, run from CLI, schedule via cron, or call from any language with the Apify SDK. |

> 📊 Production-grade structured data without the engineering overhead of building and maintaining your own scraper.

***

### 📈 How it compares to alternatives

| Approach | Cost | Coverage | Refresh | Filters | Setup |
|---|---|---|---|---|---|
| **⭐ Grants.gov Federal Grant Opportunities Scraper** *(this Actor)* | $5 free credit, then pay-per-use | Full source coverage | **Live per run** | Source-native filters supported | ⚡ 2 min |
| Build your own scraper | Engineering hours | Full once built | Whenever you maintain it | Custom code | 🐢 Days to weeks |
| Paid managed APIs | $$$ monthly | Vendor-defined | Live | Vendor-defined | ⏳ Hours |
| Third-party data dumps | Varies | Subset, often stale | Periodic | None | 🕒 Variable |

Pick this Actor when you want broad coverage, server-side filtering, and no pipeline maintenance.

***

### 🚀 How to use

1. 📝 **Sign up.** [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) (takes 2 minutes).
2. 🌐 **Open the Actor.** Go to the Grants.gov Federal Grant Opportunities Scraper page on the Apify Store.
3. 🎯 **Set input.** Configure the input fields in the form (or paste a JSON), then set maxItems.
4. 🚀 **Run it.** Click **Start** and let the Actor collect your data.
5. 📥 **Download.** Grab your results in the **Dataset** tab as CSV, Excel, JSON, or XML.

> ⏱️ Total time from signup to downloaded dataset: **3-5 minutes.** No coding required.

***

### 💼 Business use cases

<table>
<tr>
<td width="50%" valign="top">

#### 📊 Data & Analytics

- Build trend reports and dashboards from live source data
- Feed BI tools, warehouses, and ML pipelines with structured records
- Run periodic snapshots to track changes over time
- Compare segments, regions, or categories with consistent fields

</td>
<td width="50%" valign="top">

#### 🏢 Operations & Strategy

- Monitor competitor moves, pricing, and inventory shifts
- Build internal directories and lookup tools backed by current data
- Power workflows that depend on fresh source records
- Cut manual data-gathering time from hours to minutes

</td>
</tr>
<tr>
<td width="50%" valign="top">

#### 🎯 Marketing & Growth

- Identify market opportunities and trending topics
- Research target audiences and customer personas at scale
- Power lead-generation pipelines with verified records
- Track sentiment, reviews, or social signals over time

</td>
<td width="50%" valign="top">

#### 🛠️ Engineering & Product

- Prototype features that need real-world data without owning a crawler
- Replace fragile in-house scrapers with a managed Actor
- Wire datasets into your apps via the Apify API or webhooks
- Skip the proxy, retry, and parsing maintenance entirely

</td>
</tr>
</table>

***

### 🌟 Beyond business use cases

Data like this powers more than commercial workflows. The same structured records support research, education, civic projects, and personal initiatives.

<table>
<tr>
<td width="50%">

#### 🎓 Research and academia

- Empirical datasets for papers, thesis work, and coursework
- Longitudinal studies tracking changes across snapshots
- Reproducible research with cited, versioned data pulls
- Classroom exercises on data analysis and ethical scraping

</td>
<td width="50%">

#### 🎨 Personal and creative

- Side projects, portfolio demos, and indie app launches
- Data visualizations, dashboards, and infographics
- Content research for bloggers, YouTubers, and podcasters
- Hobbyist collections and personal trackers

</td>
</tr>
<tr>
<td width="50%">

#### 🤝 Non-profit and civic

- Transparency reporting and accountability projects
- Advocacy campaigns backed by public-interest data
- Community-run databases for local issues
- Investigative journalism on public records

</td>
<td width="50%">

#### 🧪 Experimentation

- Prototype AI and machine-learning pipelines with real data
- Validate product-market hypotheses before engineering spend
- Train small domain-specific models on niche corpora
- Test dashboard concepts with live input

</td>
</tr>
</table>

### 🤖 Ask an AI assistant about this scraper

Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:

- 💬 [**ChatGPT**](https://chat.openai.com/?q=How%20do%20I%20use%20the%20Grants.gov%20Federal%20Grant%20Opportunities%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🧠 [**Claude**](https://claude.ai/new?q=How%20do%20I%20use%20the%20Grants.gov%20Federal%20Grant%20Opportunities%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🔍 [**Perplexity**](https://perplexity.ai/search?q=How%20do%20I%20use%20the%20Grants.gov%20Federal%20Grant%20Opportunities%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🅒 [**Copilot**](https://copilot.microsoft.com/?q=How%20do%20I%20use%20the%20Grants.gov%20Federal%20Grant%20Opportunities%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)

### ❓ Frequently Asked Questions

<details>
<summary><b>💳 Do I need a paid Apify plan to run this actor?</b></summary>

No. You can start right now on the free Apify plan, which includes **$5 in free monthly credit**. That is enough to run this actor several times and explore the output before committing to anything. Paid plans unlock higher limits, more concurrent runs, and larger datasets. [Create a free Apify account here](https://console.apify.com/sign-up?fpr=vmoqkp) to get started.

</details>

<details>
<summary><b>🚨 What happens if my run fails or returns no results?</b></summary>

Failed runs are not charged. If the source site changes, proxies get rate-limited, or a specific input matches nothing, re-run the actor or open our [contact form](https://tally.so/r/BzdKgA) and we will investigate. You can also check the run log in the Apify console to see why the run stopped.

</details>

<details>
<summary><b>📏 How many items can I scrape per run?</b></summary>

Free users are limited to **10 items per run** so you can preview the output and confirm the actor works for your use case. Paid users can raise maxItems up to **1,000,000** per run. [Upgrade here](https://console.apify.com/sign-up?fpr=vmoqkp) if you need full scale.

</details>

<details>
<summary><b>🕒 How fresh is the data?</b></summary>

Every run fetches live data at the moment of execution. There is no cache or delay: the records you get reflect what the source returned at that moment. Schedule the actor to maintain a rolling snapshot of the data you need.

</details>

<details>
<summary><b>🧑‍💻 Can I call this actor from my own code?</b></summary>

Yes. Apify exposes every actor as a REST endpoint and ships first-class SDKs for [Node.js](https://docs.apify.com/sdk/js) and [Python](https://docs.apify.com/sdk/python). You can start a run, read the dataset, and handle webhooks from your own app in a few lines. All you need is your Apify API token.

</details>

<details>
<summary><b>📤 How do I export the data?</b></summary>

Every Apify dataset can be downloaded in one click from the console as CSV, JSON, JSONL, Excel, HTML, XML, or RSS. You can also pull results programmatically via the [Apify API](https://docs.apify.com/api/v2) or stream them into BigQuery, S3, and other destinations through built-in integrations.

</details>

<details>
<summary><b>📅 Can I schedule the actor to run automatically?</b></summary>

Yes. Use the Apify scheduler to run the actor on any cadence, from hourly to monthly. Results are saved to your dataset and can be delivered to webhooks, email, Slack, cloud storage, or automation tools such as Zapier and Make.

***

</details>

### 🔌 Automating Your Workflows

For advanced users who want to automate this process, you can control the scraper programmatically with the Apify API. This allows you to schedule regular data collection and integrate with your existing business tools.

- **Node.js**: Install the apify-client NPM package
- **Python**: Use the apify-client PyPI package
- See the [Apify API reference](https://docs.apify.com/api/v2) for full details

### 🔌 Integrate Grants.gov Scraper with any app

Last but not least, Grants.gov Scraper can be connected with almost any cloud service or web app thanks to [integrations](https://apify.com/integrations) on the Apify platform.

These include:

- [Make](https://docs.apify.com/platform/integrations/make) - Automate grant monitoring workflows
- [Zapier](https://docs.apify.com/platform/integrations/zapier) - Get alerts when new grants match your criteria
- [Slack](https://docs.apify.com/platform/integrations/slack) - Get notified in your team channel
- [Airbyte](https://docs.apify.com/platform/integrations/airbyte) - Build data pipelines
- [GitHub](https://docs.apify.com/platform/integrations/github) - Version control integration
- [Google Drive](https://docs.apify.com/platform/integrations/drive) - Export grant data to spreadsheets

Alternatively, you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever Grants.gov Scraper successfully finishes a run.

***

### 🔌 Integrate with any app

Grants.gov Federal Grant Opportunities Scraper connects to any cloud service via [Apify integrations](https://apify.com/integrations):

- [**Make**](https://docs.apify.com/platform/integrations/make) - Automate multi-step workflows
- [**Zapier**](https://docs.apify.com/platform/integrations/zapier) - Connect with 5,000+ apps
- [**Slack**](https://docs.apify.com/platform/integrations/slack) - Get run notifications in your channels
- [**Airbyte**](https://docs.apify.com/platform/integrations/airbyte) - Pipe results into your warehouse
- [**GitHub**](https://docs.apify.com/platform/integrations/github) - Trigger runs from commits and releases
- [**Google Drive**](https://docs.apify.com/platform/integrations/drive) - Export datasets straight to Sheets

You can also use webhooks to trigger downstream actions when a run finishes. Push fresh data into your product backend, or alert your team in Slack.

***

### 🔗 Recommended Actors

Looking for more government data tools? Check out these related actors:

| Actor | Description | Link |
|-------|-------------|------|
| GSA eLibrary Scraper | Collect government contract data from GSA | <https://apify.com/parseforge/gsa-elibrary-scraper> |
| FAA Aircraft Registry Scraper | Extract aircraft registration data | <https://apify.com/parseforge/faa-aircraft-registry-scraper> |
| FINRA BrokerCheck Scraper | Look up broker registration data | <https://apify.com/parseforge/finra-brokercheck-scraper> |
| FDIC Bank Financial Data Scraper | Extract US bank financial data | <https://apify.com/parseforge/fdic-bank-scraper> |
| Greatschools Scraper | Collect school ratings and data | <https://apify.com/parseforge/greatschools-scraper> |

**Pro Tip:** 💡 Browse our complete collection of [data collection actors](https://apify.com/parseforge) to find the perfect tool for your business needs.

***

### 🆘 Need Help?

- Check the FAQ section above for common questions
- Visit the [Apify documentation](https://docs.apify.com) for platform guides
- Contact us at [Tally contact form](https://tally.so/r/BzdKgA)

***

> **⚠️ Disclaimer:** This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Grants.gov, the U.S. government, or any federal agency. All trademarks mentioned are the property of their respective owners.

# Actor input Schema

## `keywords` (type: `string`):

Search for grants containing these keywords (e.g., 'health', 'education', 'climate'). Supports AND/OR operators.

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

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000.

## `oppStatuses` (type: `string`):

Filter by grant status.

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

Filter by federal agency code (e.g., 'HHS', 'DOE', 'EPA', 'NSF', 'USDA', 'DOD', 'NASA'). Leave empty for all.

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

Filter by category code. Examples: HL (Health), ED (Education), EN (Energy), ST (Science/Technology), AG (Agriculture), ENV (Environment).

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

Filter by applicant type code. Examples: 25 (Others), 99 (Unrestricted), 12 (Nonprofits), 00 (State govts), 06 (Native American).

## `closeDateStart` (type: `string`):

Only include grants closing on or after this date (MM/DD/YYYY).

## `closeDateEnd` (type: `string`):

Only include grants closing on or before this date (MM/DD/YYYY).

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

Fetch full description, eligibility info, contact details, and attachments for each grant. Slower but much more data.

## Actor input object example

```json
{
  "keywords": "health",
  "maxItems": 10,
  "oppStatuses": "posted",
  "includeDetails": false
}
```

# Actor output Schema

## `overview` (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": "health",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/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": "health",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/grants-gov-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": "health",
  "maxItems": 10
}' |
apify call parseforge/grants-gov-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=parseforge/grants-gov-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Grants.gov Federal Grant Opportunities Scraper",
        "description": "Scrape federal grant opportunities from Grants.gov. Get titles, agencies, funding amounts, deadlines, eligibility, and descriptions. Filter by keyword, agency, status, category, and date range. Supports detailed mode with full descriptions, contacts, and attachments.",
        "version": "1.0",
        "x-build-id": "KePTotMReXvNpXCsQ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/parseforge~grants-gov-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-parseforge-grants-gov-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/parseforge~grants-gov-scraper/runs": {
            "post": {
                "operationId": "runs-sync-parseforge-grants-gov-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/parseforge~grants-gov-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-parseforge-grants-gov-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "keywords": {
                        "title": "Keywords",
                        "type": "string",
                        "description": "Search for grants containing these keywords (e.g., 'health', 'education', 'climate'). Supports AND/OR operators."
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 1000000,
                        "type": "integer",
                        "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000."
                    },
                    "oppStatuses": {
                        "title": "Opportunity Status",
                        "enum": [
                            "posted",
                            "forecasted",
                            "closed",
                            "archived",
                            ""
                        ],
                        "type": "string",
                        "description": "Filter by grant status.",
                        "default": "posted"
                    },
                    "agencies": {
                        "title": "Agency",
                        "type": "string",
                        "description": "Filter by federal agency code (e.g., 'HHS', 'DOE', 'EPA', 'NSF', 'USDA', 'DOD', 'NASA'). Leave empty for all."
                    },
                    "fundingCategories": {
                        "title": "Funding Category",
                        "type": "string",
                        "description": "Filter by category code. Examples: HL (Health), ED (Education), EN (Energy), ST (Science/Technology), AG (Agriculture), ENV (Environment)."
                    },
                    "eligibilities": {
                        "title": "Eligibility",
                        "type": "string",
                        "description": "Filter by applicant type code. Examples: 25 (Others), 99 (Unrestricted), 12 (Nonprofits), 00 (State govts), 06 (Native American)."
                    },
                    "closeDateStart": {
                        "title": "Close Date From",
                        "type": "string",
                        "description": "Only include grants closing on or after this date (MM/DD/YYYY)."
                    },
                    "closeDateEnd": {
                        "title": "Close Date To",
                        "type": "string",
                        "description": "Only include grants closing on or before this date (MM/DD/YYYY)."
                    },
                    "includeDetails": {
                        "title": "Include Full Details",
                        "type": "boolean",
                        "description": "Fetch full description, eligibility info, contact details, and attachments for each grant. Slower but much more data.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
