# Grants.gov Scraper: Federal Grant Opportunities Export (`adhistory/grants-gov-search`) Actor

Export federal grant opportunities from Grants.gov to CSV, Excel or JSON: agency, deadline, award ceiling and floor, total funding, eligible applicants, description, contact and documents. Filter by keyword, agency, category or deadline, or get only new grants each day.

- **URL**: https://apify.com/adhistory/grants-gov-search.md
- **Developed by:** [Brandon Ob](https://apify.com/adhistory) (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 $2.00 / 1,000 grant opportunity exporteds

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 Export

Export **federal grant opportunities from Grants.gov** to a spreadsheet: every open and forecasted grant with its **agency, application deadline, days left, award ceiling and floor, total program funding, number of awards, eligible applicants, eligibility text, description, contact email and NOFO documents**, as CSV, Excel or JSON. Built for grant writers, nonprofits, universities, local governments, small businesses (SBIR/STTR) and grant consultants. $2 per 1,000 opportunities.

### What does the Grants.gov Scraper do?

Grants.gov lists about 800 open federal funding opportunities and several hundred forecasts at any time. The website shows 25 results per page and puts the money, eligibility and contact on a separate page for each grant. This Actor reads the **official public Grants.gov API** and puts everything in one table:

- **Search like on Grants.gov:** keywords (one search per line, merged without duplicates), status (forecasted, posted, closed, archived), agency, funding category, eligible applicant type, funding instrument and Assistance Listing (CFDA) number.
- **The money in columns:** `awardCeiling`, `awardFloor`, `estimatedTotalFunding` and `expectedNumberOfAwards` as numbers you can sort and filter, so you can drop grants too small to be worth applying for (`minAwardCeiling`).
- **Deadlines you can act on:** `closeDate` as `2027-02-26`, `daysUntilClose`, and the agency's exact wording ("4:59pm Eastern Time"). Use **Deadline within (days)** to list only grants closing in the next 30, 60 or 90 days.
- **Who can apply:** the eligible applicant types plus the full eligibility text, with HTML removed.
- **Forecasts included:** forecasted grants come with the estimated posting date, estimated due date, estimated award date and fiscal year, so you can start writing before the NOFO is out.
- **Documents:** links to the NOFO PDF and other attachments, the agency's own funding page, and the Grants.gov page for each grant.
- **New-grant alerts:** turn on *Only new since the last run* and schedule it daily or weekly; each run returns only grants you have not seen.

### Sample output

Real rows from a default run on 2026-11-21 (keywords: small business, broadband, mental health):

| postedDate | closeDate | agency | title | awardCeiling | estimatedTotalFunding |
|---|---|---|---|---|---|
| 2026-11-20 | 2027-02-26 | Economic Development Administration | FY 2027 Build to Scale Notice of Funding Opportunity | 7,000,000 | 145,000,000 |
| 2026-11-17 | 2026-12-30 | Geological Survey | Water Resources Research Act Program Annual Base Grants | 608,550 | 11,562,500 |
| 2026-11-12 | 2027-03-04 | U.S. National Science Foundation | Small Business Innovation Research / Small Business Technology Transfer… | | 210,000,000 |
| 2026-11-06 | 2027-01-08 | Health Resources and Services Administration | Women's Initiative for Screening and Health (WISH) | 1,000,000 | 1,000,000 |

### Use cases

- **Grant writers and consultants:** a weekly list of new grants in your clients' categories, with deadline and award size, ready to paste into your pipeline tracker.
- **Nonprofits:** every open grant your organization type is eligible for (`eligibilities: ["nonprofit"]`), sorted by deadline.
- **Universities and research offices:** new NIH, NSF, DOE or USDA opportunities by agency code, including forecasts.
- **Small businesses:** SBIR/STTR and other grants open to small businesses (`eligibilities: ["small business"]`).
- **Cities, counties and tribes:** infrastructure, broadband, housing and community development grants open to local governments.
- **Funding newsletters and dashboards:** a clean feed of new federal grants with amounts and deadlines, scheduled daily into Google Sheets, Slack or email.

### How to use it

1. Click **Try for free**. The default input searches open and forecasted grants for three example keywords and returns 30 with full details.
2. Change **Keywords**, or leave them empty and filter by **Agencies**, **Funding categories** or **Eligible applicants** instead.
3. Optional: set **Deadline within (days)**, **Posted within (days)** or **Minimum award ceiling**.
4. Run, open the **Grant opportunities** table and export CSV, Excel or JSON.
5. For a new-grant alert: turn on **Only new since the last run**, save the input as a task and schedule it. Connect email, Slack or Google Sheets under Integrations.

### Input

| Field | What it does | Default |
|---|---|---|
| Keywords | Words or phrases searched in title and description, one search per line | none (all grants) |
| Match multi-word keywords as a phrase | "mental health" as an exact phrase, not either word | on |
| Status | forecasted, posted, closed, archived | forecasted + posted |
| Deadline within (days) | Only grants closing in the next N days | any |
| Posted within (days) | Only grants posted in the last N days | any |
| Agencies | Grants.gov agency codes; `HHS` also matches `HHS-NIH11`, `HHS-CDC`… | all |
| Funding categories | Health, Education, Environment, Business and Commerce… (names or codes) | all |
| Eligible applicants | nonprofit, small business, for profit, individuals, state, county, city, tribe, school district, public/private university, unrestricted | all |
| Funding instrument | Grant, Cooperative Agreement, Procurement Contract, Other | all |
| Assistance Listing (CFDA) numbers | e.g. 93.243 | none |
| Minimum award ceiling ($) | Only grants whose largest award is at least this much | none |
| Include full details | Money, eligibility, description, contact, documents | on |
| Only new since the last run | Skip grants returned by earlier runs | off |
| Max results | Stop after this many grants | 100 |

Example input: health and education grants open to nonprofits, closing in the next 60 days, with awards of at least $100,000.

```json
{
  "statuses": ["posted"],
  "fundingCategories": ["Health", "Education"],
  "eligibilities": ["nonprofit"],
  "closingWithinDays": 60,
  "minAwardCeiling": 100000,
  "maxResults": 500
}
```

### Output

One item per funding opportunity (text shortened):

```json
{
  "opportunityId": "364206",
  "opportunityNumber": "EDA-B2S-2027",
  "title": "FY 2027 Build to Scale Notice of Funding Opportunity",
  "agency": "Economic Development Administration",
  "agencyCode": "DOC-EDA",
  "department": "Department of Commerce",
  "status": "posted",
  "postedDate": "2026-11-20",
  "closeDate": "2027-02-26",
  "daysUntilClose": 97,
  "closeDateDetails": "The application deadline is 4:59pm Eastern Time on February 26, 2027. ...",
  "awardCeiling": 7000000,
  "awardFloor": 1,
  "estimatedTotalFunding": 145000000,
  "expectedNumberOfAwards": 30,
  "costSharingRequired": true,
  "fundingInstruments": ["Grant"],
  "fundingCategories": ["Business and Commerce", "Community Development", "Regional Development", "..."],
  "eligibleApplicants": ["Public and State controlled institutions of higher education", "County governments", "..."],
  "eligibilityDetails": "Eligible applicants for EDA financial assistance under this NOFO include:\n• A State;\n• An Indian tribe; ...",
  "assistanceListings": ["11.024 BUILD TO SCALE"],
  "description": "The Build to Scale (B2S) program strengthens America's economic and technological leadership ...",
  "contactName": "Amanda Kosty\nEconomic Development Specialist",
  "contactEmail": "oie@eda.gov",
  "contactPhone": "2027313439",
  "additionalInfoUrl": "https://sfgrants.eda.gov/s/funding-program/a2jSJ000003hlYDYAY/fy2027-b2s-nofo",
  "attachments": [{"name": "FY2027 Build to Scale Notice of Funding Opportunity", "fileName": "FY27 B2S NOFO.pdf", "folder": "Full Announcement", "url": "https://apply07.grants.gov/grantsws/rest/opportunity/att/download/355722"}],
  "url": "https://www.grants.gov/search-results-detail/364206",
  "matchedKeyword": "small business",
  "lastUpdated": "2026-11-20",
  "scrapedAt": "2026-11-21T09:11:30+00:00"
}
```

Forecasted grants also have `estimatedPostDate`, `estimatedAwardDate`, `estimatedProjectStart` and `fiscalYear`; their `closeDate` is the estimated due date.

### Pricing

Pay per result: **$2 per 1,000 grant opportunities** ($0.002 each), no start fee. Searches that return nothing cost nothing. You can set a maximum cost per run and the Actor stops cleanly at it.

### Limits (honest)

- **Federal grants only.** Grants.gov covers US federal discretionary grants and cooperative agreements. It does not list state, city or private foundation grants, and procurement contracts mostly live on SAM.gov.
- **What the agency published:** many grants leave the award ceiling, floor or total funding empty (or 0); those fields are `null`. Eligibility is often "Others, see text": read `eligibilityDetails`.
- **Keyword search is Grants.gov's own search**, so results match what the Grants.gov website returns for the same words.
- Descriptions and eligibility text are cut at 5,000 characters; the full text and documents are at the `url` and `attachments` links.
- Agency filtering is by Grants.gov agency code (e.g. `HHS-NIH11`, `DOC-EDA`, `USDA-NIFA`, `NSF`); a department code such as `HHS` covers all its sub-agencies.
- Data is live from Grants.gov at run time; nothing is cached.

### FAQ

**How do I download all open federal grants to Excel?**
Leave Keywords empty, keep Status on posted, set Max results to 1,000, run it, and export the table as Excel.

**How do I get alerts for new grants?**
Set your keywords or filters, turn on *Only new since the last run*, save it as a task and schedule it daily. Add an email or Slack integration to get each new batch.

**Can I find grants for nonprofits or small businesses only?**
Yes: put `nonprofit` or `small business` in **Eligible applicants**. Grants marked "Unrestricted" are open to everyone and are listed under `unrestricted`.

**Do I need a Grants.gov account or API key?**
No. The Actor uses the public Grants.gov search API, which needs no login or key.

**Something broke or you need a field?** Open an issue on the Issues tab. I usually reply within a day.

### Also from this developer

More public-records exports: [FDA Recalls Export](https://apify.com/adhistory/fda-recalls-export) (food, drug and device recalls) and [SEC EDGAR Filings Export](https://apify.com/adhistory/sec-edgar-filings-export) (filings and key financials). Put any table into a spreadsheet with [Google Sheets Export & Import](https://apify.com/adhistory/google-sheets-export-actor), or pull tables out of NOFO PDFs with [PDF Table to Excel](https://apify.com/adhistory/pdf-tables-to-excel). All tools at [apify.com/adhistory](https://apify.com/adhistory).

# Actor input Schema

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

Words to search for in the grant title and description, one search per line (e.g. broadband, mental health, small business). Results from all lines are merged without duplicates. Leave empty to list every opportunity that matches the other filters.

## `exactPhrase` (type: `boolean`):

Search 'mental health' as the exact phrase instead of either word anywhere in the text. Turn off for broader results. Keywords you put in quotes or write with AND/OR/NOT are sent as written.

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

Which opportunities to include: forecasted (announced ahead, not open yet), posted (open for applications), closed or archived. Default: forecasted and posted.

## `closingWithinDays` (type: `integer`):

Only grants whose application deadline is in the next N days. 0 = any deadline (also keeps grants with no deadline).

## `postedWithinDays` (type: `integer`):

Only grants posted in the last N days. 0 = any posting date.

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

Grants.gov agency codes. A department code also matches its sub-agencies: HHS covers HHS-NIH11, HHS-CDC and so on. Examples: HHS, DOC-EDA, USDA, NSF, ED, DOE. Leave empty for all agencies.

## `fundingCategories` (type: `array`):

Category names or codes, e.g. Health (HL), Education (ED), Environment (ENV), Business and Commerce (BC), Community Development (CD), Science and Technology (ST), Agriculture (AG), Arts (AR), Housing (HO), Energy (EN). Leave empty for all.

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

Who may apply: nonprofit, small business, for profit, individuals, state, county, city, tribe, school district, public university, private university, unrestricted (or the Grants.gov code, e.g. 12). Leave empty for all.

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

Grant, Cooperative Agreement, Procurement Contract or Other. Leave empty for all.

## `assistanceListings` (type: `array`):

Optional. Federal Assistance Listing numbers such as 93.243 or 11.307; each is searched on its own.

## `minAwardCeiling` (type: `integer`):

Only grants whose largest single award is at least this many US dollars. 0 = no minimum. Grants that publish no ceiling are left out when this is set.

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

Add award ceiling and floor, total funding, number of awards, eligibility text, description, contact and document links (one extra request per grant). Turn off for a faster list with title, agency, dates and status only.

## `onlyNewSinceLastRun` (type: `boolean`):

Return only opportunities this Actor has not returned before (remembered in a named key-value store in your account). Use it with a daily schedule for new-grant alerts.

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

Stop after this many opportunities. You are charged per opportunity delivered.

## Actor input object example

```json
{
  "keywords": [
    "small business",
    "broadband",
    "mental health"
  ],
  "exactPhrase": true,
  "statuses": [
    "forecasted",
    "posted"
  ],
  "closingWithinDays": 0,
  "postedWithinDays": 0,
  "minAwardCeiling": 0,
  "includeDetails": true,
  "onlyNewSinceLastRun": false,
  "maxResults": 30
}
```

# 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": [
        "small business",
        "broadband",
        "mental health"
    ],
    "maxResults": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("adhistory/grants-gov-search").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": [
        "small business",
        "broadband",
        "mental health",
    ],
    "maxResults": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("adhistory/grants-gov-search").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": [
    "small business",
    "broadband",
    "mental health"
  ],
  "maxResults": 30
}' |
apify call adhistory/grants-gov-search --silent --output-dataset

```

## MCP server setup

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

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/K5b49Utcdb6556EmB/builds/uVVhvUedc1GZZoDO3/openapi.json
