# Grants.gov Grant Opportunity Search (`vigil-works/grants-gov-search`) Actor

Search federal grant opportunities on Grants.gov by keyword, agency, category, eligibility and close date. Official free API, no key needed.

- **URL**: https://apify.com/vigil-works/grants-gov-search.md
- **Developed by:** [Vigil Works](https://apify.com/vigil-works) (community)
- **Categories:** Business, Education
- **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 opportunities

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 Grant Opportunity Search

Find federal grants and get clean, flat rows you can drop into a spreadsheet, CRM, database or AI agent. It reads the official free Grants.gov API, so there is no scraping and nothing to break when the website changes. No API key is needed.

### What it does

- Searches open (posted), upcoming (forecasted), closed and archived federal funding opportunities.
- Filters by keyword, agency, funding category, who can apply (small businesses, nonprofits, universities, tribes, individuals and more), funding instrument, Assistance Listing number, open date and deadline.
- Runs several keywords at once and removes duplicates.
- Returns the full picture for each grant: description, award floor and ceiling, total funding, number of expected awards, cost sharing, eligible applicants, agency contact and a link to the full announcement.
- Retries on errors, waits politely between requests, skips a single broken record instead of losing the run, and stops with a plain message when an input is wrong.

### Who it is for

Grant writers and consultants, nonprofits and small businesses hunting for funding, university research offices, economic development teams, and newsletter or alert builders. Schedule it on Apify to get a fresh list of grants closing in the next 30 days every Monday.

### Example input

```json
{
  "keywords": ["small business", "clean energy"],
  "statuses": ["posted", "forecasted"],
  "eligibilities": ["23"],
  "closingFrom": "2026-12-01",
  "closingTo": "2027-02-28",
  "includeDetails": true,
  "sortBy": "closeDate|asc",
  "maxResults": 100
}
```

| Field | What it does |
|---|---|
| `keywords` | Words or phrases. Empty = everything matching the other filters. |
| `statuses` | `posted`, `forecasted`, `closed`, `archived`. Default: posted and forecasted. |
| `agencies` | Agency codes such as `NSF`, `HHS-NIH11`, `USDA-NIFA`, `DOE-SC`. A top-level code like `HHS` includes its sub-agencies. |
| `fundingCategories` | Codes such as `ED` education, `EN` energy, `HL` health, `AG` agriculture, `ST` science and technology, `BC` business and commerce. |
| `eligibilities` | Who can apply: `23` small businesses, `12` 501(c)(3) nonprofits, `06` public universities, `11` tribes, `21` individuals, `00` state governments, `99` unrestricted. |
| `fundingInstruments` | `G` grant, `CA` cooperative agreement, `PC` procurement contract, `O` other. |
| `assistanceListing` | One Assistance Listing (CFDA) number such as `47.076`. |
| `postedFrom` | Only grants that opened on or after this date (`YYYY-MM-DD`). |
| `closingFrom` / `closingTo` | Deadline window. Grants without a fixed deadline are skipped when either is set. |
| `includeDetails` | `true` (default) adds amounts, eligibility, contact and description at one extra request per grant. `false` is a fast list of titles and deadlines. |
| `sortBy` | Closing soonest (default), newest, title, agency. |
| `maxResults` | Up to 5,000 in total. |

### Example output

```json
{
  "opportunityNumber": "DE-FOA-0003631",
  "title": "Unlocking New Levels of Output and Capacity for Key Subsurface Resources SBIR/STTR (UNLOCK SBIR/STTR)",
  "status": "posted",
  "agencyCode": "DOE-ARPAE",
  "agency": "Advanced Research Projects Agency Energy",
  "openDate": "2026-10-21",
  "closeDate": "2026-11-20",
  "awardCeiling": 4630944,
  "awardFloor": 323090,
  "estimatedTotalFunding": 45000000,
  "expectedAwards": 12,
  "costSharing": false,
  "eligibleApplicants": ["Small businesses"],
  "fundingInstruments": ["Cooperative Agreement", "Grant"],
  "contactEmail": "arpa-e-co@hq.doe.gov",
  "url": "https://www.grants.gov/search-results-detail/364135",
  "searchKeyword": "small business"
}
```

### Output fields

`opportunityId`, `opportunityNumber`, `title`, `status`, `agencyCode`, `agency`, `openDate`, `closeDate`, `assistanceListings`, `url`, and with details on: `category`, `description`, `awardCeiling`, `awardFloor`, `estimatedTotalFunding`, `expectedAwards`, `costSharing`, `eligibleApplicants`, `eligibilityNotes`, `fundingInstruments`, `fundingActivityCategories`, `contactName`, `contactEmail`, `contactPhone`, `fullAnnouncementUrl`, `archiveDate`, `lastUpdated`, `searchKeyword`. Dates are `YYYY-MM-DD`; amounts are US dollars.

### Notes

- Data comes from the public Grants.gov API. This Actor is not affiliated with or endorsed by Grants.gov or the U.S. government. Always confirm deadlines and rules on the official announcement before applying.
- Some grants have no fixed close date (rolling or forecasted); their `closeDate` is `null`.
- Exports to JSON, CSV, Excel and more from the Apify dataset, or call it from the API or an AI agent through Apify's MCP server.

### Pricing

Pay per event: $2 per 1,000 results ($0.002 per row saved to the dataset), plus a $0.00005 start fee. You do not pay separately for Apify platform usage, so a 50-row search costs about 10 cents.

### Related Actors

- [Federal Register Search](https://apify.com/vigil-works/federal-register-search): rules, proposed rules and notices with comment deadlines.
- [Lobbying Disclosures (Senate LDA)](https://apify.com/vigil-works/lobbying-disclosures): who lobbies on which issue, for which client, and how much.

### Questions?

Open an issue on this Actor's Issues tab and it gets answered. Tell me which fields or filters you wish it had and they get considered.

# Actor input Schema

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

Words or phrases to look for in grant titles and descriptions. Each keyword is searched separately and results are merged without duplicates. Leave empty to list everything that matches the other filters.

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

posted = open for applications, forecasted = announced but not yet open, closed = deadline passed, archived = old. Default: posted and forecasted.

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

Grants.gov agency codes, for example NSF, HHS-NIH11, USDA-NIFA, DOE-SC, DOD-AMC. A top-level code such as HHS or USDA matches all of its sub-agencies. Leave empty for all agencies.

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

Category codes: AG agriculture, AR arts, BC business and commerce, CD community development, ED education, EN energy, ENV environment, FN food and nutrition, HL health, HO housing, HU humanities, IS information and statistics, ISS income security and social services, LJL law and justice, NR natural resources, RD regional development, ST science and technology, T transportation, O other. Leave empty for all.

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

Applicant type codes: 00 state governments, 01 counties, 02 cities and townships, 06 public universities, 07 private universities, 11 Native American tribes, 12 nonprofits with 501(c)(3), 13 other nonprofits, 21 individuals, 22 for-profit organizations, 23 small businesses, 25 others, 99 unrestricted. Leave empty for all.

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

G grant, CA cooperative agreement, PC procurement contract, O other. Leave empty for all.

## `assistanceListing` (type: `string`):

Optional. A single Assistance Listing number such as 47.076.

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

Only opportunities that opened for applications on or after this date, YYYY-MM-DD.

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

Only opportunities whose deadline is on or after this date, YYYY-MM-DD. Grants with no fixed deadline are skipped when a closing date filter is set.

## `closingTo` (type: `string`):

Only opportunities whose deadline is on or before this date, YYYY-MM-DD.

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

Adds the description, award amounts, eligible applicants, contact and the link to the full announcement to every row. Costs one extra request per grant. Turn off for a fast list of titles and deadlines.

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

How to order results.

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

Stop after this many opportunities in total.

## Actor input object example

```json
{
  "keywords": [
    "small business",
    "clean energy"
  ],
  "statuses": [
    "posted",
    "forecasted"
  ],
  "includeDetails": true,
  "sortBy": "closeDate|asc",
  "maxResults": 100
}
```

# 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",
        "clean energy"
    ],
    "statuses": [
        "posted",
        "forecasted"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vigil-works/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",
        "clean energy",
    ],
    "statuses": [
        "posted",
        "forecasted",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("vigil-works/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",
    "clean energy"
  ],
  "statuses": [
    "posted",
    "forecasted"
  ]
}' |
apify call vigil-works/grants-gov-search --silent --output-dataset

```

## MCP server setup

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