# Grant Opportunity Finder: US Federal Grants with Deadlines (`scrapemint/grant-opportunity-finder`) Actor

Find live US federal grant opportunities by keyword, agency, category, and eligibility. One row per grant with deadlines, award amounts, eligibility, and agency contact email. Official grants.gov API, no key, no browser. Pay per opportunity.

- **URL**: https://apify.com/scrapemint/grant-opportunity-finder.md
- **Developed by:** [Ken M](https://apify.com/scrapemint) (community)
- **Categories:** Business, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 grant opportunity rows

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Grant Opportunity Finder: US Federal Grants with Deadlines

Search live US federal grant opportunities and get one clean JSON row per grant: opportunity number, title, agency, open and close dates, award ceiling and floor, estimated total funding, eligible applicant types, funding categories, a plain-text description, the application link, and the agency contact email when published. Reads grants.gov's official public API: no key, no login, no browser.

Built for grant writers and consultants, nonprofit development teams, universities, hospitals, municipalities, and startups hunting SBIR-adjacent funding. Turn on cross-run dedupe, put it on a weekly schedule, and each run returns only newly posted grants matching your profile — the alert that discovery platforms charge $179+/month for.

### What you get

One row per opportunity, with:

- `opportunityNumber`, `title`, `agencyCode`, `agencyName`, `status`
- `openDate`, `closeDate` (application deadline), `docType`
- `awardCeiling`, `awardFloor`, `estimatedFunding`, `expectedNumberOfAwards`, `costSharing`
- `applicantTypes` (who can apply), `fundingCategories`, `fundingInstruments`, `cfdas`
- `description` (plain text), `agencyContactEmail`, `agencyContactName`
- `url` (grants.gov detail page), `matchedKeyword`, `scrapedAt`

### Input

- `keywords` (one search per keyword, merged and deduplicated)
- `oppStatuses` (`posted` = open now, `forecasted` = announced but not yet open)
- `agencyCodes` (e.g. NSF, HHS, USDA, ED)
- `fundingCategories` (e.g. ED Education, ENV Environment, HL Health)
- `eligibilityCodes` (e.g. 12 = 501(c)(3) nonprofits, 20 = private universities, 22 = for-profits)
- `includeDetails` (award amounts, eligibility, description, contact email; default on)
- `maxOpportunities` (default 25, up to 1000)
- `dedupe` (skip previously returned grants; built for scheduled alerts)

### Example input

```json
{
  "keywords": ["rural health", "telehealth"],
  "oppStatuses": ["posted", "forecasted"],
  "eligibilityCodes": ["12"],
  "maxOpportunities": 50,
  "dedupe": true
}
```

### Example output

```json
{
  "opportunityId": 103313,
  "opportunityNumber": "NOAA-OAR-CPO-2012",
  "title": "Climate Program Office",
  "agencyName": "Department of Commerce",
  "status": "posted",
  "closeDate": "09/01/2026",
  "estimatedFunding": 15500000,
  "applicantTypes": ["State governments", "Nonprofits with 501(c)(3) status"],
  "fundingCategories": ["Environment", "Science and Technology"],
  "agencyContactEmail": "grants.officer@noaa.gov",
  "url": "https://www.grants.gov/search-results-detail/103313"
}
```

### Uses

- Weekly new-grant alerts scoped to your keywords and eligibility, with dedupe so you only see what's new
- Deadline pipelines: pull everything closing in the next 60 days for your categories
- Grant consultancies: one scheduled run per client profile, rows straight into the client tracker
- Forecast intel: `forecasted` status surfaces grants before they open, when positioning matters most
- Outreach: agency contact emails for program-officer questions

### Pricing

Pay per opportunity row. Searches that match nothing cost nothing. The first 2 rows of every run are free so you can validate output before you scale up.

### Notes

- Data comes from grants.gov's official public API (Search2 + fetchOpportunity), covering all US federal grant-making agencies.
- Category, eligibility, and agency codes are the standard grants.gov codes; any value accepted by grants.gov search works here.

# Actor input Schema

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

Keywords to search for (one search per keyword, results merged and deduplicated). Example: climate, youth education, rural health.

## `oppStatuses` (type: `array`):

posted = open now; forecasted = announced but not yet open (early intel).

## `agencyCodes` (type: `array`):

Restrict to agencies, e.g. NSF, HHS, USDA, DOC, ED. Empty = all agencies.

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

grants.gov funding activity category codes, e.g. ED (Education), ENV (Environment), HL (Health), ST (Science).

## `eligibilityCodes` (type: `array`):

grants.gov applicant eligibility codes, e.g. 12 (nonprofits w/ 501c3), 00 (state governments), 20 (private institutions of higher education), 22 (for-profits), 25 (others).

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

Adds award ceiling/floor, estimated funding, applicant types, description, and agency contact email to each row (one extra request per opportunity).

## `maxOpportunities` (type: `integer`):

Cap on grant rows returned. Controls total cost.

## `dedupe` (type: `boolean`):

Remember returned opportunity IDs across runs and skip them. Turn on for scheduled new-grant alerts.

## Actor input object example

```json
{
  "keywords": [
    "climate"
  ],
  "oppStatuses": [
    "posted"
  ],
  "agencyCodes": [],
  "fundingCategories": [],
  "eligibilityCodes": [],
  "includeDetails": true,
  "maxOpportunities": 25,
  "dedupe": false
}
```

# 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": [
        "climate"
    ],
    "oppStatuses": [
        "posted"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapemint/grant-opportunity-finder").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": ["climate"],
    "oppStatuses": ["posted"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapemint/grant-opportunity-finder").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": [
    "climate"
  ],
  "oppStatuses": [
    "posted"
  ]
}' |
apify call scrapemint/grant-opportunity-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapemint/grant-opportunity-finder",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/o4CbdK37IqrN0SCz9/builds/wPTqa10Bvrcp1Bycl/openapi.json
