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/?format=api
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": 62230010435.7,
            "total_outlays": 50703618788.54,
            "total_budgetary_resources": 252046492426.04
        },
        {
            "name": "Risk Management Agency",
            "id": "risk-management-agency",
            "total_obligations": 9965462822.22,
            "total_outlays": 12376134938.76,
            "total_budgetary_resources": 21910067976.49
        },
        {
            "name": "Farm Service Agency",
            "id": "farm-service-agency",
            "total_obligations": 7468270283.74,
            "total_outlays": 9700228251.29,
            "total_budgetary_resources": 33647900597.23
        },
        {
            "name": "Forest Service",
            "id": "forest-service",
            "total_obligations": 2965933327.44,
            "total_outlays": 3526466297.54,
            "total_budgetary_resources": 17303456914.56
        },
        {
            "name": "Office of the Secretary",
            "id": "office-of-the-secretary",
            "total_obligations": 1985309538.89,
            "total_outlays": 3357573029.04,
            "total_budgetary_resources": 8981057865.11
        },
        {
            "name": "Natural Resources Conservation Service",
            "id": "natural-resources-conservation-service",
            "total_obligations": 1041664976.73,
            "total_outlays": 2012740476.63,
            "total_budgetary_resources": 16992399531.38
        },
        {
            "name": "Agricultural Marketing Service",
            "id": "agricultural-marketing-service",
            "total_obligations": 868699203.72,
            "total_outlays": 1206572489.0,
            "total_budgetary_resources": 4613025301.93
        },
        {
            "name": "Foreign Agricultural Service",
            "id": "foreign-agricultural-service",
            "total_obligations": 841146922.15,
            "total_outlays": 1399699659.54,
            "total_budgetary_resources": 2004773789.92
        },
        {
            "name": "Animal and Plant Health Inspection Service",
            "id": "animal-and-plant-health-inspection-service",
            "total_obligations": 743428164.36,
            "total_outlays": 851123242.48,
            "total_budgetary_resources": 3003737671.59
        },
        {
            "name": "Rural Housing Service",
            "id": "rural-housing-service",
            "total_obligations": 727974304.99,
            "total_outlays": 822780880.1,
            "total_budgetary_resources": 2035240668.83
        }
    ],
    "messages": [],
    "page_metadata": {
        "page": 1,
        "total": 22,
        "limit": 10,
        "next": 2,
        "previous": null,
        "hasNext": true,
        "hasPrevious": false
    }
}