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

# DeepSeek: Search

> Search the web for a query and return a ranked list of structured results. Includes SDK V2 examples, input constraints, response fields, and Deepline cost.

Search the web for a query and return a ranked list of structured results.

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

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'deepseek_search',
  {
    "query": "software companies hiring engineers"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute deepseek_search --input '{
  "query": "software companies hiring engineers"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "results": [
      {
        "rerank_score": 3,
        "title": "VP of Engineering",
        "url": "https://example.com",
        "snippet": "example",
        "summary": "example",
        "content": "Example message",
        "site_name": "Example",
        "site_icon": "example",
        "date": "2026-01-15T12:00:00Z",
        "authority": 4
      }
    ]
  }
}
```

Use `deepline tools get deepseek_search --json` for the latest machine-readable contract.

## Input reference

Search the web for a query and return a ranked list of structured results. See the [Search & Fetch guide](/docs/guides/search) for supported query operators, error handling, and billing.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.query` | `string` | Yes | — | The search query. Supports operators such as `site:`, `-site:`, and quoted phrases. Must contain 1 to 128 Unicode characters and cannot be all whitespace. Minimum length: 1. Maximum length: 128. Pattern: `\S`. |
| `payload.count` | `integer` | No | `10` | The number of results to return, between 1 and 50. Defaults to 10. Minimum: 1. Maximum: 50. |
| `payload.ori_question` | `string` | No | — | The user's original question that triggered the search, between 1 and 128 characters. Providing it can improve query understanding. `null` is treated as not provided. Minimum length: 1. Maximum length: 128. |
| `payload.localization` | `string` | No | `""` | An optional IP address used to localize search results. Defaults to an empty string. |
| `payload.need_content` | `boolean` | No | `false` | Whether to return page content in `content`. Defaults to `false`; when `false`, `content` is always an empty string. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Search the web for a query and return a ranked list of structured results. See the [Search & Fetch guide](/guides/search) for supported query operators, error handling, and billing.",
    "properties": {
      "query": {
        "type": "string",
        "description": "The search query. Supports operators such as `site:`, `-site:`, and quoted phrases. Must contain 1 to 128 Unicode characters and cannot be all whitespace.",
        "minLength": 1,
        "maxLength": 128,
        "pattern": "\\S"
      },
      "count": {
        "type": "integer",
        "description": "The number of results to return, between 1 and 50. Defaults to 10.",
        "default": 10,
        "minimum": 1,
        "maximum": 50
      },
      "ori_question": {
        "type": [
          "string",
          "null"
        ],
        "description": "The user's original question that triggered the search, between 1 and 128 characters. Providing it can improve query understanding. `null` is treated as not provided.",
        "minLength": 1,
        "maxLength": 128
      },
      "localization": {
        "type": "string",
        "description": "An optional IP address used to localize search results. Defaults to an empty string.",
        "default": ""
      },
      "need_content": {
        "type": "boolean",
        "description": "Whether to return page content in `content`. Defaults to `false`; when `false`, `content` is always an empty string.",
        "default": false
      }
    },
    "required": [
      "query"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.results` | `array` | Yes | — | The search results. Empty when the query matches no results. |
| `result.data.results[].rerank_score` | `number` | Yes | — | A relevance score from 0 to 3 that combines signals such as relevance, authority, and freshness. Scores of 1.5 or above are considered high-quality results. Format: `float`. Minimum: 0. Maximum: 3. |
| `result.data.results[].title` | `string` | Yes | — | The title of the search result. |
| `result.data.results[].url` | `string` | Yes | — | The URL of the search result. |
| `result.data.results[].snippet` | `string` | Yes | — | A short summary related to the query, typically 100 to 200 characters, intended for display in a UI. |
| `result.data.results[].summary` | `string` | Yes | — | A long summary related to the query, typically 600 to 800 characters, intended to be read by a model. |
| `result.data.results[].content` | `string` | Yes | — | The page content. Empty when `need_content` is `false` or when the content is unavailable. |
| `result.data.results[].site_name` | `string \| null` | Yes | — | The name of the site, or `null` when unavailable. |
| `result.data.results[].site_icon` | `string \| null` | Yes | — | The URL of the site icon, or `null` when unavailable. |
| `result.data.results[].date` | `string \| null` | Yes | — | The publication time in UTC, formatted as RFC 3339, or `null` when unknown. Format: `date-time`. |
| `result.data.results[].authority` | `integer` | Yes | — | The authority tier of the page, 0 to 4 (`-1` means unknown). Values of 3 or above indicate highly authoritative sources. Minimum: -1. Maximum: 4. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "results": {
            "type": "array",
            "description": "The search results. Empty when the query matches no results.",
            "items": {
              "type": "object",
              "properties": {
                "rerank_score": {
                  "type": "number",
                  "description": "A relevance score from 0 to 3 that combines signals such as relevance, authority, and freshness. Scores of 1.5 or above are considered high-quality results.",
                  "minimum": 0,
                  "maximum": 3,
                  "format": "float"
                },
                "title": {
                  "type": "string",
                  "description": "The title of the search result."
                },
                "url": {
                  "type": "string",
                  "description": "The URL of the search result."
                },
                "snippet": {
                  "type": "string",
                  "description": "A short summary related to the query, typically 100 to 200 characters, intended for display in a UI."
                },
                "summary": {
                  "type": "string",
                  "description": "A long summary related to the query, typically 600 to 800 characters, intended to be read by a model."
                },
                "content": {
                  "type": "string",
                  "description": "The page content. Empty when `need_content` is `false` or when the content is unavailable."
                },
                "site_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The name of the site, or `null` when unavailable."
                },
                "site_icon": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The URL of the site icon, or `null` when unavailable."
                },
                "date": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The publication time in UTC, formatted as RFC 3339, or `null` when unknown.",
                  "format": "date-time"
                },
                "authority": {
                  "type": "integer",
                  "description": "The authority tier of the page, 0 to 4 (`-1` means unknown). Values of 3 or above indicate highly authoritative sources.",
                  "minimum": -1,
                  "maximum": 4
                }
              },
              "required": [
                "rerank_score",
                "title",
                "url",
                "snippet",
                "summary",
                "content",
                "site_name",
                "site_icon",
                "date",
                "authority"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "results"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

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

## Related documentation

* [DeepSeek provider guide](/docs/providers/deepseek/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)


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