Last checked

How to search Grants.gov for open federal grants, with deadlines

Unofficial tool. Not affiliated with, endorsed by, or sponsored by Grants.gov, the U.S. Department of Health and Human Services, or any federal agency.

Always check the full notice on Grants.gov before you apply. Not legal or grant advice.

Grants.gov lists every open and forecasted US federal grant, and it has a public API with no key. One call searches by keyword, status, agency, eligibility and category. A second call per opportunity adds the award amounts, eligibility and description. Nonprofits, researchers, small businesses and grant writers use it to keep a filtered list of deadlines instead of checking the site by hand.

In short

  1. POST https://api.grants.gov/v1/api/search2 with keyword, oppStatuses (for example forecasted|posted) and rows.
  2. Narrow it with agencies, eligibilities or fundingCategories.
  3. POST https://api.grants.gov/v1/api/fetchOpportunity with an opportunityId for the award amounts and full description.
  4. Open the full notice on Grants.gov before you apply.

Call the API yourself

import json
from urllib.request import Request, urlopen

def post(path, body):
    request = Request(
        f"https://api.grants.gov/v1/api/{path}",
        data=json.dumps(body).encode(),
        headers={"Content-Type": "application/json", "Accept": "application/json", "User-Agent": "LepidataGuide/1.0 (+https://lepidata.com)"},
    )
    with urlopen(request, timeout=30) as response:
        return json.load(response)

search = post("search2", {"keyword": "broadband", "oppStatuses": "forecasted|posted", "rows": 10})
for hit in search["data"]["oppHits"]:
    print(hit["number"], hit["closeDate"], hit["title"])

first = search["data"]["oppHits"][0]
details = post("fetchOpportunity", {"opportunityId": int(first["id"])})

Useful codes: eligibility 12 is 501(c)(3) nonprofits, 23 small businesses and 06 public and state colleges. Funding categories include HL (health), ED (education) and ST (science and technology). Join several codes with |.

Agency filtering takes sub-agency codes such as HHS-NIH11. To get every HHS sub-agency, filter the results yourself by the start of agencyCode.

When to stop writing this yourself

Paging through results, calling the details endpoint once per opportunity and turning forecast dates into real dates is the slow part. We built and publish a tool for this on Apify: Federal Grants Search: Grants.gov Grant Opportunities. It returns one row per grant with deadlines and, when details are on, award amounts and eligibility. It is billed per opportunity returned. Status rows such as no-results and invalid-input are free.

Every row has opportunityId, opportunityNumber, title, agencyCode, agencyName, topAgencyName, status, docType, postedDate, closeDate, alnNumbers and url. With details on it adds archiveDate, estimatedPostDate, estimatedCloseDate, estimatedAwardDate, fiscalYear, awardCeiling, awardFloor, estimatedTotalFunding, expectedNumberOfAwards, costSharing, category, fundingInstruments, fundingCategories, eligibleApplicants, eligibilityDetails, programTitles, description and lastUpdated.

Grantor contact names, emails and phone numbers are not returned. Use the listing link to reach the agency. No agency seals or logos are used.

What our tests returned on 26 October 2026, with details on:

InputRowsTime
{"keyword":"broadband","maxResults":5}52.65–3.05 s
{"keyword":"health","agencies":["HHS"],"eligibilities":["12"],"sort":"closing-soon","closingFrom":"2026-10-27","maxResults":5}53.24–3.34 s
{"keyword":"dementia","statuses":["forecasted"],"maxResults":3}31.77–1.89 s

Want grants that were already awarded? Use our USAspending Award Search.

Call it from code or an agent

The Actor is lepidata/grants-gov-opportunities. Keep your Apify token in an environment variable or a credential store, and send it in the Authorization header, never in a URL.

curl -s -X POST "https://api.apify.com/v2/acts/lepidata~grants-gov-opportunities/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"keyword": "broadband", "statuses": ["posted"], "maxResults": 10}'
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run_input = {"keyword": "rural health", "eligibilities": ["12"], "sort": "closing-soon", "closingFrom": "2026-11-01", "maxResults": 50}
run = client.actor("lepidata/grants-gov-opportunities").call(run_input=run_input)
items = client.dataset(run["defaultDatasetId"]).list_items().items
grants = [row for row in items if row.get("type") == "opportunity"]

Input fields: keyword, statuses (forecasted, posted, closed, archived; default forecasted and posted), agencies (top-level codes such as HHS match every sub-agency, and codes such as HHS-NIH11 match exactly), eligibilities, fundingCategories, postedFrom / postedTo and closingFrom / closingTo (YYYY-MM-DD), sort (newest, closing-soon or relevance), includeDetails (default true) and maxResults (up to 5,000, default 50). With closingFrom set, forecasts that have no close date yet are skipped. The Actor sends about 2 requests a second. Apify Free-plan accounts get up to 100 results per run.

Written with AI assistance and checked by the Lepidata team.