Fetch one US federal award. query is generated_internal_id from search, for example CONT_AWD_GSFC0198106DNAS526555_8000_-NONE-_-NONE-, or a https://www.usaspending.gov/award/... URL. The response is a flat object. award_amount and amount_display describe the same obligation.
curl -sS -H "x-api-key: YOUR_API_KEY" "https://api.piloterr.com/v2/usaspending/award?query=CONT_AWD_GSFC0198106DNAS526555_8000_-NONE-_-NONE-"
| Name |
Detail |
| query |
Required string. Generated award id or a usaspending.gov/award URL. Example: CONT_AWD_GSFC0198106DNAS526555_8000_-NONE-_-NONE-. |
| Name |
Detail |
| award_id |
String or null. PIID. |
| generated_internal_id |
String. Same id you requested. |
| category |
String or null. For example contract. |
| award_type |
String or null. Type description, for example DEFINITIVE CONTRACT. |
| type_code |
String or null. |
| description |
String or null. |
| award_amount |
Number or null. |
| amount_display |
String or null. Dollar text for award_amount. |
| recipient_name |
String or null. |
| recipient_uei |
String or null. |
| awarding_agency |
String or null. |
| awarding_sub_agency |
String or null. |
| funding_agency |
String or null. |
| start_date |
String or null. |
| end_date |
String or null. |
| date_signed |
String or null. |
| city |
String or null. |
| state |
String or null. State code on this endpoint. |
| country |
String or null. |
| naics_code |
String or null. |
| naics_description |
String or null. |
| psc_code |
String or null. |
| psc_description |
String or null. |
| subaward_count |
Integer or null. |
| url |
String. Award page. |
One award. No pagination object.
- An analyst opens
generated_internal_id from search and reads NAICS plus the place of performance.
- A watchdog compares
recipient_uei on a specific award URL.
- A contract database stores
award_amount and amount_display for one PIID.
| Name |
Detail |
| 400 |
Missing query, a non-usaspending host, or a URL that is not an award path. |
| 404 |
Unknown award id. |
| 401 |
Missing API key. |
| 500 |
The USAspending request failed. |