Minor Object Classes
/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_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.major_object_class_codestringRequiredThe major object class code returned in
/api/v2/financial_spending/major_object_class/.
Try it
Runs against the live API. Responses are real data.
/api/v2/financial_spending/object_class/?fiscal_year=2017&funding_agency_id=456&major_object_class_code=30Response · 200
resultsarray of MinorObjectClassRequired3 fieldsobject_class_codestringRequiredobject_class_namestringRequiredobligated_amountstringRequired
{
"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.