List Federal Accounts
/api/v2/agency/{toptier_code}/federal_account/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/federal_account/'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.
filterstringThis will filter the Federal Account by their name to those matching the text.
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_budgetary_resourcesobligated_amountgross_outlay_amount
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/federal_account/Response · 200
toptier_codestringRequiredfiscal_yearnumberRequiredpage_metadataobject · PageMetadataRequired7 fieldsInformation used for pagination of results.
pagenumberRequiredtotalnumberRequiredlimitnumberRequirednextnumberRequiredNullablepreviousnumberRequiredNullablehasNextbooleanRequiredhasPreviousbooleanRequired
totalsobject · TotalsRequired3 fieldstotal_budgetary_resourcesnumberRequiredobligated_amountnumberRequiredgross_outlay_amountnumberRequired
resultsarray of FederalAccountRequired6 fieldsnamestringRequiredcodestringRequiredtotal_budgetary_resourcesnumberRequiredobligated_amountnumberRequiredgross_outlay_amountnumberRequiredchildrenarray of TreasuryAccountRequired5 fieldsnamestringRequiredcodestringRequiredtotal_budgetary_resourcesnumberRequiredobligated_amountnumberRequiredgross_outlay_amountnumberRequired
messagesarray of stringRequiredAn array of warnings or instructional directives to aid consumers of this endpoint with development and debugging.
{
"toptier_code": "086",
"fiscal_year": 2018,
"page_metadata": {
"page": 1,
"total": 1,
"limit": 2,
"next": 2,
"previous": null,
"hasNext": true,
"hasPrevious": false,
},
"totals": {
"total_budgetary_resources": 66846596521.0,
"obligated_amount": 56046596521.0,
"gross_outlay_amount": 49589399932.2,
},
"results": [
"code": "086-0302",
"name": "Tenant-Based Rental Assistance, Public and Indian Housing, Housing and Urban Development",
"children": [
{
"name": "Tenant-Based Rental Assistance, Public and Indian Housing, Housing and Urban Development",
"code": "086-X-0302-000",
"total_budgetary_resources": 65926391527.0,
"obligated_amount": 55926391527.0,
"gross_outlay_amount": 49506649058.15
},
{
"name": "Tenant-Based Rental Assistance, Public and Indian Housing, Housing and Urban Development",
"code": "086-2019/2020-0302-000",
"total_budgetary_resources": 920204994.0,
"obligated_amount": 120204994.0,
"gross_outlay_amount": 82750874.0
}
],
"total_budgetary_resources": 66846596521.0,
"obligated_amount": 56046596521.0,
"gross_outlay_amount": 49589399932.2
],
"messages": []
}Recent changes
Generated from contracts/v2/agency/toptier_code/federal_account.md in the USAspending API repo.