USAspending API ReferenceIndependent
Try the API

Toptier Agency Profile

GET/api/v2/references/toptier_agencies/

These endpoints are used to power USAspending.gov's agency profile pages. This data can be used to better understand the different ways that a specific agency spends money.

This endpoint returns a list of toptier agencies, their budgetary resources, and and the percent of the total government budget authority this agency accounts for.

Request

curl 'https://api.usaspending.gov/api/v2/references/toptier_agencies/'

Query parameters

  • sortstring

    A data field that will be used to sort the response array.

    Example percentage_of_total_budget_authority

  • orderstring

    The direction (asc or desc) that the sort field will be sorted in.

    Example desc

Try it

Runs against the live API. Responses are real data.

GET/api/v2/references/toptier_agencies/?sort=percentage_of_total_budget_authority&order=desc

Response · 200

  • resultsarray of ListAgencyObjectRequired13 fields
    • abbreviationstringRequired
    • active_fqstringRequired
    • active_fystringRequired
    • agency_idnumberRequired

      agency_id is the unique USAspending.gov identifier for the agency. You will need to use this ID in other endpoints when requesting detailed information about this specific agency.

    • agency_namestringRequired
    • budget_authority_amountnumberRequired
    • congressional_justification_urlstringRequiredNullable
    • current_total_budget_authority_amountnumberRequired
    • obligated_amountnumberRequired
    • outlay_amountnumberRequired
    • percentage_of_total_budget_authoritynumberRequired

      percentage_of_total_budget_authority is the percentage of the agency's budget authority compared to the total government budget authority, expressed as a decimal value.

    • toptier_codestringRequired
    • agency_slugstringRequired
Example response
{
  "results": [
    {
      "abbreviation": "",
      "active_fq": "",
      "active_fy": "",
      "agency_id": 0,
      "agency_name": "",
      "budget_authority_amount": 0,
      "congressional_justification_url": null,
      "current_total_budget_authority_amount": 0,
      "obligated_amount": 0,
      "outlay_amount": 0,
      "percentage_of_total_budget_authority": 0,
      "toptier_code": "",
      "agency_slug": ""
    }
  ]
}

Recent changes

Generated from contracts/v2/references/toptier_agencies.md in the USAspending API repo.

Loading…