Single NAICS And Descendants
GET
/api/v2/references/naics/{code}/This endpoint helps traverse a tree stcructure used to power USAspending.gov's NAICS search component on the Advanced Search page.
This endpoint returns the NAICS specified by "id" and its immediate children.
Request
curl 'https://api.usaspending.gov/api/v2/references/naics/11/'Path parameters
codestringRequired
Try it
Runs against the live API. Responses are real data.
GET
/api/v2/references/naics/11/Response · 200
resultsarray of NAICSObjectRequired4 fieldsnaicsstringRequirednaics_descriptionstringRequiredcountnumberRequiredchildrenarray of NAICSObject
{
"results": [
{
"naics": "",
"naics_description": "",
"count": 0,
"children": [
{}
]
}
]
}Recent changes
No contract changes to this endpoint since October 2024. The changelog covers every endpoint.
Contract notes
The contract doesn't declare
codein its URL template, so it was added here from the path.
Generated from contracts/v2/references/naics/code.md in the USAspending API repo.