Home / APIs / NAICS Code Finder

NAICS Code Finder API

Semantic NAICS classification: paste a company description and get ranked codes with 0–100 match ratings — plus keyword search, code lookup, and similar-industry discovery.

Get it on RapidAPI ↗

NAICS Code Finder classifies free text into NAICS codes by meaning, not keywords. POST a company description, capabilities statement, services list, or website copy to /match and get ranked codes with a 0–100 match rating, a strength band, the full sector→industry hierarchy for every hit, and the official Census index activities that drove the match — so every result is explainable.

Matching runs on sentence embeddings computed on our own server over all 2,125 official 2022 NAICS codes and the Census Bureau's ~20,000-entry activity index, blended with keyword scoring so exact vocabulary always anchors the results. Your text is never sent to a third-party AI service, nothing is stored, and there's no per-token fee — flat monthly plans like every Abundance API. The dataset and model are bundled, so typical latency is tens of milliseconds.

Beyond semantic matching you get instant keyword search across every level (sector to national industry), full official code records (description, cross-references, parent chain, child codes, index activities), and embedding-based similar-code discovery for building related-industries features.

Step-by-step tutorial: NAICS Code API: Semantic Lookup from Any Business Description

Endpoints

MethodPathDescription
POST/matchSemantic match: free text → ranked NAICS codes with 0–100 ratings
GET/searchFast keyword search across all codes and index activities
GET/codeFull official record for any 2–6 digit code
GET/similarMost similar codes at the same level (embedding-based)
GET/datasetDataset metadata: version, source, code counts

Quick start

cURL (via RapidAPI)
curl --request curl \
  --url 'https://naics-code-finder.p.rapidapi.com/-X POST https://naics-code-finder.p.rapidapi.com/match \
  -H "X-RapidAPI-Key: YOUR_KEY" \
  -H "X-RapidAPI-Host: naics-code-finder.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: naics-code-finder.p.rapidapi.com' \
  --header 'content-type: application/json' \
  --data '{"text":"We install and repair residential HVAC systems, furnaces, and heat pumps","limit":3}''
JavaScript (fetch)
const res = await fetch('https://naics-code-finder.p.rapidapi.com/-X POST https://naics-code-finder.p.rapidapi.com/match \
  -H "X-RapidAPI-Key: YOUR_KEY" \
  -H "X-RapidAPI-Host: naics-code-finder.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '', {
  method: 'curl',
  headers: {
    'X-RapidAPI-Key': 'YOUR_KEY',
    'X-RapidAPI-Host': 'naics-code-finder.p.rapidapi.com',
    'content-type': 'application/json'
  },
  body: JSON.stringify({"text":"We install and repair residential HVAC systems, furnaces, and heat pumps","limit":3}')
});
const data = await res.json();
Example response
{
  "query": "We install and repair residential HVAC systems, furnaces, and heat pumps",
  "level": 6,
  "count": 3,
  "results": [
    {
      "code": "238220",
      "title": "Plumbing, Heating, and Air-Conditioning Contractors",
      "rating": 75,
      "matchStrength": "excellent",
      "semanticSimilarity": 0.7038,
      "keywordScore": 0.3196,
      "levelName": "national_industry",
      "hierarchy": [
        { "code": "23", "title": "Construction", "levelName": "sector" },
        { "code": "238", "title": "Specialty Trade Contractors", "levelName": "subsector" },
        { "code": "2382", "title": "Building Equipment Contractors", "levelName": "industry_group" },
        { "code": "23822", "title": "Plumbing, Heating, and Air-Conditioning Contractors", "levelName": "naics_industry" },
        { "code": "238220", "title": "Plumbing, Heating, and Air-Conditioning Contractors", "levelName": "national_industry" }
      ],
      "bestMatchingActivity": "Heating, ventilation and air conditioning (HVAC) contractors",
      "matchedIndexTerms": [
        "Furnace conversion (i.e., from one fuel to another)",
        "Furnace repair and maintenance services",
        "Heat pump installation"
      ],
      "description": "This industry comprises establishments primarily engaged in installing and servicing plumbing, heating, and air-conditioning equipment..."
    }
  ]
}

Pricing

Subscribe on RapidAPI. Start free; upgrade as you scale.

Basic
Free
1,000 requests / mo
Pro
$5 / mo
100,000 requests / mo
Ultra
$20 / mo
1,000,000 requests / mo
Mega
$50 / mo
2,000,000 requests / mo

Try it free, right now

No signup — test it in your browser with our free NAICS Code Lookup tool.

Open the NAICS Code Lookup →

Frequently asked questions

How is this different from keyword NAICS search tools?

Keyword tools only find codes whose titles contain your exact words. This API matches by meaning using sentence embeddings, so “we fix furnaces” finds HVAC contractors (238220) even though neither word appears in the title — and every result still shows the matched official index activities so you can verify it.

How does this compare to the NAICS.com API?

NAICS.com's lookup API is keyword search over official titles and terms, priced at $50/month for 10,000 requests (Starter), $150/month for 100,000 (Pro), and $299/month for 250,000 (Scale). This API adds semantic matching on top of keyword search and costs $5/month for the same 100,000 calls their Pro plan covers at $150 — 30× less — with 1,000 calls/month free and up to 2,000,000 for $50.

Is my text sent to a third-party AI service?

No. The embedding model runs on our own server, requests are processed in memory, and nothing is stored. There is no per-token or per-call AI fee — plans are flat monthly prices.

Which NAICS version is this?

The official 2022 NAICS (current version): all 2,125 codes from 2-digit sectors to 6-digit national industries, with full descriptions, cross-references, and the Census Bureau's ~20,000-entry index of business activities.

What does the match rating mean?

A 0–100 blend of semantic similarity (65%) and keyword overlap (35%), with bands: 75+ excellent, 60+ strong, 40+ moderate, below 40 weak. Ratings compare candidates for one query — use the ranking and the bands, and read the returned description to confirm.

Can I match at broader code levels?

Yes — pass level 2–6 to /match to get sectors, subsectors, industry groups, NAICS industries, or (default) 6-digit national industries.

Ready to build with NAICS Code Finder?

Grab your key on RapidAPI and start on the free tier.

Get it on RapidAPI ↗