Thanks to visit codestin.com
Credit goes to docs.context.dev

Skip to main content
GET
Classify SIC industries
10 Credits

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <API_KEY>. Keys have full access by default.

Query Parameters

input
string
required

Brand domain or title to retrieve SIC 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
type
enum<string>
default:original_sic

Which SIC dataset to classify against. original_sic uses the 1987 Standard Industrial Classification system; latest_sec uses the current SIC list as published by the SEC. Defaults to original_sic.

Available options:
original_sic,
latest_sec
minResults
integer
default:1

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

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

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

Required range: 1 <= x <= 10
timeoutOpts
object

Optional request deadline and behavior on timeout. For GET requests, use timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded timeoutOpts object.

tags
string[]

Comma-separated tags for tracking request usage. 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

request_id
string<uuid>
required

Unique id of this API call, also sent in the X-Request-Id response header. Quote it when contacting support about a failed request.

Example:

"3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91"

partial
boolean

True when the timeout ended processing and this response contains only usable results completed so far. Unfinished results are omitted.

status
string

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

domain
string

Domain found for the brand

type
string

Industry classification type, for sic api it will be sic

classification
enum<string>

Echoes back which SIC dataset was used to classify the brand.

Available options:
original_sic,
latest_sec
codes
object[]

Array of SIC codes with confidence scores. Extra fields depend on the requested classification: original_sic results include majorGroup and majorGroupName; latest_sec results include office.

key_metadata
object

Credit usage, included whenever a valid API key is provided.