List Federal Accounts
/api/v2/agency/{toptier_code}/sub_agency/Returns a list of Federal Accounts and Treasury Accounts in the Agency's appropriations for a single fiscal year
Request
curl 'https://api.usaspending.gov/api/v2/agency/086/sub_agency/'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.
award_type_codesstringThis will filter the subagencies by the award types provided
agency_typeenum (string)Indicated if the data should be pulled from the awarding agency or the funding agency
awardingfunding
orderenum (string)Indicates what direction results should be sorted by. Valid options include asc for ascending order or desc for descending order.
descasc
sortenum (string)Optional parameter indicating what value results should be sorted by.
nametotal_obligationstransaction_countnew_award_count
pagestringThe page number that is currently returned.
limitstringHow many results are returned.
Try it
Runs against the live API. Responses are real data.
/api/v2/agency/086/sub_agency/Response · 200
toptier_codestringRequiredfiscal_yearnumberRequiredpage_metadataobject · PageMetadataRequired7 fieldsInformation used for pagination of results.
pagenumberRequiredtotalnumberRequiredlimitnumberRequirednextnumberRequiredNullablepreviousnumberRequiredNullablehasNextbooleanRequiredhasPreviousbooleanRequired
resultsarray of SubAgencyRequired6 fieldsnamestringRequiredabbreviationstringRequiredNullabletotal_obligationsnumberRequiredtransaction_countnumberRequirednew_award_countnumberRequiredchildrenarray of OfficeRequired5 fieldsnamestringRequiredcodestringRequiredtotal_obligationsnumberRequiredtransaction_countnumberRequirednew_award_countnumberRequired
messagesarray of stringRequiredAn array of warnings or instructional directives to aid consumers of this endpoint with development and debugging.
{
"toptier_code": "073",
"fiscal_year": 2018,
"page_metadata": {
"page": 1,
"total": 1,
"limit": 2,
"next": 2,
"previous": null,
"hasNext": true,
"hasPrevious": false,
},
"results": [
{
"name": "Small Business Administration",
"abbreviation": "SBA",
"total_obligations": 553748221.72,
"transaction_count": 14358,
"new_award_count": 13266,
"children": [
{
"name": "OFC OF CAPITAL ACCESS",
"code": "737010",
"total_obligations": 549195419.92,
"transaction_count": 13410,
"new_award_count": 12417
},
{
"name": "OFC OF DISASTER ASSISTANCE",
"code": "732990",
"total_obligations": 4577429.17,
"transaction_count": 943,
"new_award_count": 576
}
]
}
],
"messages": []
}Recent changes
- DEV-15240: Update API contracts with new Assistance Type codes
- Mentioned in the January 18, 2022 release notes
Generated from contracts/v2/agency/toptier_code/sub_agency.md in the USAspending API repo.