> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Context.dev: Contextdev Get Web Sic

> Classify a company into SIC industry codes from its domain or name. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Classify a company into SIC industry codes from its domain or name.

> [!NOTE]
>
> Tool ID: `contextdev_get_web_sic`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'contextdev_get_web_sic',
  {
    "input": "example"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute contextdev_get_web_sic --input '{
  "input": "example"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "status": "example",
    "domain": "example.com",
    "type": "example"
  }
}
```

Use `deepline describe contextdev_get_web_sic --json` for the latest machine-readable contract.

## Input reference

Classify any brand into Standard Industrial Classification (SIC) codes from its domain or name. Choose between the original SIC system (`original_sic`) or the latest SIC list maintained by the SEC (`latest_sec`).

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.input` | `string` | Yes | — | 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 length: 4. |
| `payload.type` | `"original_sic" \| "latest_sec"` | No | `"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`. Allowed: `original_sic`, `latest_sec`. |
| `payload.minResults` | `integer` | No | `1` | Minimum number of SIC codes to return. Must be at least 1. Defaults to 1. Minimum: 1. Maximum: 10. |
| `payload.maxResults` | `integer` | No | `5` | Maximum number of SIC codes to return. Must be between 1 and 10. Defaults to 5. Minimum: 1. Maximum: 10. |
| `payload.timeoutMS` | `integer` | No | — | 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). Minimum: 1000. Maximum: 300000. |
| `payload.tags` | `array` | No | — | 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. Maximum items: 20. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Classify any brand into Standard Industrial Classification (SIC) codes from its domain or name. Choose between the original SIC system (`original_sic`) or the latest SIC list maintained by the SEC (`latest_sec`).",
    "properties": {
      "input": {
        "type": "string",
        "description": "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.",
        "minLength": 4
      },
      "type": {
        "type": "string",
        "description": "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`.",
        "default": "original_sic",
        "enum": [
          "original_sic",
          "latest_sec"
        ]
      },
      "minResults": {
        "type": "integer",
        "description": "Minimum number of SIC codes to return. Must be at least 1. Defaults to 1.",
        "default": 1,
        "minimum": 1,
        "maximum": 10
      },
      "maxResults": {
        "type": "integer",
        "description": "Maximum number of SIC codes to return. Must be between 1 and 10. Defaults to 5.",
        "default": 5,
        "minimum": 1,
        "maximum": 10
      },
      "timeoutMS": {
        "type": "integer",
        "description": "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).",
        "minimum": 1000,
        "maximum": 300000
      },
      "tags": {
        "type": "array",
        "description": "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.",
        "maxItems": 20,
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 50
        }
      }
    },
    "required": [
      "input"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.status` | `string` | No | — | — |
| `result.data.domain` | `string` | No | — | — |
| `result.data.type` | `string` | No | — | — |
| `result.data.classification` | `"original_sic" \| "latest_sec"` | No | — | Allowed: `original_sic`, `latest_sec`. |
| `result.data.codes` | `array` | No | — | — |
| `result.data.codes[].code` | `string` | Yes | — | — |
| `result.data.codes[].name` | `string` | Yes | — | — |
| `result.data.codes[].confidence` | `"high" \| "medium" \| "low"` | Yes | — | Allowed: `high`, `medium`, `low`. |
| `result.data.codes[].majorGroup` | `string` | No | — | — |
| `result.data.codes[].majorGroupName` | `string` | No | — | — |
| `result.data.codes[].office` | `string` | No | — | — |
| `result.data.key_metadata` | `object` | No | — | — |
| `result.meta` | `object` | No | — | — |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "classification": {
            "type": "string",
            "enum": [
              "original_sic",
              "latest_sec"
            ]
          },
          "codes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "confidence": {
                  "type": "string",
                  "enum": [
                    "high",
                    "medium",
                    "low"
                  ]
                },
                "majorGroup": {
                  "type": "string"
                },
                "majorGroupName": {
                  "type": "string"
                },
                "office": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "name",
                "confidence"
              ],
              "additionalProperties": false
            }
          },
          "key_metadata": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `provider_usage` (provider usage).
* Estimated Deepline credits: `0.01` per pricing unit.

## Related documentation

* [Context.dev provider guide](https://deepline.com/docs/providers/contextdev/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.