NAICS Code Lookup {API}

Find any company's 6-digit NAICS code from just a domain.

The same NAICS 2022 codes used by the U.S. Census Bureau, SBA, IRS, and SAM.gov — resolved instantly from a website. Built for lead scoring, vendor onboarding, GovCon, compliance, and analytics.

No credit card required
View Documentation
Daydream logo
Kovai logo
Passionfroot logo
Orange logo
SendX logo
Klarna logo
Super.com logo
Daydream logo
Kovai logo
Passionfroot logo
Orange logo
SendX logo
Klarna logo
Super.com logo
Daydream logo
Kovai logo
Passionfroot logo
Orange logo
SendX logo
Klarna logo
Super.com logo
Daydream logo
Kovai logo
Passionfroot logo
Orange logo
SendX logo
Klarna logo
Super.com logo

What You Get

Each API call returns structured NAICS classification data.

6-digit NAICS code

Official industry classification

Industry title

Human-readable industry name

Multiple codes

When companies span industries

Sector classification

High-level industry grouping

How It Works

We analyze website content and metadata to determine the most accurate industry classification.

— step 01

Pass a domain

Like nike.com or any company website

— step 02

We analyze the site

Metadata, content, keywords, and industry classifiers

— step 03

Industry matched

Best-fit NAICS codes identified

— step 04

JSON returned

Classification with code, title, and category

API Response

Extracted classification for nike.com

GET /v1/naics?domain=nike.com
{
  "domain": "nike.com",
  "codes": [
    { "code": "339920", "name": "Sporting and Athletic Goods Manufacturing" },
    { "code": "459110", "name": "Sporting Goods Retailers" }
  ],
  "type": "naics",
  "status": "ok"
}

How NAICS codes are structured

A NAICS code is a 6-digit number that classifies a U.S., Canadian, or Mexican business by what it produces. Each digit narrows the classification:

  • Digits 1–2 — Sector. The broadest grouping. Example: 54 = Professional, Scientific, and Technical Services.
  • Digit 3 — Subsector. Example: 541.
  • Digit 4 — Industry Group. Example: 5415 = Computer Systems Design and Related Services.
  • Digit 5 — NAICS Industry. Example: 54151.
  • Digit 6 — National Industry. The U.S./Canada/Mexico-specific variant. Example: 541512 = Computer Systems Design Services.

When you need a NAICS code

  • Registering on SAM.gov to bid on federal contracts
  • Filing taxes with the IRS or applying for SBA loans
  • Vendor onboarding and supplier risk classification
  • CRM and lead enrichment, segmentation, and scoring
  • Marketing list segmentation by industry
  • Compliance reporting (KYC/KYB, AML, due diligence)
  • Industry-level market research and TAM modeling

NAICS vs SIC codes

NAICS replaced SIC in 1997 as the official U.S. industry classification, but many older systems (Dun & Bradstreet feeds, SEC EDGAR filings, legacy CRMs) still use 4-digit SIC codes. Context.dev returns both — see the SIC Code Lookup API for the SIC equivalent. NAICS is more granular (6 digits vs 4) and is updated every 5 years to reflect the modern economy.

Frequently asked questions

Common questions about NAICS codes and the Context.dev NAICS Code Lookup API.

Am I billed for failed requests?
No. You are not billed for failed requests or requests where we are blocked (rarely happens). Credits are only consumed on successful responses.
What is a NAICS code?
NAICS (North American Industry Classification System) is the official 6-digit industry code system used by the U.S. Census Bureau, Bureau of Labor Statistics, IRS, SBA, and SAM.gov to classify businesses. The current edition is NAICS 2022. The first two digits represent the sector (e.g. 54 = Professional Services), digits 3–4 narrow to subsector and industry group, digit 5 identifies the industry, and digit 6 distinguishes the U.S./Canada/Mexico national variant.
How do I find a company's NAICS code?
Pass a domain to /v1/naics. The API analyzes the company's website (homepage copy, product pages, About, schema.org, OpenGraph) and returns the most accurate NAICS classification — usually one primary code, plus secondary codes when the company spans multiple industries. No manual census-table lookups, no spreadsheet matching.
How is NAICS lookup by domain better than NAICS lookup by company name?
Company names are noisy: "Apple" matches a record-label, a tech giant, and a corner store. A domain ("apple.com") is unique. By keying on the domain, the API resolves to one canonical company and pulls the actual content describing what they do — which is what NAICS is supposed to classify in the first place.
Which NAICS edition does the API use?
NAICS 2022, the current U.S. edition adopted by the Census Bureau, SBA, IRS, SAM.gov, and most state filings. The 2022 update introduced new digital-economy codes that older lookup tools still miss.
What does the response look like?
JSON with a domain, a codes array (each item has the 6-digit code and the official NAICS title), and a status field. When a company has primary + secondary classifications, codes are returned in confidence order so you can pick the top one or store the full list.
Can I use this for SAM.gov, GovCon, or vendor onboarding?
Yes — the codes returned match the NAICS list accepted by SAM.gov, federal contracting RFPs, and standard vendor-onboarding forms. Drop them straight into your registration flow or supplier database.
How is this different from NAICS Association or NAICS.com?
NAICS reference sites are catalogs you search manually. Context.dev is a programmatic API: pass a domain, get the code. Built for embedding in onboarding flows, CRMs, and compliance pipelines — not for one-off Google searches.
Is the NAICS lookup API free?
Yes. The free tier covers thousands of monthly NAICS lookups, more than enough for prototyping and small workflows. A single API key also unlocks the SIC code API, company data, logos, colors, fonts, and the rest of the Context.dev brand-data suite.

Ship an agent that actually knows things.

Free tier, 10-minute integration, and the same API powering agents at Mintlify, daily.dev, and Propane. No credit card to start.