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

> Extracting structured data from web pages via Parallel. 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_extract:{"urls":"{{urls}}"}' --json
```

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

## Input Schema

| Name                     | Type                | Required | Default | Description                                 |
| ------------------------ | ------------------- | -------- | ------- | ------------------------------------------- |
| `payload.urls`           | `array`             | Yes      |         | Required. List of URLs to extract (max 10). |
| `payload.objective`      | `string`            | No       |         |                                             |
| `payload.search_queries` | `array`             | No       |         |                                             |
| `payload.fetch_policy`   | `object`            | No       |         | Parallel fetch policy.                      |
| `payload.excerpts`       | `boolean \| object` | No       |         |                                             |
| `payload.full_content`   | `boolean \| object` | No       |         |                                             |
| `payload.betas`          | `string \| array`   | No       |         |                                             |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Parallel extract input.",
    "properties": {
      "urls": {
        "type": "array",
        "description": "Required. List of URLs to extract (max 10).",
        "minItems": 1,
        "items": {
          "type": "string"
        }
      },
      "objective": {
        "type": "string"
      },
      "search_queries": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "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
      },
      "excerpts": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "object",
            "description": "Parallel excerpt settings.",
            "properties": {
              "max_chars_per_result": {
                "type": "number"
              },
              "max_chars_total": {
                "type": "number"
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "full_content": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "object",
            "description": "Parallel full content settings.",
            "properties": {
              "max_chars_per_result": {
                "type": "number"
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "betas": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ]
      }
    },
    "required": [
      "urls"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `record` | 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 result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "additionalProperties": {}
      },
      "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_extract --payload '{
  "urls": "array"
}' --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}
  > Extracts relevant content from specific web URLs.

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

  ## 03. Add Enrichment to FindAll Run

  Source: https://docs.parallel.ai/api-reference/findall/add-enrichment-to-findall-run.md
  ```
</details>

## Cost

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