Agency Overview
/api/v2/agency/{toptier_code}/Returns some basic information regarding the agency for the fiscal year specified.
Request
curl 'https://api.usaspending.gov/api/v2/agency/012/'Path parameters
toptier_codestringRequired
Try it
Runs against the live API. Responses are real data.
/api/v2/agency/012/Response · 200
fiscal_yearnumberRequiredtoptier_codestringRequirednamestringRequiredabbreviationstringRequiredNullableagency_idnumberRequiredicon_filenamestringRequiredNullablemissionstringRequiredNullablewebsitestringRequiredNullablecongressional_justification_urlstringRequiredNullableabout_agency_datastringRequiredNullablesubtier_agency_countnumberRequireddef_codesarray of DEFCRequired5 fieldscodestringRequiredDisaster Emergency Fund Code
public_lawstringRequiredName of the public law which created the DEF or a placeholder description
disasterstringRequiredNullableInternal field to group several DEFC together for correlated relief efforts
titlestringRequiredNullableOfficial title of the public law or a placeholder description of the DEFC
urlsarray of stringRequiredNullableHyperlink(s) to official documentation on the DEFC legislation
messagesarray of stringRequiredAn array of warnings or instructional directives to aid consumers of this endpoint with development and debugging.
{
"fiscal_year": 2019,
"toptier_code": "020",
"name": "Department of the Treasury",
"abbreviation": "TREAS",
"agency_id": 22,
"icon_filename": "DOT.jpg",
"mission": "Maintain a strong economy and create economic and job opportunities...",
"website": "https://www.treasury.gov/",
"congressional_justification_url": "https://www.treasury.gov/cj",
"about_agency_data": null,
"subtier_agency_count": 10,
"def_codes": [
{
"code": "N",
"public_law": "Emergency P.L. 116-136",
"title": "Coronavirus Aid, Relief, and Economic Security Act or the CARES Act",
"urls": [
"https://www.congress.gov/116/bills/hr748/BILLS-116hr748enr.pdf"
],
"disaster": "covid_19"
}
]
"messages": []
}Recent changes
No contract changes to this endpoint since October 2024. The changelog covers every endpoint.
Contract notes
The contract doesn't declare
toptier_codein its URL template, so it was added here from the path.
Generated from contracts/v2/agency/toptier_code.md in the USAspending API repo.