> ## 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 run contextdev_get_web_sic --input '{
  "input": "example"
}'
```

## 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": {
    "request_id": "123e4567-e89b-42d3-a456-426614174000"
  }
}
```

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

## Input reference

Classify a company into SIC industry codes.

| 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"` | SIC dataset: `original_sic` (1987) or `latest_sec` (current SEC list). 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.timeoutOpts` | `object` | No | — | Request deadline and what to return when it passes. |
| `payload.zdr` | `"enabled" \| "disabled"` | No | `"disabled"` | `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR. Allowed: `enabled`, `disabled`. |
| `payload.tags` | `array` | No | — | Comma-separated labels for filtering usage, e.g. `production,team-alpha`. Maximum items: 20. |
| `payload.timeoutMS` | `integer` | No | — | Deprecated: use timeoutOpts.milliseconds. Request deadline in milliseconds. sent as timeoutOpts with the "fail" behavior. Minimum: 1000. Maximum: 300000. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Classify a company into SIC industry codes.",
    "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": "SIC dataset: `original_sic` (1987) or `latest_sec` (current SEC list).",
        "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
      },
      "timeoutOpts": {
        "type": "object",
        "description": "Request deadline and what to return when it passes.",
        "properties": {
          "milliseconds": {
            "type": "integer",
            "description": "Deadline in milliseconds.",
            "minimum": 1000,
            "maximum": 300000
          },
          "behavior": {
            "type": "string",
            "description": "\"fail\" returns 408 at the deadline. \"return-partial\" returns available results; inspect the response’s partial flag.",
            "default": "fail",
            "enum": [
              "fail",
              "return-partial"
            ]
          }
        },
        "required": [
          "milliseconds"
        ],
        "additionalProperties": false
      },
      "zdr": {
        "type": "string",
        "description": "`enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.",
        "default": "disabled",
        "enum": [
          "enabled",
          "disabled"
        ]
      },
      "tags": {
        "type": "array",
        "description": "Comma-separated labels for filtering usage, e.g. `production,team-alpha`.",
        "maxItems": 20,
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 50
        }
      },
      "timeoutMS": {
        "type": "integer",
        "description": "Deprecated: use timeoutOpts.milliseconds. Request deadline in milliseconds; sent as timeoutOpts with the \"fail\" behavior.",
        "minimum": 1000,
        "maximum": 300000
      }
    },
    "required": [
      "input"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.partial` | `boolean` | No | — | — |
| `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.data.request_id` | `string` | Yes | — | Format: `uuid`. |
| `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": {
          "partial": {
            "type": "boolean"
          },
          "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
          },
          "request_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "request_id"
        ],
        "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

* [Connect integrations](https://deepline.com/docs/integrations.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.