Agency Awards
GET
/api/v2/agency/{toptier_code}/awards/Returns the number of transactions and award obligations for a given agency and fiscal year.
Request
curl 'https://api.usaspending.gov/api/v2/agency/020/awards/'Path parameters
toptier_codestringRequiredThe toptier code of an agency (could be a CGAC or FREC) so only numeric character strings of length 3-4 are accepted.
Query parameters
fiscal_yearstringThe desired appropriations fiscal year. Defaults to the current FY.
agency_typeenum (string)This will determine if the data being returned is derived from the awarding agency or the funding agency. Defaults to awarding
awardingfunding
award_type_codesstringFilters the results by the provided award types. Defaults to all award types
Try it
Runs against the live API. Responses are real data.
GET
/api/v2/agency/020/awards/Response · 200
toptier_codestringRequiredfiscal_yearnumberRequiredlatest_action_datestringRequiredNullabletransaction_countnumberRequiredobligationsnumberRequiredmessagesarray of stringRequiredAn array of warnings or instructional directives to aid consumers of this endpoint with development and debugging.
{
"toptier_code": "020",
"fiscal_year": 2021,
"latest_action_date": "2021-09-14T00:00:00",
"transaction_count": 2,
"obligations": 90000,
"messages": []
}Recent changes
Generated from contracts/v2/agency/toptier_code/awards.md in the USAspending API repo.