Skip to main content
NAICS classification is available through a dedicated endpoint: GET /web/naics. Codes follow the 2022 NAICS taxonomy published by the US Census Bureau.

NAICS code structure

NAICS codes are hierarchical. Each digit narrows the classification:
LevelDigitsExample
Sector254: Professional, Scientific, and Technical Services
Subsector3541: Professional, Scientific, and Technical Services
Industry Group45415: Computer Systems Design and Related Services
NAICS Industry554151: Computer Systems Design and Related Services
National Industry6541511: Custom Computer Programming Services
Three sectors span multiple 2-digit prefixes: Manufacturing (31-33), Retail Trade (44-45), and Transportation and Warehousing (48-49). The /web/naics endpoint returns 6-digit national industry codes: the most specific level.

Prerequisites

  • A Context.dev API key. Sign up at context.dev/signup, copy the key from the dashboard (prefix ctxt_secret_), and export it:
  • An SDK (optional). Install for your language, or skip the install and call directly with curl:

Send a request

Pass an input (a domain or company title) and read back an array of 6-digit NAICS codes with confidence ratings:
10 credits per successful call

Request parameters

ParameterTypeDescription
inputstringRequired. A brand domain or title. If a valid domain is provided, it’s used directly; otherwise the resolver searches for the brand by title.
minResultsintegerMinimum number of NAICS codes to return. Range: 1–10. Defaults to 1.
maxResultsintegerMaximum number of NAICS codes to return. Range: 1–10. Defaults to 5.
timeoutMSintegerOptional request timeout (1,000–300,000 ms). Returns 408 if exceeded.

Response shape

FieldTypeDescription
statusstring"ok" on a 200 response.
domainstringThe resolved domain. Useful when input was a title: you get back what the resolver settled on.
typestringAlways "naics".
codes[]arraySorted by confidence.
codes[].codestringThe NAICS code. Keep it as a string in storage.
codes[].namestringThe official NAICS title for that code.
codes[].confidenceenumhigh, medium, or low. Indicates how well the code matches the company.
Use minResults / maxResults to control how aggressive the classification is. If you only want the strongest match, set both to 1. For richer classification across diversified businesses, raise maxResults and filter by confidence === "high" downstream.
For the official taxonomy, see the US Census NAICS reference.

Sectors

There are 20 sector groupings in the 2022 NAICS taxonomy:
CodeSector
11Agriculture, Forestry, Fishing and Hunting
21Mining, Quarrying, and Oil and Gas Extraction
22Utilities
23Construction
31-33Manufacturing
42Wholesale Trade
44-45Retail Trade
48-49Transportation and Warehousing
51Information
52Finance and Insurance
53Real Estate and Rental and Leasing
54Professional, Scientific, and Technical Services
55Management of Companies and Enterprises
56Administrative and Support and Waste Management and Remediation Services
61Educational Services
62Health Care and Social Assistance
71Arts, Entertainment, and Recreation
72Accommodation and Food Services
81Other Services (except Public Administration)
92Public Administration

Full list of 6-digit NAICS codes

All 1,012 national-industry (6-digit) codes returned by the API. Use the copy button on either code block to grab the entire list in one click: CSV for spreadsheets, JSON for programmatic use.

Next steps

Prefetch for Faster Response

Hide cold-hit latency from your users.

Handle Rate Limits

Backoff strategies, client cache, and prefetch fallbacks.

Best Practices

Caching, error handling, and key hygiene.

Troubleshooting

Status codes, retry patterns, and common errors.