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": 2024,
    "results": [
        {
            "name": "Food and Nutrition Service",
            "id": "food-and-nutrition-service",
            "total_obligations": 70230791827.92,
            "total_outlays": 62584202878.76,
            "total_budgetary_resources": 252234247826.96
        },
        {
            "name": "Risk Management Agency",
            "id": "risk-management-agency",
            "total_obligations": 11763716282.84,
            "total_outlays": 14361866855.03,
            "total_budgetary_resources": 21895167798.76
        },
        {
            "name": "Farm Service Agency",
            "id": "farm-service-agency",
            "total_obligations": 8499855412.93,
            "total_outlays": 10619972424.19,
            "total_budgetary_resources": 34362345091.3
        },
        {
            "name": "Forest Service",
            "id": "forest-service",
            "total_obligations": 3593908775.82,
            "total_outlays": 4097881116.37,
            "total_budgetary_resources": 17360594383.35
        },
        {
            "name": "Office of the Secretary",
            "id": "office-of-the-secretary",
            "total_obligations": 2197340468.31,
            "total_outlays": 3927007267.75,
            "total_budgetary_resources": 9009925051.45
        },
        {
            "name": "Natural Resources Conservation Service",
            "id": "natural-resources-conservation-service",
            "total_obligations": 1520984483.68,
            "total_outlays": 2459524136.81,
            "total_budgetary_resources": 17027489962.47
        },
        {
            "name": "Foreign Agricultural Service",
            "id": "foreign-agricultural-service",
            "total_obligations": 1170550919.3,
            "total_outlays": 1564892327.91,
            "total_budgetary_resources": 2013672352.14
        },
        {
            "name": "Agricultural Marketing Service",
            "id": "agricultural-marketing-service",
            "total_obligations": 1156997201.65,
            "total_outlays": 1473058947.19,
            "total_budgetary_resources": 4628619762.74
        },
        {
            "name": "Animal and Plant Health Inspection Service",
            "id": "animal-and-plant-health-inspection-service",
            "total_obligations": 955851060.52,
            "total_outlays": 1069653909.86,
            "total_budgetary_resources": 3028307610.6
        },
        {
            "name": "Rural Housing Service",
            "id": "rural-housing-service",
            "total_obligations": 762094537.16,
            "total_outlays": 1000964595.19,
            "total_budgetary_resources": 2255739762.26
        }
    ],
    "messages": [],
    "page_metadata": {
        "page": 1,
        "total": 22,
        "limit": 10,
        "next": 2,
        "previous": null,
        "hasNext": true,
        "hasPrevious": false
    }
}