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

# LeadMagic: Profile Search

> Retrieve comprehensive B2B person profile information including work history, education, certifications, and more. Includes SDK V2 examples, schemas, and cost.

Retrieve comprehensive B2B person profile information including work history, education, certifications, and more.

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

## 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(
  'leadmagic_profile_search',
  {
    "profile_url": "https://example.com"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run leadmagic_profile_search --input '{
  "profile_url": "https://example.com"
}'
```

## 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": {
    "profile_url": "https://example.com",
    "first_name": "Jane",
    "last_name": "Doe"
  }
}
```

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

## Input reference

Retrieve comprehensive B2B person profile information including work history, education, certifications, and more.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.profile_url` | `string` | Yes | — | B2B person profile URL or slug |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Retrieve comprehensive B2B person profile information including work history, education, certifications, and more.",
    "properties": {
      "profile_url": {
        "type": "string",
        "description": "B2B person profile URL or slug"
      }
    },
    "required": [
      "profile_url"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.profile_url` | `string` | No | — | — |
| `result.data.first_name` | `string \| null` | No | — | — |
| `result.data.last_name` | `string \| null` | No | — | — |
| `result.data.full_name` | `string \| null` | No | — | — |
| `result.data.professional_title` | `string \| null` | No | — | — |
| `result.data.bio` | `string \| null` | No | — | — |
| `result.data.company_name` | `string \| null` | No | — | — |
| `result.data.company_industry` | `string \| null` | No | — | — |
| `result.data.company_website` | `string \| null` | No | — | — |
| `result.data.total_tenure_months` | `string \| null` | No | — | — |
| `result.data.total_tenure_days` | `string \| null` | No | — | — |
| `result.data.total_tenure_years` | `string \| null` | No | — | — |
| `result.data.followers_range` | `string \| null` | No | — | Follower count range for privacy (e.g. "45K-50K", "1M+") |
| `result.data.personal_website` | `object \| null` | No | — | — |
| `result.data.personal_website.name` | `string` | No | — | — |
| `result.data.personal_website.link` | `string` | No | — | — |
| `result.data.country` | `string \| null` | No | — | — |
| `result.data.location` | `string \| null` | No | — | — |
| `result.data.work_experience` | `array \| null` | No | — | — |
| `result.data.work_experience[].position_title` | `string` | No | — | — |
| `result.data.work_experience[].company_name` | `string` | No | — | — |
| `result.data.work_experience[].employment_period` | `string` | No | — | — |
| `result.data.work_experience[].company_website` | `string \| null` | No | — | Only included when domain is available |
| `result.data.work_experience[].company_logo_url` | `string \| null` | No | — | Only included when domain is available |
| `result.data.education` | `array \| null` | No | — | — |
| `result.data.education[].institution_name` | `string` | No | — | — |
| `result.data.education[].degree` | `string` | No | — | — |
| `result.data.education[].attendance_period` | `string` | No | — | — |
| `result.data.certifications` | `array \| null` | No | — | — |
| `result.data.certifications[].certification_name` | `string` | No | — | — |
| `result.data.certifications[].issuing_organization` | `string` | No | — | — |
| `result.data.certifications[].issue_date` | `string` | No | — | — |
| `result.data.honors` | `array \| null` | No | — | — |
| `result.data.honors[].title` | `string` | No | — | — |
| `result.data.honors[].description` | `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": {
          "profile_url": {
            "type": "string"
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "full_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "professional_title": {
            "type": [
              "string",
              "null"
            ]
          },
          "bio": {
            "type": [
              "string",
              "null"
            ]
          },
          "company_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "company_industry": {
            "type": [
              "string",
              "null"
            ]
          },
          "company_website": {
            "type": [
              "string",
              "null"
            ]
          },
          "total_tenure_months": {
            "type": [
              "string",
              "null"
            ]
          },
          "total_tenure_days": {
            "type": [
              "string",
              "null"
            ]
          },
          "total_tenure_years": {
            "type": [
              "string",
              "null"
            ]
          },
          "followers_range": {
            "type": [
              "string",
              "null"
            ],
            "description": "Follower count range for privacy (e.g. \"45K-50K\", \"1M+\")"
          },
          "personal_website": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "link": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "country": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "work_experience": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "position_title": {
                  "type": "string"
                },
                "company_name": {
                  "type": "string"
                },
                "employment_period": {
                  "type": "string"
                },
                "company_website": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Only included when domain is available"
                },
                "company_logo_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Only included when domain is available"
                }
              },
              "additionalProperties": false
            }
          },
          "education": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "institution_name": {
                  "type": "string"
                },
                "degree": {
                  "type": "string"
                },
                "attendance_period": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "certifications": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "certification_name": {
                  "type": "string"
                },
                "issuing_organization": {
                  "type": "string"
                },
                "issue_date": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "honors": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "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.34` per pricing unit.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.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.