NAICS Lookup API
Comprehensive NAICS (North American Industry Classification System) code lookup API with hierarchy navigation, year-to-year crosswalks, SIC mapping, and full-text search. All data sourced from the U.S. Census Bureau, hosted locally for sub-20ms response times.
Response Format
All endpoints return JSON with this envelope structure:
Valid years: 2022 (default), 2017, 2012, 2007
Endpoints
Returns the full profile for a NAICS code including title, hierarchy, children, description, examples, and crosswalks.
| Parameter | Location | Description |
|---|---|---|
| code required | path | NAICS code (2-6 digits, e.g. 511210) |
| year optional | query | NAICS revision year (default: 2022) |
Autocomplete-ready search. Matches code prefixes (numeric query) or title keywords (text query).
| Parameter | Location | Description |
|---|---|---|
| q required | query | Search query (min 2 chars). E.g. software or 5112 |
| year optional | query | NAICS revision year (default: 2022) |
| level optional | query | Filter by hierarchy level (2-6) |
| limit optional | query | Max results (default: 20, max: 50) |
Returns all direct sub-categories of a NAICS code. E.g. for sector 51, returns subsectors like 511, 512, etc.
| Parameter | Location | Description |
|---|---|---|
| code required | path | NAICS code |
| year optional | query | NAICS year (default: 2022) |
Returns the full hierarchy path from the root sector down to this code.
| Parameter | Location | Description |
|---|---|---|
| code required | path | NAICS code |
| year optional | query | NAICS year (default: 2022) |
Shows how a code has existed across NAICS revision years, including title changes.
Returns all 20 NAICS economic sectors for the specified year.
| Parameter | Location | Description |
|---|---|---|
| year optional | query | NAICS year (default: 2022) |
Returns a sector profile with its subsector tree.
Summary of a NAICS revision year: total codes, breakdown by level, and sector list.
Returns the concordance mapping for a code from one NAICS revision to another. Shows splits, merges, and 1:1 mappings.
| Parameter | Location | Description |
|---|---|---|
| code required | query | NAICS code to map |
| from required | query | Source year |
| to required | query | Target year |
Lists all codes that changed between two NAICS revision years (new, split, merged, title changes).
| Parameter | Location | Description |
|---|---|---|
| from optional | query | From year (default: 2017) |
| to optional | query | To year (default: 2022) |
Maps a 4-digit Standard Industrial Classification (SIC) code to its NAICS equivalents.
Returns profiles for multiple codes side-by-side. Useful for comparing related industries.
| Parameter | Location | Description |
|---|---|---|
| codes required | query | Comma-separated codes (2-10) |
| year optional | query | NAICS year (default: 2022) |
Look up multiple NAICS codes in a single request. Send a JSON body with an array of codes.
Returns global dataset statistics: total codes, available years, sector count, and data source info.
Rate Limits & Usage
- No API key required — all endpoints are publicly accessible
- CORS enabled — call from any origin
- Rate limit: 1,000 requests per minute per IP (generous for most use cases)
- Response format: JSON only
- Caching: KV-backed responses typically resolve in <20ms
- Data freshness: Updated when new NAICS revisions are published (approximately every 5 years)