GET /awards/{id}.json
API Endpoint
The NSF Award API detail endpoint, which returns the full record of one award by its numeric id, or an empty list when the id matches nothing.
/awards/{id}.{format} returns the full record of one award. The server asks for the JSON format: https://www.research.gov/awardapi-service/v1/awards/{id}.json, where {id} is the award id (for example 2632685).12
The body uses the same envelope as the search endpoint: response.award is a list, here with at most one record. The record has the full field set, including abstractText, publications (jrnl, publicationResearch, publicationConference)3 and, when one was filed, the outcomes report HTML in projectOutComesReport. The detail endpoint and the outcomes endpoint return the same full record.4
Caveat: a missing award id is not a 404. The API returns HTTP 200 with award: [].4 The client
therefore reads only that empty list as “not found”; a 404 means the API has moved or broken, and is an
error.2
Request
| Part | Value |
|---|---|
| Method | GET |
| URL | https://www.research.gov/awardapi-service/v1/awards/{id}.json |
| Path parameter | id: the award id. The client URL-encodes it with encodeURIComponent.5 |
| Query | None. The server sends no query parameters. The API ignores printFields and always returns full records. The probe script also sends it to this endpoint (award_detail_printFields).46 |
| Headers sent by the client | Accept: application/json and User-Agent: nsf-awards-mcp/<version> |
Callers check the id before they call the client. The tool schema accepts a trimmed string of 1 to 10 digits (/^\d{1,10}$/) and otherwise fails with Award IDs are numeric (e.g. 2632685).3 The resource template accepts only /^\d+$/. Any other id becomes “not found” without a request.7
Response
| Case | Body | Client result (getAward) |
|---|---|---|
| Award exists | response.award holds one full record. The client treats a single record object as a one-item list. |
The record after normalizeAward. See Response format. |
| Id matches nothing | HTTP 200, {"response": {"award": [], "metadata": {"offset": 0, "rpp": 25, "totalCount": 0}}} (fixture award-missing.json)8 |
null |
| HTTP 404 | The live API answers a missing id with HTTP 200 instead, so a 404 means the API has moved or broken. | Throws NSF API award lookup failed (HTTP 404), without a retry5 |
serviceNotification of type ERROR or FATAL |
HTTP 200 with notices | Throws <code>: <message> |
| Other failure | Network error, timeout, 429 or 5xx (retried first), or any other status | Throws NSF API award lookup failed (<reason>), or NSF API award lookup was cancelled |
| Unparseable body | Not JSON or XML, or an empty or null body |
Throws Failed to parse NSF API response (or Unexpected NSF API response format) |
No response object |
An HTML page, {}, a JSON error object, or a response that is not an object |
Throws Unexpected NSF API response (no "response" object, content-type <type>) instead of returning null5 |
The retry rules are the same as for the search endpoint.2
How the server uses it
| Caller | What it does with the record |
|---|---|
| get_award_details | Throws No NSF award found with ID <id> on null. Always removes projectOutComesReport. Removes abstractText unless includeAbstract (default true). Removes jrnl, publicationResearch and publicationConference unless includePublications (default false). Returns { award: record }.9 |
| nsf://award/{id} | Fails with No NSF award with ID <id> on null. Removes the report and the publication fields, and returns the record as application/json.7 |
The record keeps hasOutcomesReport, so a caller can tell whether get_project_outcomes will find a report without fetching it.
Live verification
These checks run in the weekly live suite:10
getAward('2632685')returns the full record of award 2632685. The awardee isUniversity of New Mexico,estimatedTotalAmtis a number, and the abstract is longer than 200 characters.getAward('0000000')returnsnull.- The record of 1114898 has numeric amounts, a boolean
activeAwd,piMiddleInitialinstead ofpiMiddeInitial, Co-PIs parsed into objects with anamethat has no email in it and a booleanformer, and no""values.
The project uses three fixture awards: 2632685 (full field set), 1114898 (has an outcomes report) and 9307607 (no report).4
Examples
curl -s https://www.research.gov/awardapi-service/v1/awards/2632685.json
curl -s https://www.research.gov/awardapi-service/v1/awards/0000000.json # HTTP 200, "award": []
Both requests appear in the probe script as award_detail and award_detail_missing.6
A trimmed full record of award 1114898, as the API sends it (fixture award-1114898.json). People and long text fields are left out:8
{
"id": "1114898",
"agency": "NSF",
"awardeeName": "University of Arizona",
"awardeeCity": "TUCSON",
"awardeeStateCode": "AZ",
"awardeeZipCode": "85721",
"awardeeDistrictCode": "AZ07",
"cfdaNumber": "47.050",
"date": "08/16/2011",
"startDate": "09/01/2011",
"expDate": "02/29/2016",
"estimatedTotalAmt": "1498027",
"fundsObligatedAmt": "1498027",
"fundsObligated": ["FY 2011 = $1,498,027.00"],
"activeAwd": "false",
"histAwd": "false",
"publicAccessMandate": "0",
"primaryProgram": ["01001112DB NSF RESEARCH & RELATED ACTIVIT"],
"fundProgramName": "DYN COUPLED NATURAL-HUMAN",
"dirAbbr": "GEO",
"transType": "Standard Grant",
"piMiddeInitial": "W",
"poEmail": "",
"projectOutComesReport": "<div class=\"porColContainerWBG\">..."
}