← Back to API Ninjas
Search NAICS codes by keyword
Ranked candidate codes for a keyword or phrase, matched against the 20,398-entry official Census index plus titles and descriptions. Returns every plausible code (up to 25) without applying classification rules.
API Ninjas·$0.001 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "api-ninjas",
path: "/v1/naicssearch",
query: {
"query": "example"
}
});
console.log(output);Query parameters
queryrequired
string
Keyword or phrase describing an industry or activity. Limited to 300 characters.
year
string
NAICS revision. Currently 2022 only; NAICS 2027 is not published by the Census Bureau until January 2027. (Allowed: 2022) (Default: 2022)
level
number
Restrict results to codes of this digit length.
limit
number
Maximum results, up to 25. (Default: 5)