USAspending API ReferenceIndependent
Try the API

Major Object Classes

GET/api/v2/financial_spending/major_object_class/

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 the total amount that a specific agency has obligated to major object classes in a given fiscal year.

Request

curl 'https://api.usaspending.gov/api/v2/financial_spending/major_object_class/?fiscal_year=2017&funding_agency_id=456'

Query parameters

  • fiscal_yearstringRequired

    The fiscal year that you are querying data for.

    Example 2017

  • funding_agency_idstringRequired

    The unique USAspending.gov agency identifier. This ID is the agency_id value returned in the /api/v2/references/toptier_agencies/ endpoint.

    Example 456

Try it

Runs against the live API. Responses are real data.

GET/api/v2/financial_spending/major_object_class/?fiscal_year=2017&funding_agency_id=456

Response · 200

  • resultsarray of MajorObjectClassRequired3 fields
    • major_object_class_codestringRequired

      Example 30

    • major_object_class_namestringRequired

      Example Acquisition of assets

    • obligated_amountstringRequired

      Example 216067467.29

Example response
{
  "results": [
    {
      "major_object_class_code": "30",
      "major_object_class_name": "Acquisition of assets",
      "obligated_amount": "216067467.29"
    }
  ]
}

Recent changes

No contract changes to this endpoint since October 2024. The changelog covers every endpoint.

Generated from contracts/v2/financial_spending/major_object_class.md in the USAspending API repo.

Loading…