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

> Search for company details using its domain, name, or profile URL. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Search for company details using its domain, name, or profile URL.

> [!NOTE]
>
> Tool ID: `leadmagic_company_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_company_search',
  {
    "company_domain": "example.com",
    "company_name": "Example Corp",
    "profile_url": "https://example.com"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute leadmagic_company_search --input '{
  "company_domain": "example.com",
  "company_name": "Example Corp",
  "profile_url": "https://example.com"
}' --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": {
    "company_name": "Example Corp",
    "company_id": 123,
    "locations": [
      {
        "country": "US",
        "city": "San Francisco",
        "geographic_area": "example"
      }
    ]
  }
}
```

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

## Input reference

Provide at least one of the following to find company details.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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 reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Detailed company information from company search |
| `result.data.company_name` | `string` | No | — | — |
| `result.data.company_id` | `integer` | No | — | — |
| `result.data.locations` | `array` | No | — | — |
| `result.data.locations[].country` | `string` | No | — | — |
| `result.data.locations[].city` | `string` | No | — | — |
| `result.data.locations[].geographic_area` | `string` | No | — | — |
| `result.data.locations[].postal_code` | `string` | No | — | — |
| `result.data.locations[].line1` | `string` | No | — | — |
| `result.data.locations[].line2` | `string \| null` | No | — | — |
| `result.data.locations[].description` | `string` | No | — | — |
| `result.data.locations[].headquarter` | `boolean` | No | — | — |
| `result.data.locations[].localized_name` | `string` | No | — | — |
| `result.data.locations[].latitude` | `number` | No | — | — |
| `result.data.locations[].longitude` | `number` | No | — | — |
| `result.data.employee_count` | `integer` | No | — | — |
| `result.data.specialities` | `array` | No | — | — |
| `result.data.employee_count_range` | `object` | No | — | — |
| `result.data.employee_count_range.start` | `integer` | No | — | — |
| `result.data.employee_count_range.end` | `integer` | No | — | — |
| `result.data.tagline` | `string` | No | — | — |
| `result.data.follower_count` | `integer` | No | — | — |
| `result.data.industry` | `string` | No | — | — |
| `result.data.description` | `string` | No | — | — |
| `result.data.website_url` | `string` | No | — | — |
| `result.data.founded_on` | `object` | No | — | — |
| `result.data.founded_on.month` | `integer \| null` | No | — | — |
| `result.data.founded_on.year` | `integer` | No | — | — |
| `result.data.founded_on.day` | `integer \| null` | No | — | — |
| `result.data.universal_name` | `string` | No | — | — |
| `result.data.hashtag` | `string` | No | — | — |
| `result.data.industry_v2_taxonomy` | `string` | No | — | — |
| `result.data.url` | `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": "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>

## Deepline cost

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

## Related documentation

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