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

# CrustData V3: Company Search Autocomplete

> Suggest exact values for company search fields such as industry, funding stage, location, and investor before filtering.

Suggest exact values for company search fields such as industry, funding stage, location, and investor before filtering.

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

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

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute crustdata_v3_company_search_autocomplete --input '{
  "field": "email",
  "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": {
    "suggestions": [
      {
        "value": "example"
      }
    ]
  }
}
```

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

## Input reference

Request body for autocomplete suggestions on company search fields.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.field` | `string` | Yes | — | The dataset API field name to get suggestions for. Valid fields include: basic\_info.name, basic\_info.primary\_domain, basic\_info.website, basic\_info.professional\_network\_url, basic\_info.professional\_network\_id, basic\_info.company\_type, basic\_info.year\_founded, basic\_info.employee\_count\_range, basic\_info.markets, basic\_info.industries, revenue.estimated.lower\_bound\_usd, revenue.estimated.upper\_bound\_usd, revenue.acquisition\_status, funding.total\_investment\_usd, funding.last\_round\_type, See the live schema for the complete constraint. |
| `payload.query` | `string` | Yes | — | The search query text (can be empty to get top values by frequency) |
| `payload.limit` | `integer` | No | `20` | Maximum number of suggestions to return Minimum: 1. Maximum: 100. |
| `payload.filters` | `object \| null` | No | — | Optional filters to narrow down suggestions |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Request body for autocomplete suggestions on company search fields.",
    "properties": {
      "field": {
        "type": "string",
        "description": "The dataset API field name to get suggestions for. Valid fields include: basic_info.name, basic_info.primary_domain, basic_info.website, basic_info.professional_network_url, basic_info.professional_network_id, basic_info.company_type, basic_info.year_founded, basic_info.employee_count_range, basic_info.markets, basic_info.industries, revenue.estimated.lower_bound_usd, revenue.estimated.upper_bound_usd, revenue.acquisition_status, funding.total_investment_usd, funding.last_round_type, funding.last_fundraise_date, funding.investors, funding.tracxn_investors, headcount.latest_count, headcount.largest_headcount_country, locations.country, taxonomy.professional_network_industry, taxonomy.professional_network_specialities, taxonomy.categories, followers.latest_count, social_profiles.crunchbase.url, social_profiles.twitter_url, revenue.public_markets.stock_symbols, revenue.public_markets.fiscal_year_end"
      },
      "query": {
        "type": "string",
        "description": "The search query text (can be empty to get top values by frequency)"
      },
      "limit": {
        "type": "integer",
        "description": "Maximum number of suggestions to return",
        "default": 20,
        "minimum": 1,
        "maximum": 100
      },
      "filters": {
        "description": "Optional filters to narrow down suggestions",
        "anyOf": [
          {
            "type": "object",
            "description": "A single filter condition to narrow down autocomplete suggestions.",
            "properties": {
              "field": {
                "type": "string",
                "description": "The dataset API field name to filter on"
              },
              "type": {
                "type": "string",
                "enum": [
                  "=",
                  "!=",
                  "<",
                  "=<",
                  ">",
                  "=>",
                  "in",
                  "not_in",
                  "contains"
                ]
              },
              "value": {
                "description": "The filter value or list of values",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "integer"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "integer"
                        }
                      ]
                    }
                  }
                ]
              }
            },
            "required": [
              "field",
              "type",
              "value"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "description": "A group of autocomplete filter conditions combined with and/or logic.",
            "properties": {
              "op": {
                "type": "string",
                "enum": [
                  "and",
                  "or"
                ]
              },
              "conditions": {
                "type": "array",
                "minItems": 1,
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "description": "A single filter condition to narrow down autocomplete suggestions.",
                      "properties": {
                        "field": {
                          "type": "string",
                          "description": "The dataset API field name to filter on"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "=",
                            "!=",
                            "<",
                            "=<",
                            ">",
                            "=>",
                            "in",
                            "not_in",
                            "contains"
                          ]
                        },
                        "value": {
                          "description": "The filter value or list of values",
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "integer"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "integer"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "description": "Recursive OpenAPI schema reference #/components/schemas/company_AutocompleteFilterConditionGroup.",
                      "additionalProperties": true
                    }
                  ]
                }
              }
            },
            "required": [
              "op",
              "conditions"
            ],
            "additionalProperties": false
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "field",
      "query"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Response with autocomplete suggestions for a company search field. |
| `result.data.suggestions` | `array` | Yes | — | — |
| `result.data.suggestions[].value` | `string` | Yes | — | The suggested field value |
| `result.meta` | `object` | 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": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Response with autocomplete suggestions for a company search field.",
        "properties": {
          "suggestions": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "A single autocomplete suggestion for a company search field value.",
              "properties": {
                "value": {
                  "type": "string",
                  "description": "The suggested field value"
                }
              },
              "required": [
                "value"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "suggestions"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [CrustData V3 provider guide](https://deepline.com/docs/providers/crustdata-v3/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.