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": 2023,
    "results": [
        {
            "name": "Food and Nutrition Service",
            "id": "food-and-nutrition-service",
            "total_obligations": 77285570519.44,
            "total_outlays": 67835004035.92,
            "total_budgetary_resources": 193701101255.24
        },
        {
            "name": "Farm Service Agency",
            "id": "farm-service-agency",
            "total_obligations": 24412198759.06,
            "total_outlays": 9447719279.32,
            "total_budgetary_resources": 41148360094.7
        },
        {
            "name": "Risk Management Agency",
            "id": "risk-management-agency",
            "total_obligations": 10327664432.14,
            "total_outlays": 14095437457.53,
            "total_budgetary_resources": 21853858429.48
        },
        {
            "name": "Office of the Secretary",
            "id": "office-of-the-secretary",
            "total_obligations": 2763337098.11,
            "total_outlays": 1168743399.69,
            "total_budgetary_resources": 16304642157.67
        },
        {
            "name": "Forest Service",
            "id": "forest-service",
            "total_obligations": 2448826835.6,
            "total_outlays": 3020117590.03,
            "total_budgetary_resources": 19652545571.67
        },
        {
            "name": "Foreign Agricultural Service",
            "id": "foreign-agricultural-service",
            "total_obligations": 2439357441.23,
            "total_outlays": 1394470563.7,
            "total_budgetary_resources": 2363176575.12
        },
        {
            "name": "Agricultural Marketing Service",
            "id": "agricultural-marketing-service",
            "total_obligations": 906661760.38,
            "total_outlays": 780595671.68,
            "total_budgetary_resources": 5093235475.54
        },
        {
            "name": "Natural Resources Conservation Service",
            "id": "natural-resources-conservation-service",
            "total_obligations": 905306095.53,
            "total_outlays": 1825827029.72,
            "total_budgetary_resources": 17886672488.16
        },
        {
            "name": "Animal and Plant Health Inspection Service",
            "id": "animal-and-plant-health-inspection-service",
            "total_obligations": 645213044.68,
            "total_outlays": 739622917.85,
            "total_budgetary_resources": 2974940903.12
        },
        {
            "name": "Food Safety and Inspection Service",
            "id": "food-safety-and-inspection-service",
            "total_obligations": 562295725.25,
            "total_outlays": 449373121.07,
            "total_budgetary_resources": 1567309892.25
        }
    ],
    "messages": [],
    "page_metadata": {
        "page": 1,
        "total": 22,
        "limit": 10,
        "next": 2,
        "previous": null,
        "hasNext": true,
        "hasPrevious": false
    }
}