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

# Exa: Company Search

> Finding company-level signals and pages for target accounts through Exa entity search. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Finding company-level signals and pages for target accounts through Exa entity search.

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

## 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(
  'exa_company_search',
  {
    "query": "software companies hiring engineers"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute exa_company_search --input '{
  "query": "software companies hiring engineers"
}' --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": {
    "requestId": "request_123",
    "results": [
      {
        "id": "id_123",
        "url": "https://example.com",
        "title": "VP of Engineering"
      }
    ],
    "context": "example"
  }
}
```

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

## Input reference

Exa company search input.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.query` | `string` | Yes | — | — |
| `payload.additionalQueries` | `array` | No | — | Additional queries (used with type="deep" to expand coverage). |
| `payload.type` | `"auto" \| "fast" \| "deep" \| "neural" \| "instant"` | No | — | Allowed: `auto`, `fast`, `deep`, `neural`, `instant`. |
| `payload.numResults` | `number` | No | — | Number of results to return (max 100). |
| `payload.includeDomains` | `array` | No | — | — |
| `payload.excludeDomains` | `array` | No | — | Exclude results from these domains. |
| `payload.userLocation` | `string` | No | — | Two-letter ISO country code, e.g. "US". |
| `payload.contents` | `object` | No | — | — |
| `payload.context` | `boolean \| object` | No | — | — |
| `payload.moderation` | `boolean` | No | — | Enable content moderation (may reduce recall). |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Exa company search input.",
    "properties": {
      "query": {
        "type": "string"
      },
      "additionalQueries": {
        "type": "array",
        "description": "Additional queries (used with type=\"deep\" to expand coverage).",
        "items": {
          "type": "string"
        }
      },
      "type": {
        "type": "string",
        "enum": [
          "auto",
          "fast",
          "deep",
          "neural",
          "instant"
        ]
      },
      "numResults": {
        "type": "number",
        "description": "Number of results to return (max 100)."
      },
      "includeDomains": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "excludeDomains": {
        "type": "array",
        "description": "Exclude results from these domains.",
        "items": {
          "type": "string"
        }
      },
      "userLocation": {
        "type": "string",
        "description": "Two-letter ISO country code, e.g. \"US\"."
      },
      "contents": {
        "type": "object",
        "properties": {
          "text": {
            "anyOf": [
              {
                "type": "boolean",
                "description": "If true, returns full page text with default settings. If false, disables text return."
              },
              {
                "type": "object",
                "description": "Advanced text extraction options.",
                "properties": {
                  "maxCharacters": {
                    "type": "number",
                    "description": "Maximum characters for full page text (use to cap response size)."
                  },
                  "includeHtmlTags": {
                    "type": "boolean",
                    "description": "Include HTML tags in the returned text."
                  },
                  "verbosity": {
                    "type": "string",
                    "enum": [
                      "compact",
                      "standard",
                      "full"
                    ]
                  },
                  "includeSections": {
                    "type": "array",
                    "description": "Only include content from these sections.",
                    "items": {
                      "type": "string",
                      "enum": [
                        "header",
                        "navigation",
                        "banner",
                        "body",
                        "sidebar",
                        "footer",
                        "metadata"
                      ]
                    }
                  },
                  "excludeSections": {
                    "type": "array",
                    "description": "Exclude content from these sections.",
                    "items": {
                      "type": "string",
                      "enum": [
                        "header",
                        "navigation",
                        "banner",
                        "body",
                        "sidebar",
                        "footer",
                        "metadata"
                      ]
                    }
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "highlights": {
            "anyOf": [
              {
                "type": "boolean",
                "description": "If true, returns highlight snippets with default settings (short evidence excerpts)."
              },
              {
                "type": "object",
                "description": "Advanced highlight extraction options.",
                "properties": {
                  "numSentences": {
                    "type": "number",
                    "description": "Number of sentences per highlight snippet."
                  },
                  "highlightsPerUrl": {
                    "type": "number",
                    "description": "Number of highlight snippets per URL."
                  },
                  "query": {
                    "type": "string",
                    "description": "Custom query to guide highlight selection."
                  },
                  "maxCharacters": {
                    "type": "number",
                    "description": "Maximum characters returned for highlights."
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "summary": {
            "type": "object",
            "description": "LLM-generated summary of each page (structured output supported).",
            "properties": {
              "query": {
                "type": "string",
                "description": "Custom query for the summary."
              },
              "schema": {
                "type": "object",
                "description": "JSON Schema for structured summary output (validated).",
                "additionalProperties": {}
              }
            },
            "additionalProperties": false
          },
          "livecrawl": {
            "type": "string",
            "enum": [
              "never",
              "fallback",
              "preferred",
              "always"
            ]
          },
          "livecrawlTimeout": {
            "type": "number",
            "description": "Live crawl timeout in milliseconds."
          },
          "maxAgeHours": {
            "type": "number",
            "description": "Max age (hours) for cached content before live crawl."
          },
          "subpages": {
            "type": "number",
            "description": "Number of subpages to crawl from each result."
          },
          "subpageTarget": {
            "description": "Subpage keyword(s) to target.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "extras": {
            "type": "object",
            "description": "Extra content options.",
            "properties": {
              "links": {
                "type": "number",
                "description": "Number of links to return per result."
              },
              "imageLinks": {
                "type": "number",
                "description": "Number of image links to return per result."
              }
            },
            "additionalProperties": false
          },
          "context": {
            "anyOf": [
              {
                "type": "boolean",
                "description": "If true, returns a combined context string from results. Context strings often perform better than highlights for RAG."
              },
              {
                "type": "object",
                "description": "Context string options. When enabled, combines all result contents into a single string.",
                "properties": {
                  "maxCharacters": {
                    "type": "number",
                    "description": "Maximum characters for the combined context string. Exa recommends 10,000+ characters for best results."
                  }
                },
                "additionalProperties": false
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "context": {
        "anyOf": [
          {
            "type": "boolean",
            "description": "If true, returns a combined context string from results. Context strings often perform better than highlights for RAG."
          },
          {
            "type": "object",
            "description": "Context string options. When enabled, combines all result contents into a single string.",
            "properties": {
              "maxCharacters": {
                "type": "number",
                "description": "Maximum characters for the combined context string. Exa recommends 10,000+ characters for best results."
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "moderation": {
        "type": "boolean",
        "description": "Enable content moderation (may reduce recall)."
      }
    },
    "required": [
      "query"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Exa company search result.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.requestId` | `string` | No | — | — |
| `result.data.results` | `array` | No | — | — |
| `result.data.results[].id` | `string` | No | — | — |
| `result.data.results[].url` | `string` | No | — | — |
| `result.data.results[].title` | `string` | No | — | — |
| `result.data.results[].text` | `string` | No | — | — |
| `result.data.results[].publishedDate` | `string` | No | — | — |
| `result.data.results[].author` | `string \| unknown` | No | — | — |
| `result.data.results[].score` | `number` | No | — | — |
| `result.data.results[].highlights` | `array` | No | — | — |
| `result.data.results[].highlightScores` | `array` | No | — | — |
| `result.data.results[].summary` | `string \| record` | No | — | — |
| `result.data.results[].entities` | `array` | No | — | — |
| `result.data.results[].entities[].id` | `string` | No | — | — |
| `result.data.results[].entities[].type` | `"company" \| "person"` | No | — | Allowed: `company`, `person`. |
| `result.data.results[].entities[].version` | `number` | No | — | — |
| `result.data.results[].entities[].properties` | `record` | No | — | — |
| `result.data.results[].extras` | `record` | No | — | — |
| `result.data.context` | `string` | No | — | — |
| `result.meta` | `record` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Exa company search result.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "requestId": {
            "type": "string"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "publishedDate": {
                  "type": "string"
                },
                "author": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {}
                  ]
                },
                "score": {
                  "type": "number"
                },
                "highlights": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "highlightScores": {
                  "type": "array",
                  "items": {
                    "type": "number"
                  }
                },
                "summary": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                },
                "entities": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "company",
                          "person"
                        ]
                      },
                      "version": {
                        "type": "number"
                      },
                      "properties": {
                        "type": "object",
                        "additionalProperties": {}
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "extras": {
                  "type": "object",
                  "additionalProperties": {}
                }
              },
              "additionalProperties": false
            }
          },
          "context": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `per_result` (per result).
* Estimated Deepline credits: `0.1` per pricing unit.

## Related documentation

* [Exa provider guide](https://deepline.com/docs/providers/exa/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.