> ## 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: Inputs, Cost & CLI Example

> Provide a B2B profile URL (for example, a professional social profile) to get full profile details. Rate limit: 300 requests/minute.

## 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=leadmagic_profile_search:{"profile_url":"{{profile_url}}"}' --json
```

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

## Input Schema

| Name                  | Type     | Required | Default | Description                  |
| --------------------- | -------- | -------- | ------- | ---------------------------- |
| `payload.profile_url` | `string` | Yes      |         | Full URL of the B2B profile. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Provide a B2B profile URL (for example, a professional social profile) to get full profile details. Rate limit: 300 requests/minute.",
    "properties": {
      "profile_url": {
        "type": "string",
        "description": "Full URL of the B2B profile."
      }
    },
    "required": [
      "profile_url"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Personal profile information                   |
| `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": "Personal profile information",
        "properties": {
          "profile_url": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "full_name": {
            "type": "string"
          },
          "public_identifier": {
            "type": "string"
          },
          "headline": {
            "type": "string"
          },
          "company_name": {
            "type": "string"
          },
          "company_size": {
            "type": "string"
          },
          "company_industry": {
            "type": "string"
          },
          "company_linkedin_url": {
            "type": "string"
          },
          "company_website": {
            "type": "string"
          },
          "total_tenure_months": {
            "type": "string"
          },
          "total_tenure_days": {
            "type": "string"
          },
          "total_tenure_years": {
            "type": "string"
          },
          "connections": {
            "type": "integer"
          },
          "followers": {
            "type": "integer"
          },
          "country": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "about": {
            "type": "string"
          },
          "experiences": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "company_id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "subtitle": {
                  "type": "string"
                },
                "caption": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "educations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string"
                },
                "caption": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute leadmagic_profile_search --payload '{
  "profile_url": "string"
}' --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.34` per pricing unit.
* Billing mode: `post_deduct`.
