> ## 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: Inputs, Cost & CLI Example

> Search for hard to find signals. Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=parallel_search:{"objective":"Find recent fintech announcements and analyst reports."}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                     | Type                      | Required | Default | Description                                  |
| ------------------------ | ------------------------- | -------- | ------- | -------------------------------------------- |
| `payload.mode`           | `"one-shot" \| "agentic"` | No       |         |                                              |
| `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       |         |                                              |
| `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       |         |                                              |

### Allowed values

| Field          | Allowed values        |
| -------------- | --------------------- |
| `payload.mode` | `one-shot`, `agentic` |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "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 Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `result.meta` | `record` | No       |         | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "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>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute parallel_search --payload '{
  "objective": "Find recent fintech announcements and analyst reports."
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Provider API Context

<details>
  <summary>Show provider reference (optional)</summary>

  ```md theme={null}
  > Searches the web.

  The legacy Search API reference (`/v1beta/search` endpoint) is available
  [here](https://docs.parallel.ai/api-reference/legacy/search-beta/search), and
  migration guide is [here](https://docs.parallel.ai/search/search-migration-guide).

  ## 23. Add Runs to Task Group

  Source: https://docs.parallel.ai/api-reference/tasks/add-runs-to-task-group.md
  ```
</details>

## Cost

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