South Star

NAICS SIC Code Lookup Search Crosswalk Batch API

Free tier included · Business
Complete 2022 NAICS and 1987 SIC lookup, search, crosswalk, batch, and detect.

NAICS/SIC Reference API gives you the full official industry classification tables — not partial lists. It ships the complete 2022 NAICS table from the U.S. Census Bureau (2,125 codes: 20 sectors, 96 subsectors, 308 industry groups, 689 industries, 1,012 national industries, plus sector ranges like 31-33) and the 1987 SIC manual (83 major groups, 1,005 industries still used by the SEC, OSHA and many CRMs). Every answer returns the official title, hierarchy level and level name, the parent code and title, and — for a prefix — all child codes.

Search uses SQLite FTS5 with bm25 ranking and Porter stemming, so "plumber" finds "Plumbers" and everyday words like "pizza delivery" find the right 6-digit code via the 20,000+ official Census index entries.

The service is offline and stateless: validation is regex plus table lookups over embedded constants, there are no databases written to, no request logs and no cross-request state. That makes it privacy-friendly for PII-heavy use cases and fast — a 100-item batch completes in milliseconds and responses are tiny.

Honest limits: this is a lookup/reference service, not a real-time registry. Codes are validated against the shipped 2022 NAICS and 1987 SIC tables only; it does not call the Census or SEC. The `/search` and `/sic/search` endpoints cap `limit` at 100 and `q` at 60 characters; `/lookup`, `/sic/lookup` and `/detect` accept codes of 2-6 digits (sector ranges like 31-33 allowed for NAICS). `/batch` accepts up to 100 codes per request. Unknown codes return 404 with a structured error; invalid strings in a batch return `error='invalid_code'` or `error='not_found'` per item rather than failing the whole call.

Endpoints

MethodPathWhat it does
GET/API metadata: name, version, dataset sizes, coverage note, and the list of endpoints.
GET/healthLiveness probe: returns status "ok" and the number of loaded classification codes.
GET/coverageDataset coverage statistics: how many codes of each hierarchy level are shipped for every dataset, plus a note about completeness.
GET/lookupLook up a NAICS code: returns the official title and every code below it (prefix match) with hierarchy metadata. A code that does not exist but has descendants returns mode='prefix'; an unknown code returns 404.
GET/searchRanked search over NAICS titles and the official 2022 NAICS index (20,000+ activity descriptions): all words must match (Porter stemming), then word prefixes, then any word; results sorted by bm25 relevance. Numeric queries match codes by prefix.
GET/sic/lookupLook up a US Standard Industrial Classification (SIC) code: returns the official title and every code below it (prefix match) with hierarchy metadata.
GET/sic/searchFull-text search over SIC titles. Case-insensitive, any word of the query may match, numeric queries match codes by prefix, synonyms are expanded. Results sorted by code.
GET/sic/fullRicher SIC 1987 lookup: same title resolution plus the SEC Division of Corporation Finance review office that handles filings for that SIC range. Returns 404 for unknown codes.
GET/detectUniversal code-type detector: tells you whether a numeric code is NAICS or SIC, returns the matching title and hierarchy level, and (with prefix_match=true) resolves codes that only exist as a sector prefix. Unknown codes return 404.
GET/crosswalkTranslate a code from one classification system to the other using the Census SIC/NAICS concordance. NAICS sector prefixes are mapped to their SIC major groups and vice-versa. Returns a (possibly empty) list of target codes.
POST/batchClassify a list of up to 100 codes in one call. Each item is auto-detected as NAICS or SIC (or reports an error) so you can enrich whole tables without exporting them. Invalid strings return error='invalid_code'; unknown codes return error='not_found'.

Quick start

curl -X GET "https://naics.p.rapidapi.com/coverage" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: naics.p.rapidapi.com"

FAQ

Yes.

Does the API make any external network calls?

No. All lookups are against embedded tables loaded at startup. There are no calls to the Census, SEC, or any third-party service. The service is offline, stateless, and makes no request logs.

What's the difference between /lookup and /detect?

`/lookup` assumes you know the dataset (NAICS) and returns full hierarchy metadata. `/detect` figures out whether a code is NAICS or SIC automatically, and can resolve sector-only prefixes (e.g. "31" which exists only as a NAICS prefix with descendants).

How many codes can I classify in one request?

Up to 100 codes per `POST /batch` call. Each code is auto-detected as NAICS or SIC. Invalid strings return `error='invalid_code'`; unknown codes return `error='not_found'` — the batch never fails entirely because of one bad code.

Try NAICS SIC Code Lookup Search Crosswalk Batch free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs