USAspending API ReferenceIndependent
Try the API

Minor Object Classes

GET/api/v2/financial_spending/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 minor object classes within a specific major object class in a given fiscal year.

Request

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

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

  • major_object_class_codestringRequired

    The major object class code returned in /api/v2/financial_spending/major_object_class/.

    Example 30

Try it

Runs against the live API. Responses are real data.

GET/api/v2/financial_spending/object_class/?fiscal_year=2017&funding_agency_id=456&major_object_class_code=30

Response · 200

  • resultsarray of MinorObjectClassRequired3 fields
    • object_class_codestringRequired

      Example 310

    • object_class_namestringRequired

      Example Equipment

    • obligated_amountstringRequired

      Example 209728763.65

Example response
{
  "results": [
    {
      "object_class_code": "310",
      "object_class_name": "Equipment",
      "obligated_amount": "209728763.65"
    }
  ]
}

Recent changes

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

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

Loading…