import ContextDev from 'context.dev';
const client = new ContextDev({
apiKey: process.env['CONTEXT_DEV_API_KEY'], // This is the default and can be omitted
});
const response = await client.industry.retrieveNaics({ input: 'input' });
console.log(response.codes);{
"status": "<string>",
"domain": "<string>",
"type": "<string>",
"codes": [
{
"code": "<string>",
"name": "<string>",
"confidence": "high"
}
]
}Endpoint to classify any brand into a 2022 NAICS code.
import ContextDev from 'context.dev';
const client = new ContextDev({
apiKey: process.env['CONTEXT_DEV_API_KEY'], // This is the default and can be omitted
});
const response = await client.industry.retrieveNaics({ input: 'input' });
console.log(response.codes);{
"status": "<string>",
"domain": "<string>",
"type": "<string>",
"codes": [
{
"code": "<string>",
"name": "<string>",
"confidence": "high"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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.
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).
1000 <= x <= 300000Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
1 <= x <= 10Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults to 5.
1 <= x <= 10Was this page helpful?