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

> Search for company details using its domain, name, or profile URL. Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## 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_company_search:{"company_domain":"example.com"}' --json
```

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

## Input Schema

| Name                     | Type     | Required | Default | Description                       |
| ------------------------ | -------- | -------- | ------- | --------------------------------- |
| `payload.company_domain` | `string` | No       |         |                                   |
| `payload.company_name`   | `string` | No       |         |                                   |
| `payload.profile_url`    | `string` | No       |         |                                   |
| `payload.domain`         | `string` | No       |         | Legacy alias for company\_domain. |
| `payload.name`           | `string` | No       |         | Legacy alias for company\_name.   |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Provide at least one of the following to find company details.",
    "properties": {
      "company_domain": {
        "type": "string"
      },
      "company_name": {
        "type": "string"
      },
      "profile_url": {
        "type": "string"
      },
      "domain": {
        "type": "string",
        "description": "Legacy alias for company_domain."
      },
      "name": {
        "type": "string",
        "description": "Legacy alias for company_name."
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                      |
| ------------- | -------- | -------- | ------- | ------------------------------------------------ |
| `result.data` | `object` | Yes      |         | Detailed company information from company search |
| `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": "Detailed company information from company search",
        "properties": {
          "company_name": {
            "type": "string"
          },
          "company_id": {
            "type": "integer"
          },
          "locations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "country": {
                  "type": "string"
                },
                "city": {
                  "type": "string"
                },
                "geographic_area": {
                  "type": "string"
                },
                "postal_code": {
                  "type": "string"
                },
                "line1": {
                  "type": "string"
                },
                "line2": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": "string"
                },
                "headquarter": {
                  "type": "boolean"
                },
                "localized_name": {
                  "type": "string"
                },
                "latitude": {
                  "type": "number"
                },
                "longitude": {
                  "type": "number"
                }
              },
              "additionalProperties": false
            }
          },
          "employee_count": {
            "type": "integer"
          },
          "specialities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "employee_count_range": {
            "type": "object",
            "properties": {
              "start": {
                "type": "integer"
              },
              "end": {
                "type": "integer"
              }
            },
            "additionalProperties": false
          },
          "tagline": {
            "type": "string"
          },
          "follower_count": {
            "type": "integer"
          },
          "industry": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "website_url": {
            "type": "string"
          },
          "founded_on": {
            "type": "object",
            "properties": {
              "month": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "year": {
                "type": "integer"
              },
              "day": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          },
          "universal_name": {
            "type": "string"
          },
          "hashtag": {
            "type": "string"
          },
          "industry_v2_taxonomy": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "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_company_search --payload '{
  "company_domain": "example.com"
}' --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`.
