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_yearstringRequiredThe fiscal year that you are querying data for.
funding_agency_idstringRequiredThe unique USAspending.gov agency identifier. This ID is the
agency_idvalue returned in the/api/v2/references/toptier_agencies/endpoint.
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=456Response · 200
resultsarray of MajorObjectClassRequired3 fieldsmajor_object_class_codestringRequiredmajor_object_class_namestringRequiredobligated_amountstringRequired
{
"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.