List Sub-Components
/api/v2/agency/{toptier_code}/sub_components/Returns a list of Sub-Components in the Agency's appropriations for a single fiscal year
Request
curl 'https://api.usaspending.gov/api/v2/agency/086/sub_components/'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)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_obligationstotal_budgetary_resources
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_components/Response · 200
toptier_codestringRequiredfiscal_yearnumberRequiredpage_metadataobject · PageMetadataRequired7 fieldsInformation used for pagination of results.
pagenumberRequiredtotalnumberRequiredlimitnumberRequirednextnumberRequiredNullablepreviousnumberRequiredNullablehasNextbooleanRequiredhasPreviousbooleanRequired
resultsarray of SubComponentRequired5 fieldsnamestringRequiredidstringRequiredtotal_budgetary_resourcesnumberRequiredtotal_obligationsnumberRequiredtotal_outlaysnumberRequired
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": "Bureau of the Census",
"id": "bureau_of_the_census",
"total_budgetary_resources": 500000,
"total_obligations": 300000.72
"total_outlays": 1000000.45
}
],
"messages": []
}Recent changes
No contract changes to this endpoint since October 2024. The changelog covers every endpoint.
Generated from contracts/v2/agency/toptier_code/sub_components.md in the USAspending API repo.