# Grants.gov Federal Grant Opportunity Search

> Grants.gov Federal Grant Opportunity Search is a paid API for AI agents from api.companyrecords-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Searches US federal grant opportunities from Grants.gov by keyword, returning opportunity listings with title, agency, dates, status, and CFDA numbers.

## Facts

- Endpoint: GET https://api.companyrecords-api.workers.dev/api/gov/grants-gov?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/grants-gov-federal-grant-opportunity-search-3bcdad0e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ent8bVtwIm2AU5cptSAO0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability grants-gov-federal-grant-opportunity-search-3bcdad0e
```

Example prompt: Search Grants.gov for federal grant opportunities related to 'affordable housing' and show me up to 8 listings including which agency is offering them, the opportunity number, open and close dates, and their CFDA numbers.

## When to prefer this

Choose this endpoint when you need to discover active or forecasted US federal grant opportunities by topic keyword, especially when you need structured data including CFDA numbers, agency names, and open/close dates. It surfaces opportunity listings only — not award decisions or recipient data — making it ideal for grant prospecting workflows. Prefer this over manual Grants.gov searches when integrating grant discovery into automated research or funding pipelines.

## Known failure modes

- Keyword too short (under 3 characters) or too long (over 60 characters) returns a validation error
- Grants.gov search2 API upstream outage causes failure or empty results
- No matching opportunities found returns totalHits of 0 and an empty opportunities array
- Limit parameter out of range (outside 1-10) may return default of 5 or an error
- Results reflect Grants.gov index state at crawl time and may lag real-time status changes

## How this service works

Pay-per-call company registry, government, legal and B2B data tools for AI agents, from official registers and public sources. Payment: x402, USDC on Base, Solana, Arc, Polygon, Arbitrum, Monad, World Chain, Optimism, Avalanche, Celo or Stellar, or RLUSD/XRP on the XRP Ledger. No signup, no API key; a failed call is not charged.

## Output

Returns a JSON object with the source URL, keyword used, timestamp, total number of matching opportunities, and an array of opportunity listings each containing: opportunity ID, title, funding agency name, opportunity number, status (posted/forecasted/closed), open date, close date (if set), and an array of associated CFDA numbers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "keyword"
     ],
     "properties": {
      "limit": {
       "type": "string",
       "description": "Opportunities to return, 1 to 10 (default 5)"
      },
      "keyword": {
       "type": "string",
       "description": "Keyword, 3 to 60 characters"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "https://api.grants.gov/v1/api/search2",
  "keyword": "robotics",
  "checkedAt": "2026-10-23T09:37:13.938Z",
  "totalHits": 24,
  "opportunities": [
   {
    "id": "324369",
    "title": "Foundational Research in Robotics",
    "agency": "U.S. National Science Foundation",
    "number": "PD-20-144Y",
    "status": "posted",
    "openDate": "02/12/2020",
    "closeDate": null,
    "cfdaNumbers": [
     "47.041",
     "47.070"
    ]
   },
   {
    "id": "363292",
    "title": "NIOSH Robotics and Intelligent Mining Technology and Workplace Safety Research (U60)",
    "agency": "Centers for Disease Control and Prevention - ERA",
    "number": "RFA-OH-27-044",
    "status": "forecasted",
    "openDate": "07/22/2026",
    "closeDate": null,
    "cfdaNumbers": [
     "93.262"
    ]
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/grants-gov-federal-grant-opportunity-search-3bcdad0e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.companyrecords-api.workers.dev](https://www.zero.xyz/host/api.companyrecords-api.workers.dev/llms.txt)
