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

# Wizleads Scrape Salesnav: Inputs, Cost & CLI Example

> Scrape results from a supplied LinkedIn Sales Navigator profile or company-search URL when WizLeads is explicitly selected.

## 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=wizleads_scrape_salesnav:{"name":"{{name}}","type":"salesnav-company","inputs":{}}' --json
```

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

## Input Schema

| Name                          | Type                                       | Required | Default      | Description                                                                                                                                                               |
| ----------------------------- | ------------------------------------------ | -------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.name`                | `string`                                   | Yes      |              | A name for the task.                                                                                                                                                      |
| `payload.type`                | `"salesnav-company" \| "salesnav-profile"` | Yes      |              | Type of scraping task.                                                                                                                                                    |
| `payload.inputs`              | `object`                                   | Yes      |              | Input parameters for the task.                                                                                                                                            |
| `payload.account`             | `"salesnav"`                               | No       | `"salesnav"` | Account type to use for this task.                                                                                                                                        |
| `payload.wait_for_completion` | `boolean`                                  | No       | `true`       | When true or omitted, Deepline waits briefly for the Sales Navigator scrape task to finish and returns task detail if ready. Set false to return the task id immediately. |
| `payload.poll_interval_ms`    | `integer`                                  | No       | `5000`       | Polling interval used while wait\_for\_completion is true. Defaults to 5000 ms.                                                                                           |
| `payload.max_wait_ms`         | `integer`                                  | No       | `30000`      | Maximum time to wait for terminal Sales Navigator scrape results. Capped below the CLI read timeout so the task id is returned before the client times out.               |

### Allowed values

| Field             | Allowed values                         |
| ----------------- | -------------------------------------- |
| `payload.type`    | `salesnav-company`, `salesnav-profile` |
| `payload.account` | `salesnav`                             |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Create a new scraping task.",
    "properties": {
      "name": {
        "type": "string",
        "description": "A name for the task."
      },
      "type": {
        "type": "string",
        "description": "Type of scraping task.",
        "enum": [
          "salesnav-company",
          "salesnav-profile"
        ]
      },
      "inputs": {
        "type": "object",
        "description": "Input parameters for the task.",
        "properties": {
          "accounts": {
            "type": [
              "array",
              "null"
            ],
            "description": "List of account IDs to use. Set to null for automatic selection. Only available when useAccountless is false.",
            "default": null,
            "items": {
              "type": "string"
            }
          },
          "links": {
            "type": "array",
            "description": "List of Sales Navigator search URLs to scrape.",
            "items": {
              "type": "object",
              "properties": {
                "link": {
                  "type": "string",
                  "description": "A Sales Navigator search URL."
                },
                "end_page": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "default": null
                }
              },
              "required": [
                "link"
              ],
              "additionalProperties": false
            }
          },
          "useAccountless": {
            "type": "boolean",
            "description": "Whether to use Account-Less scraping mode.",
            "default": true
          },
          "enrichEmails": {
            "type": "boolean",
            "description": "Whether to enrich emails. Only available for task type \"salesnav-profile\".",
            "default": false
          }
        },
        "required": [
          "links"
        ],
        "additionalProperties": false
      },
      "account": {
        "type": "string",
        "description": "Account type to use for this task.",
        "default": "salesnav",
        "enum": [
          "salesnav"
        ]
      },
      "wait_for_completion": {
        "type": "boolean",
        "description": "When true or omitted, Deepline waits briefly for the Sales Navigator scrape task to finish and returns task detail if ready. Set false to return the task id immediately.",
        "default": true
      },
      "poll_interval_ms": {
        "type": "integer",
        "description": "Polling interval used while wait_for_completion is true. Defaults to 5000 ms.",
        "default": 5000,
        "minimum": 250,
        "maximum": 30000
      },
      "max_wait_ms": {
        "type": "integer",
        "description": "Maximum time to wait for terminal Sales Navigator scrape results. Capped below the CLI read timeout so the task id is returned before the client times out.",
        "default": 30000,
        "minimum": 1000,
        "maximum": 30000
      }
    },
    "required": [
      "name",
      "type",
      "inputs"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name                      | Type     | Required | Default | Description                                                                 |
| ------------------------- | -------- | -------- | ------- | --------------------------------------------------------------------------- |
| `result.task_id`          | `string` | Yes      |         | WizLeads task id. Use this with wizleads\_get\_task when status is running. |
| `result.id`               | `string` | No       |         | WizLeads task id from terminal task detail.                                 |
| `result.name`             | `string` | No       |         |                                                                             |
| `result.type`             | `string` | No       |         |                                                                             |
| `result.status`           | `string` | No       |         |                                                                             |
| `result.link`             | `string` | No       |         | Provider result file URL when the Sales Navigator scrape is done.           |
| `result.link_size`        | `number` | No       |         | Number of scraped rows reported by WizLeads task detail.                    |
| `result.launcher`         | `object` | No       |         | Raw launch response from the provider.                                      |
| `result.task`             | `object` | No       |         | Terminal task detail when the scrape finishes in time.                      |
| `result.latest_task`      | `object` | No       |         | Latest task detail observed before returning a running response.            |
| `result.async_get_action` | `string` | No       |         | Follow-up action to poll when the scrape is still running.                  |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "task_id": {
        "type": "string",
        "description": "WizLeads task id. Use this with wizleads_get_task when status is running."
      },
      "id": {
        "type": "string",
        "description": "WizLeads task id from terminal task detail."
      },
      "name": {
        "type": "string"
      },
      "type": {
        "type": "string"
      },
      "status": {
        "type": "string"
      },
      "link": {
        "type": "string",
        "description": "Provider result file URL when the Sales Navigator scrape is done."
      },
      "link_size": {
        "type": "number",
        "description": "Number of scraped rows reported by WizLeads task detail."
      },
      "launcher": {
        "type": "object",
        "description": "Raw launch response from the provider.",
        "additionalProperties": true
      },
      "task": {
        "type": "object",
        "description": "Terminal task detail when the scrape finishes in time.",
        "additionalProperties": true
      },
      "latest_task": {
        "type": [
          "object",
          "null"
        ],
        "description": "Latest task detail observed before returning a running response.",
        "additionalProperties": true
      },
      "async_get_action": {
        "type": "string",
        "description": "Follow-up action to poll when the scrape is still running."
      }
    },
    "required": [
      "task_id"
    ],
    "additionalProperties": true
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute wizleads_scrape_salesnav --payload '{
  "name": "string",
  "type": "salesnav-company",
  "inputs": {}
}' --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.                      |

## Cost

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