Skip to main content
GET
JavaScript
10 Credits

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, it will be used for classification, otherwise, we will search for the brand using the provided title.

Minimum string length: 4
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
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: 1000 <= x <= 300000
tags
string[]

Optional comma-separated caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters. Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.

Maximum array length: 20
Required string length: 1 - 50
Example:

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.

key_metadata
object

Metadata about the API key used for the request. Included in every response whenever a valid API key is provided, even when the response status is not 200.