Obtain the count of budget functions for a specific agency in a single fiscal year based on whether or not that budget function has ever been submitted in File B.

Documentation for this endpoint can be found here.

GET /api/v2/agency/012/budget_function/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Cache-Trace: no-cache
Content-Type: application/json
Vary: Accept

{
    "toptier_code": "012",
    "fiscal_year": 2023,
    "results": [
        {
            "name": "Income Security",
            "children": [
                {
                    "name": "Food and nutrition assistance",
                    "obligated_amount": 159518338689.53,
                    "gross_outlay_amount": 150059778067.43
                },
                {
                    "name": "Housing assistance",
                    "obligated_amount": 995820451.24,
                    "gross_outlay_amount": 1273069591.48
                },
                {
                    "name": "Federal employee retirement and disability",
                    "obligated_amount": 0.0,
                    "gross_outlay_amount": 1361978.19
                }
            ],
            "obligated_amount": 160514159140.77,
            "gross_outlay_amount": 151334209637.1
        },
        {
            "name": "Agriculture",
            "children": [
                {
                    "name": "Farm income stabilization",
                    "obligated_amount": 31739436536.42,
                    "gross_outlay_amount": 34292568916.52
                },
                {
                    "name": "Agricultural research and services",
                    "obligated_amount": 14834482247.54,
                    "gross_outlay_amount": 9489303742.02
                }
            ],
            "obligated_amount": 46573918783.96,
            "gross_outlay_amount": 43781872658.54
        },
        {
            "name": "Natural Resources and Environment",
            "children": [
                {
                    "name": "Conservation and land management",
                    "obligated_amount": 14262577316.86,
                    "gross_outlay_amount": 10411213139.45
                },
                {
                    "name": "Water resources",
                    "obligated_amount": 668954985.98,
                    "gross_outlay_amount": 316140587.26
                },
                {
                    "name": "Recreational resources",
                    "obligated_amount": 89010758.72,
                    "gross_outlay_amount": 85177512.44
                },
                {
                    "name": "Other natural resources",
                    "obligated_amount": 837244.48,
                    "gross_outlay_amount": 3769434.54
                }
            ],
            "obligated_amount": 15021380306.04,
            "gross_outlay_amount": 10816300673.69
        },
        {
            "name": "Community and Regional Development",
            "children": [
                {
                    "name": "Area and regional development",
                    "obligated_amount": 3397121114.38,
                    "gross_outlay_amount": 2223684451.63
                },
                {
                    "name": "Community development",
                    "obligated_amount": 105409505.09,
                    "gross_outlay_amount": 36942062.42
                },
                {
                    "name": "Disaster relief and insurance",
                    "obligated_amount": 91808291.45,
                    "gross_outlay_amount": 98784597.75
                }
            ],
            "obligated_amount": 3594338910.92,
            "gross_outlay_amount": 2359411111.8
        },
        {
            "name": "International Affairs",
            "children": [
                {
                    "name": "International development and humanitarian assistance",
                    "obligated_amount": 2272865127.16,
                    "gross_outlay_amount": 2918094547.18
                }
            ],
            "obligated_amount": 2272865127.16,
            "gross_outlay_amount": 2918094547.18
        },
        {
            "name": "Energy",
            "children": [
                {
                    "name": "Energy supply",
                    "obligated_amount": 1526851383.12,
                    "gross_outlay_amount": 1528296200.0
                }
            ],
            "obligated_amount": 1526851383.12,
            "gross_outlay_amount": 1528296200.0
        },
        {
            "name": "Health",
            "children": [
                {
                    "name": "Consumer and occupational health and safety",
                    "obligated_amount": 1204676136.51,
                    "gross_outlay_amount": 1184931012.14
                }
            ],
            "obligated_amount": 1204676136.51,
            "gross_outlay_amount": 1184931012.14
        },
        {
            "name": "Commerce and Housing Credit",
            "children": [
                {
                    "name": "Mortgage credit",
                    "obligated_amount": 481533682.44,
                    "gross_outlay_amount": 481162675.72
                }
            ],
            "obligated_amount": 481533682.44,
            "gross_outlay_amount": 481162675.72
        },
        {
            "name": "General Government",
            "children": [
                {
                    "name": "General purpose fiscal assistance",
                    "obligated_amount": 332047865.27,
                    "gross_outlay_amount": 328287333.78
                }
            ],
            "obligated_amount": 332047865.27,
            "gross_outlay_amount": 328287333.78
        }
    ],
    "messages": [],
    "page_metadata": {
        "page": 1,
        "total": 9,
        "limit": 10,
        "next": null,
        "previous": null,
        "hasNext": false,
        "hasPrevious": false
    }
}