# grantsgov.opportunity

One US federal grant opportunity from Grants.gov in full: description, award ceiling and floor, total funding, dates, who may apply, and what it funds.

US grant opportunity, one of the Grants.gov scrapers.

| | |
| --- | --- |
| Id | `grantsgov.opportunity` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/grantsgov.opportunity/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `opportunity` | string | yes | Grants.gov's id of the opportunity, as a search gives it, or its address on grants.gov. Limit: at least 4 characters, at most 120 characters. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `opportunity_id` | string | Grants.gov's id. |
| `number` | string or null | The funding opportunity number. |
| `url` | string | The opportunity's page on grants.gov. |
| `title` | string or null | The opportunity's title. |
| `department` | string or null | The department. |
| `agency` | string or null | The agency within it. |
| `agency_code` | string or null | The agency's code. |
| `status` | string or null | `forecasted`, `posted`, `closed` or `archived`. |
| `category` | string or null | The opportunity's category, e.g. `Discretionary`. |
| `description` | string or null | The description, as text, without contact details. |
| `posted_date` | string or null | The day it was posted, `YYYY-MM-DD`. |
| `close_date` | string or null | The day applications close, `YYYY-MM-DD`. |
| `updated_date` | string or null | The day it last changed, `YYYY-MM-DD`. |
| `award_ceiling` | number or null | The largest award, in US dollars. |
| `award_floor` | number or null | The smallest award, in US dollars. |
| `estimated_funding` | number or null | The total the programme expects to award, in US dollars. |
| `expected_awards` | integer or null | How many awards it expects to make. |
| `cost_sharing` | boolean or null | Whether applicants must share the cost. |
| `funding_instruments` | array of string | How it pays, e.g. `Grant`, `Cooperative Agreement`. |
| `funding_categories` | array of string | The activities it funds. |
| `eligible_applicants` | array of string | Who may apply. |
| `eligibility_notes` | string or null | More on who may apply, as text, without contact details. |
| `assistance_listings` | array of string | Its assistance listing numbers (CFDA). |
| `fetched_at` | string (date-time) | When Grants.gov was asked, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/grantsgov.opportunity/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"opportunity":"364160"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "grantsgov.opportunity",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "opportunity": "364160"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "opportunity_id": "364160",
      "number": "NOAA-OAR-CPO-2027-33392",
      "url": "https://www.grants.gov/search-results-detail/364160",
      "title": "Climate Program Office FY 2027 - Super Intelligence/Machine Learning Innovation to Advance NOAA's Earth System Science and Support Hazard Resilience",
      "department": "Department of Commerce",
      "agency": "DOC NOAA - ERA Production",
      "agency_code": "DOC-DOCNOAAERA",
      "status": "posted",
      "category": "Discretionary",
      "description": "Through this Notice of Federal Funding Opportunity, the NOAA Climate Program Office ( https://cpo.noaa.gov/funding-opportunities/ ) is soliciting proposals for a FY 2027 grants competition focused on Super Intelligence/Machine Learning … [truncated]",
      "posted_date": "2026-10-27",
      "close_date": "2027-02-09",
      "updated_date": "2026-11-05",
      "award_ceiling": 750000,
      "award_floor": 1,
      "estimated_funding": null,
      "expected_awards": null,
      "cost_sharing": null,
      "funding_instruments": [
        "Grant"
      ],
      "funding_categories": [
        "Natural Resources",
        "Science and Technology and other Research and Development"
      ],
      "eligible_applicants": [
        "Others (see text field entitled \"Additional Information on Eligibility\" for clarification)"
      ],
      "eligibility_notes": "Eligible applicants are: Institutions of higher education; Other nonprofits; Commercial organizations; Local and federally recognized Tribal governments; Federal agencies that possess the statutory authority to receive transfers of funds. … [truncated]",
      "assistance_listings": [
        "11.431"
      ],
      "fetched_at": "2026-11-23T23:15:34.525920Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `description`: 2,294 characters, the first 235 shown.
- Shortened: `eligibility_notes`: 977 characters, the first 238 shown.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Grants.gov scrapers](https://docs.enrichednow.com/results-and-statuses.md#grants-gov) are in their own section there.
