List Agencies
POST
/api/v2/bulk_download/list_agencies/This route returns one of three result set flavors. For "account_agencies" requests it returns a list of all toptier agencies with at least one DABS submission. For "award_agencies" requests it returns a list of all user selectable flagged toptier agencies with at least one subtier agency. For specific agency requests it returns a list of all user selectable flagged subtier agencies.
Request
curl -X POST 'https://api.usaspending.gov/api/v2/bulk_download/list_agencies/' \
-H 'Content-Type: application/json' \
-d '{
"type": "award_agencies",
"agency": 0
}'Request body
typeenum (string)Requiredaccount_agenciesaward_agencies
agencynumber
Try it
Runs against the live API. Responses are real data.
POST
/api/v2/bulk_download/list_agencies/Response · 200
agenciesobjectRequired2 fieldscfo_agenciesarray of AgencyRequired3 fieldstoptier_codestringRequirednamestringRequiredtoptier_agency_idnumberRequired
other_agenciesarray of AgencyRequired3 fieldstoptier_codestringRequirednamestringRequiredtoptier_agency_idnumberRequired
sub_agenciesarray of SubAgencyRequired1 fieldsubtier_agency_namestringRequired
{
"agencies": {
"cfo_agencies": [
{
"toptier_code": "",
"name": "",
"toptier_agency_id": 0
}
],
"other_agencies": [
{
"toptier_code": "",
"name": "",
"toptier_agency_id": 0
}
]
},
"sub_agencies": [
{
"subtier_agency_name": ""
}
]
}Recent changes
Generated from contracts/v2/bulk_download/list_agencies.md in the USAspending API repo.