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

# Parallel: Search

> Search the web for an objective or queries and get ranked pages with relevant excerpts, for repeated or large-scale lookups.

Search the web for an objective or queries and get ranked pages with relevant excerpts, for repeated or large-scale lookups.

> [!NOTE]
>
> Tool ID: `parallel_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(
  'parallel_search',
  {
    "mode": "one-shot",
    "objective": "Find recent fintech announcements and analyst reports.",
    "search_queries": [
      "software companies hiring engineers"
    ]
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute parallel_search --input '{
  "mode": "one-shot",
  "objective": "Find recent fintech announcements and analyst reports.",
  "search_queries": [
    "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": {
    "search_id": "search_123",
    "results": [
      {
        "url": "https://example.com"
      }
    ]
  }
}
```

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

## Input reference

Parallel search input. Requires objective or search\_queries.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.mode` | `"one-shot" \| "agentic"` | No | — | Allowed: `one-shot`, `agentic`. |
| `payload.objective` | `string` | No | — | Required unless search\_queries is provided. |
| `payload.search_queries` | `array` | No | — | Required unless objective is provided. |
| `payload.max_results` | `integer` | No | — | Minimum: 1. Maximum: 20. |
| `payload.excerpts` | `object` | No | — | Parallel excerpt settings. |
| `payload.source_policy` | `object` | No | — | Parallel source policy. |
| `payload.fetch_policy` | `object` | No | — | Parallel fetch policy. |
| `payload.betas` | `string \| array` | No | — | — |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Parallel search input. Requires objective or search_queries.",
    "properties": {
      "mode": {
        "type": "string",
        "enum": [
          "one-shot",
          "agentic"
        ]
      },
      "objective": {
        "type": "string",
        "description": "Required unless search_queries is provided."
      },
      "search_queries": {
        "type": "array",
        "description": "Required unless objective is provided.",
        "items": {
          "type": "string"
        }
      },
      "max_results": {
        "type": "integer",
        "minimum": 1,
        "maximum": 20
      },
      "excerpts": {
        "type": "object",
        "description": "Parallel excerpt settings.",
        "properties": {
          "max_chars_per_result": {
            "type": "number"
          },
          "max_chars_total": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "source_policy": {
        "type": "object",
        "description": "Parallel source policy.",
        "properties": {
          "include_domains": {
            "type": "array",
            "description": "Optional allowlist of domains. Combined include_domains + exclude_domains must not exceed 10 total domains.",
            "items": {
              "type": "string"
            }
          },
          "exclude_domains": {
            "type": "array",
            "description": "Optional denylist of domains. Combined include_domains + exclude_domains must not exceed 10 total domains.",
            "items": {
              "type": "string"
            }
          },
          "after_date": {
            "type": "string",
            "description": "Optional RFC 3339 date string (YYYY-MM-DD) for freshness filtering."
          }
        },
        "additionalProperties": false
      },
      "fetch_policy": {
        "type": "object",
        "description": "Parallel fetch policy.",
        "properties": {
          "max_age_seconds": {
            "type": "number"
          },
          "timeout_seconds": {
            "type": "number"
          },
          "disable_cache_fallback": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "betas": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ]
      }
    },
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Parallel search result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.search_id` | `string` | Yes | — | — |
| `result.data.results` | `array` | Yes | — | — |
| `result.data.results[].url` | `string` | Yes | — | — |
| `result.data.results[].title` | `string \| null` | No | — | — |
| `result.data.results[].publish_date` | `string \| null` | No | — | — |
| `result.data.results[].excerpts` | `array \| null` | No | — | — |
| `result.data.warnings` | `array \| null` | No | — | — |
| `result.data.warnings[].type` | `string` | Yes | — | — |
| `result.data.warnings[].message` | `string` | Yes | — | — |
| `result.data.warnings[].detail` | `object \| null` | No | — | — |
| `result.data.session_id` | `string \| null` | 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": "Parallel search result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "search_id": {
            "type": "string"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "publish_date": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "excerpts": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false
            }
          },
          "warnings": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                },
                "detail": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": {}
                }
              },
              "required": [
                "type",
                "message"
              ],
              "additionalProperties": false
            }
          },
          "session_id": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "search_id",
          "results"
        ],
        "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.02` per pricing unit.

## Related documentation

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