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

# GetLeads: Enrich From Linkedin

> Enrich one or more LinkedIn profile URLs with GetLeads contact details. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Enrich one or more LinkedIn profile URLs with GetLeads contact details.

<Info>
  Tool ID: `getleads_enrich_from_linkedin`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'getleads_enrich_from_linkedin',
  {
    "items": [
      {
        "linkedin_url": "https://example.com/resource"
      }
    ]
  },
);

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

### CLI

```bash theme={null}
deepline tools execute getleads_enrich_from_linkedin --input '{
  "items": [
    {
      "linkedin_url": "https://example.com/resource"
    }
  ]
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "ok": true,
    "message": "Example message",
    "code": "example"
  }
}
```

Use `deepline tools get getleads_enrich_from_linkedin --json` for the latest machine-readable contract.

## Input reference

Look up contact details (email, company, etc.) from LinkedIn profile URLs. 1 credit per successful enrichment.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.items` | `array` | Yes | — | — |
| `payload.limit_per_item` | `integer` | No | `1` | Maximum: 10. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Look up contact details (email, company, etc.) from LinkedIn profile URLs. 1 credit per successful enrichment.",
    "properties": {
      "items": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "linkedin_url": {
              "type": "string",
              "format": "uri"
            }
          },
          "required": [
            "linkedin_url"
          ],
          "additionalProperties": false
        }
      },
      "limit_per_item": {
        "type": "integer",
        "default": 1,
        "maximum": 10
      }
    },
    "required": [
      "items"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.ok` | `boolean` | No | — | — |
| `result.data.message` | `string` | No | — | — |
| `result.data.code` | `string` | No | — | — |
| `result.data.results` | `array` | No | — | — |
| `result.data.results[].success` | `boolean` | No | — | — |
| `result.data.results[].data` | `record` | No | — | Full enrichment data (varies by upstream). |
| `result.data.results[].skipped_reason` | `string` | No | — | — |
| `result.data.results[].linkedinUrl` | `string` | No | — | — |
| `result.data.results[].email` | `string` | No | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean"
                },
                "data": {
                  "type": "object",
                  "description": "Full enrichment data (varies by upstream).",
                  "additionalProperties": true
                },
                "skipped_reason": {
                  "type": "string"
                },
                "linkedinUrl": {
                  "type": "string"
                },
                "email": {
                  "type": "string"
                }
              },
              "required": [],
              "additionalProperties": false
            }
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `provider_usage` (provider usage).
* Estimated Deepline credits: `1.75` per pricing unit.

## Related documentation

* [GetLeads provider guide](/docs/providers/getleads/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.