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: 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

Response shape

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:

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.