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

# Edges.run: Edges Salesnavigator Search Metrics

> Count a company's Sales Navigator leads matching filters, including new, recently active and past-colleague leads. Includes SDK V2 examples, schemas, and cost.

Count a company's Sales Navigator leads matching filters, including new, recently active and past-colleague leads.

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

## 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(
  'edges_salesnavigator_search_metrics',
  {
    "input": {
      "sales_navigator_company_id": "123"
    }
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute edges_salesnavigator_search_metrics --input '{
  "input": {
    "sales_navigator_company_id": "123"
  }
}' --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": {
    "sales_navigator_company_url": "https://example.com/resource",
    "company_name": "Example Corp",
    "sales_navigator_company_id": 123
  }
}
```

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

## Input reference

Run salesnavigator-search-metrics action live

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.parameters` | `object` | No | `&#123;&#125;` | — |
| `payload.input` | `object` | Yes | — | — |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Run salesnavigator-search-metrics action live",
    "properties": {
      "parameters": {
        "type": "object",
        "default": {},
        "properties": {
          "geo": {
            "type": "string",
            "description": "Filter employees by geography. Sales Navigator/LinkedIn numbers describing the location you want to search people in. For example 'Paris, Ile-de-France' is 101240143, 'Greater Lyon Area' is 90009674 and 'France' is 105015875. To cumulate several location, you must seprate each location with a comma.",
            "default": ""
          },
          "geography_excluded": {
            "type": "array",
            "description": "Filter by locations (e.g. United States).",
            "default": [],
            "items": {
              "type": "number"
            }
          },
          "function": {
            "type": "string",
            "description": "Filter employees by function using Sales Navigator numbers that describe the department you want to search people in. For example, 'Sales' is represented by 25, and 'Business Development' by 4. To select multiple functions, separate each number with a comma without spaces.",
            "default": ""
          },
          "function_excluded": {
            "type": "array",
            "description": "Filter employees by function using Sales Navigator numbers that describe the department you want to search people in. For example, 'Sales' is represented by 25, and 'Business Development' by 4. To select multiple functions, separate each number with a comma without spaces.",
            "default": [],
            "items": {
              "type": "number",
              "enum": [
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                17,
                18,
                19,
                20,
                21,
                22,
                23,
                24,
                25,
                26
              ]
            }
          },
          "seniority": {
            "type": "array",
            "description": "Filter employees by their seniority level.",
            "default": [],
            "items": {
              "type": "string",
              "enum": [
                "owner",
                "partner",
                "cxo",
                "vp",
                "director",
                "manager",
                "senior",
                "entry_manager",
                "entry",
                "training"
              ]
            }
          },
          "seniority_level_excluded": {
            "type": "array",
            "description": "Filter employees by their seniority level.",
            "default": [],
            "items": {
              "type": "string",
              "enum": [
                "owner",
                "partner",
                "cxo",
                "vp",
                "director",
                "manager",
                "senior",
                "entry_manager",
                "entry",
                "training"
              ]
            }
          },
          "employees_title": {
            "type": "string",
            "description": "Add a title to the employees search.",
            "default": ""
          },
          "current_job_title_excluded": {
            "type": "array",
            "description": "Filter employees by title.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "exclude_saved_leads": {
            "type": "boolean",
            "description": "Remove saved leads from search.",
            "default": false
          },
          "exclude_crm_contacts": {
            "type": "boolean",
            "description": "Remove CRM contacts from search.",
            "default": false
          },
          "exclude_viewed_leads": {
            "type": "boolean",
            "description": "Remove viewed Leads from search.",
            "default": false
          },
          "keywords": {
            "type": "string",
            "description": "Add keywords to the employees search.",
            "default": ""
          }
        },
        "additionalProperties": false
      },
      "input": {
        "type": "object",
        "properties": {
          "custom_data": {
            "type": "object",
            "description": "Custom data (ex-metadata)",
            "additionalProperties": true
          },
          "sales_navigator_company_id": {
            "type": "string",
            "pattern": "^\\d+$"
          },
          "sales_navigator_profile_search_url": {
            "type": "string",
            "description": "A Sales Navigator Company Search URL should start with 'https://www.linkedin.com/sales/search/people'",
            "pattern": "^https:\\/\\/(?:(www|[a-z]{2})\\.)?linkedin\\.com\\/sales\\/search\\/people.+",
            "format": "uri"
          }
        },
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "sales_navigator_company_id": {
                "type": "string",
                "pattern": "^\\d+$"
              }
            },
            "required": [
              "sales_navigator_company_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "sales_navigator_profile_search_url": {
                "type": "string",
                "description": "A Sales Navigator Company Search URL should start with 'https://www.linkedin.com/sales/search/people'",
                "pattern": "^https:\\/\\/(?:(www|[a-z]{2})\\.)?linkedin\\.com\\/sales\\/search\\/people.+",
                "format": "uri"
              }
            },
            "required": [
              "sales_navigator_profile_search_url"
            ],
            "additionalProperties": false
          }
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "input"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.sales_navigator_company_url` | `string` | No | — | Format: `uri`. |
| `result.data.company_name` | `string` | No | — | — |
| `result.data.sales_navigator_company_id` | `integer` | No | — | — |
| `result.data.linkedin_company_url` | `string` | No | — | Format: `uri`. |
| `result.data.total_leads` | `integer` | No | — | — |
| `result.data.new_leads` | `string` | No | — | — |
| `result.data.leads_posted_recently` | `string` | No | — | — |
| `result.data.leads_mentioned_in_news` | `string` | No | — | — |
| `result.data.leads_with_common_experience` | `string` | No | — | — |
| `result.data.leads_following_your_company` | `string` | No | — | — |
| `result.data.leads_past_colleague` | `string` | No | — | — |
| `result.data.leads_teamlink_your_executives` | `string` | No | — | — |
| `result.data.leads_viewed_profile_recently` | `string` | No | — | — |
| `result.meta` | `object` | 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": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "sales_navigator_company_url": {
            "type": "string",
            "format": "uri"
          },
          "company_name": {
            "type": "string"
          },
          "sales_navigator_company_id": {
            "type": "integer"
          },
          "linkedin_company_url": {
            "type": "string",
            "format": "uri"
          },
          "total_leads": {
            "type": "integer"
          },
          "new_leads": {
            "type": "string"
          },
          "leads_posted_recently": {
            "type": "string"
          },
          "leads_mentioned_in_news": {
            "type": "string"
          },
          "leads_with_common_experience": {
            "type": "string"
          },
          "leads_following_your_company": {
            "type": "string"
          },
          "leads_past_colleague": {
            "type": "string"
          },
          "leads_teamlink_your_executives": {
            "type": "string"
          },
          "leads_viewed_profile_recently": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

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

## Related documentation

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