Home › Guides › NAICS Code API: Classify a Business from Its Description

NAICS Code API: Classify a Business from Its Description

NAICS codes are required on registrations, bids, and loan and insurance applications, yet most people describe a business in their own words. Looking a code up by keyword works only when you already know the official wording.

The NAICS Code Finder API takes the description as written and returns ranked 2022 NAICS codes, each with a 0–100 match rating and its place in the hierarchy.

One call

POST the description to /match. The API returns ranked codes with a rating, a strength band and the full sector-to-industry hierarchy. Requests are processed on our own servers; the text goes to no third-party service and nothing is stored.

curl
curl -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 '{"text":"We install and repair residential HVAC systems, furnaces, and heat pumps","limit":3}'
Response (200, abbreviated)
{
  "count": 3,
  "results": [
    {
      "code": "238220",
      "title": "Plumbing, Heating, and Air-Conditioning Contractors",
      "rating": 75,
      "matchStrength": "excellent",
      "hierarchy": [
        { "code": "23", "title": "Construction" },
        { "code": "238", "title": "Specialty Trade Contractors" },
        { "code": "2382", "title": "Building Equipment Contractors" }
      ]
    }
  ]
}

What else is in the API

GET /search finds codes by keyword at every level and suits autocomplete. GET /code returns the full official record for a code: description, cross-references, hierarchy and child codes. GET /similar returns related codes at the same level.

Where it fits

SAM.gov registration and contract bidding, lead enrichment, onboarding forms that suggest an industry from whatever the business types, and analytics pipelines that turn free-text industry fields into a standard taxonomy.

This is a general-purpose lookup for standard NAICS codes, sold self-serve. Classification against your own categories, such as professions, product lines or risk classes, with private hosting and tuning on your data, is a separate custom service. Reach us through the contact page.

Plans

There is a free tier for testing and light use, and paid plans for volume. Plans, keys and billing are handled on RapidAPI.

Run it in production

NAICS Code Finder has a permanent free tier — 1,000 requests a month, no credit card. Paid plans are listed on RapidAPI.

Get a free API key on RapidAPI ↗

Full endpoint reference →

FAQ

Is this the official NAICS data?

The codes, titles and descriptions are the official 2022 NAICS as published by the U.S. Census Bureau. The API is an independent product and is not affiliated with the Census Bureau or the NAICS Association.

Does my text go to a third party?

No. Requests are processed on our own servers, in memory, and nothing is stored.

How should I read the rating?

It is a 0–100 score for how well a code fits the description. Ratings of 75 and above are usually unambiguous. When several codes rate closely, the returned descriptions let a person confirm in seconds.

Can I try it without an API key?

Yes. The free NAICS Code Lookup tool on this site runs the same lookup in the browser, with no signup.