Budget Function Count
GET
/api/v2/agency/{toptier_code}/budget_function/count/Returns the count of unique Budget Functions in the Agency's appropriations for a single fiscal year
Request
curl 'https://api.usaspending.gov/api/v2/agency/012/budget_function/count/'Path parameters
toptier_codestringRequired
Try it
Runs against the live API. Responses are real data.
GET
/api/v2/agency/012/budget_function/count/Response · 200
toptier_codestringRequiredfiscal_yearnumberRequiredbudget_function_countnumberRequiredbudget_sub_function_countnumberRequiredmessagesarray of stringRequiredAn array of warnings or instructional directives to aid consumers of this endpoint with development and debugging.
{
"toptier_code": "012",
"fiscal_year": 2018,
"budget_function_count": 4,
"budget_sub_function_count": 17,
"messages": [
"Account data powering this endpoint were first collected in FY2017 Q2..."
]
}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/budget_function/count.md in the USAspending API repo.