USAspending API ReferenceIndependent
Try the API

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

    Example 11

Try it

Runs against the live API. Responses are real data.

GET/api/v2/references/naics/11/

Response · 200

  • resultsarray of NAICSObjectRequired4 fields
    • naicsstringRequired
    • naics_descriptionstringRequired
    • countnumberRequired
    • childrenarray of NAICSObject
Example response
{
  "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 code in its URL template, so it was added here from the path.

Generated from contracts/v2/references/naics/code.md in the USAspending API repo.

Loading…