Skip to main content
GET
/
brand
/
naics
JavaScript
import BrandDev from 'brand.dev';

const client = new BrandDev({
  apiKey: process.env['BRAND_DEV_API_KEY'], // This is the default and can be omitted
});

const response = await client.brand.retrieveNaics({ input: 'input' });

console.log(response.codes);
{
  "status": "<string>",
  "domain": "<string>",
  "type": "<string>",
  "codes": [
    {
      "code": "<string>",
      "name": "<string>",
      "confidence": "high"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

input
string
required

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).

Required range: 1 <= x <= 300000
minResults
integer
default:1

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

Required range: 1 <= x <= 10
maxResults
integer
default:5

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

Required range: 1 <= x <= 10

Response

Successful response

status
string

Status of the response, e.g., 'ok'

domain
string

Domain found for the brand

type
string

Industry classification type, for naics api it will be naics

codes
object[]

Array of NAICS codes and titles.