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

> Scrape results from a LinkedIn Sales Navigator profile or company-search URL you supply. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Scrape results from a LinkedIn Sales Navigator profile or company-search URL you supply.

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

## 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(
  'wizleads_scrape_salesnav',
  {
    "name": "Example",
    "type": "salesnav-company",
    "inputs": {
      "links": [
        {
          "link": "example"
        }
      ]
    }
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute wizleads_scrape_salesnav --input '{
  "name": "Example",
  "type": "salesnav-company",
  "inputs": {
    "links": [
      {
        "link": "example"
      }
    ]
  }
}' --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"]}}
{
  "task_id": "task_123"
}
```

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

## Input reference

Create a new scraping task.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.name` | `string` | Yes | — | A name for the task. |
| `payload.type` | `"salesnav-company" \| "salesnav-profile"` | Yes | — | Type of scraping task. Allowed: `salesnav-company`, `salesnav-profile`. |
| `payload.inputs` | `object` | Yes | — | Input parameters for the task. |
| `payload.account` | `"salesnav"` | No | `"salesnav"` | Account type to use for this task. Allowed: `salesnav`. |
| `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. Minimum: 250. Maximum: 30000. |
| `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. Minimum: 1000. Maximum: 30000. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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 reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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>

## Deepline cost

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

## Related documentation

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