Web Extraction

Classify NAICS industries

Changed on

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

get/web/naics

Request

  • Base URL
    https://api.context.dev/v1
  • URL
    https://api.context.dev/v1/web/naics
  • Auth
    HTTP bearer

Query parameters

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

minResultsinteger

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

maxResultsinteger

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

timeoutMSinteger

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

tagsstring[]

Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.

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.

[
  "production",
  "team-alpha"
]

Response

Successful response

statusstring

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

domainstring

Domain found for the brand

typestring

Industry classification type, for naics api it will be naics

Changes

    • warning

      added the new WEBSITE_BLOCKED enum value to the response property for the response status

    • warning

      added the new COLD_DOMAIN_TIMEOUT_TOO_LOW enum value to the response property for the response status