Obtain the count of sub-agencies and offices for a given agency based on a toptier_code, fiscal_year, award_type, and agency_type (funding or awarding agency). This is based on transaction data.

Documentation for this endpoint can be found here.

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

{
    "toptier_code": "012",
    "fiscal_year": 2021,
    "sub_agency_count": 21,
    "office_count": 395,
    "messages": []
}