Skip to main content
Piloterr
Back to library

USAspending Award API

Fetch one US federal award by its generated id or by a usaspending.gov award URL. Amounts are a number plus a display string.

Active1 credit = 1 requestGET/v2/usaspending/award

Endpoint Overview

Detailed documentation, pricing, and usage examples.

OverviewLink to Overview

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.

QuickstartLink to Quickstart

curl -sS -H "x-api-key: YOUR_API_KEY" "https://api.piloterr.com/v2/usaspending/award?query=CONT_AWD_GSFC0198106DNAS526555_8000_-NONE-_-NONE-"

ParametersLink to Parameters

Name Detail
query Required string. Generated award id or a usaspending.gov/award URL. Example: CONT_AWD_GSFC0198106DNAS526555_8000_-NONE-_-NONE-.

Response fieldsLink to Response fields

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.

PaginationLink to Pagination

One award. No pagination object.

Use casesLink to Use cases

  • 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.

Error codesLink to Error codes

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.

Related APIs

Expand your data capabilities with these complementary tools.

Ready to get started?

Your web scraping API is one click away. Start with +500 credits, no infrastructure to set up, no proxies to manage, and no credit card required.

  • +500 credits
  • No credit card required
  • All endpoints included