> ## 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 Competitors

> Find a company's direct competitors from its domain, using its website and web search evidence. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Find a company's direct competitors from its domain, using its website and web search evidence.

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

## 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_competitors',
  {
    "domain": "example.com"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run contextdev_get_web_competitors --input '{
  "domain": "example.com"
}'
```

## 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": "ok",
    "domain": "example.com",
    "target": {
      "companyName": "Example Corp",
      "field": "email",
      "fieldDescription": "example",
      "websiteUrl": "https://example.com"
    },
    "competitors": [
      {
        "name": "Example",
        "domain": "example.com",
        "url": "https://example.com",
        "description": "Example description",
        "confidence": "high",
        "sourceUrls": [
          "https://example.com"
        ]
      }
    ],
    "request_id": "123e4567-e89b-42d3-a456-426614174000"
  }
}
```

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

## Input reference

Analyze a company's landing page and web search evidence to return direct competitors for the same product or market.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.domain` | `string` | Yes | — | Company domain to analyze, such as `stripe.com`. Full http(s) URLs are accepted and normalized to their domain. Minimum length: 3. |
| `payload.numCompetitors` | `integer` | No | `5` | Exact number of direct competitors to return. 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": "Analyze a company's landing page and web search evidence to return direct competitors for the same product or market.",
    "properties": {
      "domain": {
        "type": "string",
        "description": "Company domain to analyze, such as `stripe.com`. Full http(s) URLs are accepted and normalized to their domain.",
        "minLength": 3
      },
      "numCompetitors": {
        "type": "integer",
        "description": "Exact number of direct competitors to return. 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": [
      "domain"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.partial` | `boolean` | No | — | — |
| `result.data.status` | `"ok"` | Yes | — | Allowed: `ok`. |
| `result.data.domain` | `string` | Yes | — | — |
| `result.data.target` | `object` | Yes | — | — |
| `result.data.target.companyName` | `string` | Yes | — | — |
| `result.data.target.field` | `string` | Yes | — | — |
| `result.data.target.fieldDescription` | `string` | Yes | — | — |
| `result.data.target.websiteUrl` | `string` | Yes | — | — |
| `result.data.competitors` | `array` | Yes | — | — |
| `result.data.competitors[].name` | `string` | Yes | — | — |
| `result.data.competitors[].domain` | `string` | Yes | — | — |
| `result.data.competitors[].url` | `string` | Yes | — | — |
| `result.data.competitors[].description` | `string` | Yes | — | — |
| `result.data.competitors[].confidence` | `"high" \| "medium"` | Yes | — | Allowed: `high`, `medium`. |
| `result.data.competitors[].sourceUrls` | `array` | Yes | — | — |
| `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",
            "enum": [
              "ok"
            ]
          },
          "domain": {
            "type": "string"
          },
          "target": {
            "type": "object",
            "properties": {
              "companyName": {
                "type": "string"
              },
              "field": {
                "type": "string"
              },
              "fieldDescription": {
                "type": "string"
              },
              "websiteUrl": {
                "type": "string"
              }
            },
            "required": [
              "companyName",
              "field",
              "fieldDescription",
              "websiteUrl"
            ],
            "additionalProperties": false
          },
          "competitors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "domain": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "confidence": {
                  "type": "string",
                  "enum": [
                    "high",
                    "medium"
                  ]
                },
                "sourceUrls": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "name",
                "domain",
                "url",
                "description",
                "confidence",
                "sourceUrls"
              ],
              "additionalProperties": false
            }
          },
          "key_metadata": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "status",
          "domain",
          "target",
          "competitors",
          "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.