Obtain the count of subcomponents (bureaus) for a specific agency in a single fiscal year based on GTAS

Documentation for this endpoint can be found here.

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

{
    "toptier_code": "012",
    "fiscal_year": 2022,
    "results": [
        {
            "name": "Food and Nutrition Service",
            "id": "food-and-nutrition-service",
            "total_obligations": 134421270359.76,
            "total_outlays": 134491629629.12,
            "total_budgetary_resources": 287956859816.97
        },
        {
            "name": "Rural Utilities Service",
            "id": "rural-utilities-service",
            "total_obligations": 30126967719.78,
            "total_outlays": 4078014757.85,
            "total_budgetary_resources": 6180815860.43
        },
        {
            "name": "Rural Housing Service",
            "id": "rural-housing-service",
            "total_obligations": 17345746090.28,
            "total_outlays": 6079085760.24,
            "total_budgetary_resources": 3489596380.73
        },
        {
            "name": "Risk Management Agency",
            "id": "risk-management-agency",
            "total_obligations": 11306901542.78,
            "total_outlays": 11078119558.56,
            "total_budgetary_resources": 17640414490.84
        },
        {
            "name": "Farm Service Agency",
            "id": "farm-service-agency",
            "total_obligations": 8256980118.02,
            "total_outlays": 8228999081.66,
            "total_budgetary_resources": 45317310342.12
        },
        {
            "name": "Forest Service",
            "id": "forest-service",
            "total_obligations": 5131137894.02,
            "total_outlays": 5202287078.58,
            "total_budgetary_resources": 17231790296.58
        },
        {
            "name": "Rural Business-Cooperative Service",
            "id": "rural-business-cooperative-service",
            "total_obligations": 4517179253.71,
            "total_outlays": 656062616.34,
            "total_budgetary_resources": 992755796.92
        },
        {
            "name": "Office of the Secretary",
            "id": "office-of-the-secretary",
            "total_obligations": 3007614630.63,
            "total_outlays": 2576598233.5,
            "total_budgetary_resources": 24137502503.66
        },
        {
            "name": "Natural Resources Conservation Service",
            "id": "natural-resources-conservation-service",
            "total_obligations": 2450509485.94,
            "total_outlays": 3056957149.57,
            "total_budgetary_resources": 13677170812.3
        },
        {
            "name": "Agricultural Marketing Service",
            "id": "agricultural-marketing-service",
            "total_obligations": 1728683750.63,
            "total_outlays": 1357310321.12,
            "total_budgetary_resources": 4229964036.58
        }
    ],
    "messages": [],
    "page_metadata": {
        "page": 1,
        "total": 22,
        "limit": 10,
        "next": 2,
        "previous": null,
        "hasNext": true,
        "hasPrevious": false
    }
}