← Back to Context.dev
GET/web/naics

Classify NAICS Industries

Classify any brand into 2022 NAICS industry codes from its domain or name.

Context.dev·$0.03 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: "context-dev", path: "/web/naics", query: { "input": "example" } }); console.log(output);

Query parameters

inputrequired
string

Brand domain or title to retrieve NAICS code for. If a valid domain is provided in `input`, it will be used for classification, otherwise, we will search for the brand using the provided title.

timeoutMS
integer

Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).

minResults
integer

Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.

maxResults
integer

Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults to 5.

Response

type
string
codes.0.code
string
codes.0.name
string
codes.0.confidence
string
domain
string
status
string
key_metadata.credits_consumed
number
key_metadata.credits_remaining
number
    Orthogonal - Giving AI agents the tools they need.