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": 43518268033.99,
            "total_outlays": 43899829486.57,
            "total_budgetary_resources": 113682982926.11
        },
        {
            "name": "Farm Service Agency",
            "id": "farm-service-agency",
            "total_obligations": 5451223613.15,
            "total_outlays": 9391782572.38,
            "total_budgetary_resources": 38304224811.9
        },
        {
            "name": "Risk Management Agency",
            "id": "risk-management-agency",
            "total_obligations": 4672223448.12,
            "total_outlays": 7232261682.02,
            "total_budgetary_resources": 17041256020.4
        },
        {
            "name": "Forest Service",
            "id": "forest-service",
            "total_obligations": 1561669534.59,
            "total_outlays": 2338443577.68,
            "total_budgetary_resources": 6536482955.86
        },
        {
            "name": "Office of the Secretary",
            "id": "office-of-the-secretary",
            "total_obligations": 1008002557.83,
            "total_outlays": 870520493.39,
            "total_budgetary_resources": 10006516194.13
        },
        {
            "name": "Agricultural Marketing Service",
            "id": "agricultural-marketing-service",
            "total_obligations": 542545053.49,
            "total_outlays": 545037191.13,
            "total_budgetary_resources": 3068986718.43
        },
        {
            "name": "Natural Resources Conservation Service",
            "id": "natural-resources-conservation-service",
            "total_obligations": 467577819.03,
            "total_outlays": 1406063560.25,
            "total_budgetary_resources": 4571839219.62
        },
        {
            "name": "National Institute of Food and Agriculture",
            "id": "national-institute-of-food-and-agriculture",
            "total_obligations": 398563423.38,
            "total_outlays": 358293058.82,
            "total_budgetary_resources": 500444233.25
        },
        {
            "name": "Animal and Plant Health Inspection Service",
            "id": "animal-and-plant-health-inspection-service",
            "total_obligations": 324108796.99,
            "total_outlays": 421588278.43,
            "total_budgetary_resources": 1266292255.99
        },
        {
            "name": "Executive Operations",
            "id": "executive-operations",
            "total_obligations": 311244782.04,
            "total_outlays": 422022483.41,
            "total_budgetary_resources": 662610299.51
        }
    ],
    "messages": [],
    "page_metadata": {
        "page": 1,
        "total": 20,
        "limit": 10,
        "next": 2,
        "previous": null,
        "hasNext": true,
        "hasPrevious": false
    }
}