> ## 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 companies and retrieve comprehensive company intelligence including funding, employees, industry, and more. LeadMagic Company Search reference.

Search for companies and retrieve comprehensive company intelligence including funding, employees, industry, and more.

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

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run leadmagic_company_search --input '{
  "profile_url": "https://example.com",
  "company_domain": "example.com",
  "company_name": "Example Corp"
}'
```

## 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": {
    "message": "Example message",
    "companyName": "Example Corp",
    "companyId": 123
  }
}
```

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

## Input reference

Search for companies and retrieve comprehensive company intelligence including funding, employees, industry, and more.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.profile_url` | `string` | No | — | Business company profile URL or identifier |
| `payload.company_domain` | `string` | No | — | Provide Company Domain |
| `payload.company_name` | `string` | No | — | Provide Company Name |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Search for companies and retrieve comprehensive company intelligence including funding, employees, industry, and more.",
    "properties": {
      "profile_url": {
        "type": "string",
        "description": "Business company profile URL or identifier"
      },
      "company_domain": {
        "type": "string",
        "description": "Provide Company Domain"
      },
      "company_name": {
        "type": "string",
        "description": "Provide Company Name"
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.message` | `string` | No | — | Status message |
| `result.data.companyName` | `string` | No | — | — |
| `result.data.companyId` | `integer` | No | — | — |
| `result.data.locations` | `array` | No | — | — |
| `result.data.locations[].country` | `string` | No | — | — |
| `result.data.locations[].city` | `string` | No | — | — |
| `result.data.locations[].geographicArea` | `string` | No | — | — |
| `result.data.locations[].postalCode` | `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[].localizedName` | `string` | No | — | — |
| `result.data.locations[].latitude` | `number` | No | — | — |
| `result.data.locations[].longitude` | `number` | No | — | — |
| `result.data.employeeCount` | `integer` | No | — | — |
| `result.data.specialities` | `array` | No | — | — |
| `result.data.employeeCountRange` | `object` | No | — | — |
| `result.data.employeeCountRange.start` | `integer` | No | — | — |
| `result.data.employeeCountRange.end` | `integer` | No | — | — |
| `result.data.tagline` | `string` | No | — | — |
| `result.data.followerCount` | `integer` | No | — | — |
| `result.data.industry` | `string` | No | — | — |
| `result.data.description` | `string` | No | — | — |
| `result.data.websiteUrl` | `string` | No | — | — |
| `result.data.headquarter` | `object` | No | — | — |
| `result.data.headquarter.country` | `string` | No | — | — |
| `result.data.headquarter.city` | `string` | No | — | — |
| `result.data.headquarter.geographicArea` | `string` | No | — | — |
| `result.data.headquarter.postalCode` | `string` | No | — | — |
| `result.data.headquarter.line1` | `string` | No | — | — |
| `result.data.headquarter.line2` | `string \| null` | No | — | — |
| `result.data.headquarter.description` | `string` | No | — | — |
| `result.data.foundedOn` | `object` | No | — | — |
| `result.data.foundedOn.month` | `integer \| null` | No | — | — |
| `result.data.foundedOn.year` | `integer` | No | — | — |
| `result.data.foundedOn.day` | `integer \| null` | No | — | — |
| `result.data.universalName` | `string` | No | — | — |
| `result.data.hashtag` | `string` | No | — | — |
| `result.data.url` | `string` | No | — | — |
| `result.data.logo_url` | `string \| null` | No | — | Company logo URL from logo.leadmagic.io (generated from company domain) |
| `result.data.founded_year` | `string \| null` | No | — | Year the company was founded |
| `result.data.ownership_status` | `string \| null` | No | — | Ownership type (Public, Private, or Acquired) |
| `result.data.revenue` | `number \| null` | No | — | Estimated annual revenue |
| `result.data.revenue_formatted` | `string \| null` | No | — | Human-readable revenue format |
| `result.data.employee_range` | `string \| null` | No | — | Employee count range |
| `result.data.total_funding` | `string \| null` | No | — | Total funding raised |
| `result.data.funding_rounds` | `integer \| null` | No | — | Number of funding rounds completed |
| `result.data.last_funding_round` | `string \| null` | No | — | Type of most recent funding round |

The table shows the first 50 fields. Expand the raw schema below for every field.

<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": {
          "message": {
            "type": "string",
            "description": "Status message"
          },
          "companyName": {
            "type": "string"
          },
          "companyId": {
            "type": "integer"
          },
          "locations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "country": {
                  "type": "string"
                },
                "city": {
                  "type": "string"
                },
                "geographicArea": {
                  "type": "string"
                },
                "postalCode": {
                  "type": "string"
                },
                "line1": {
                  "type": "string"
                },
                "line2": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": "string"
                },
                "headquarter": {
                  "type": "boolean"
                },
                "localizedName": {
                  "type": "string"
                },
                "latitude": {
                  "type": "number"
                },
                "longitude": {
                  "type": "number"
                }
              },
              "additionalProperties": false
            }
          },
          "employeeCount": {
            "type": "integer"
          },
          "specialities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "employeeCountRange": {
            "type": "object",
            "properties": {
              "start": {
                "type": "integer"
              },
              "end": {
                "type": "integer"
              }
            },
            "additionalProperties": false
          },
          "tagline": {
            "type": "string"
          },
          "followerCount": {
            "type": "integer"
          },
          "industry": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "websiteUrl": {
            "type": "string"
          },
          "headquarter": {
            "type": "object",
            "properties": {
              "country": {
                "type": "string"
              },
              "city": {
                "type": "string"
              },
              "geographicArea": {
                "type": "string"
              },
              "postalCode": {
                "type": "string"
              },
              "line1": {
                "type": "string"
              },
              "line2": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "foundedOn": {
            "type": "object",
            "properties": {
              "month": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "year": {
                "type": "integer"
              },
              "day": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          },
          "universalName": {
            "type": "string"
          },
          "hashtag": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "logo_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company logo URL from logo.leadmagic.io (generated from company domain)"
          },
          "founded_year": {
            "type": [
              "string",
              "null"
            ],
            "description": "Year the company was founded"
          },
          "ownership_status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Ownership type (Public, Private, or Acquired)"
          },
          "revenue": {
            "type": [
              "number",
              "null"
            ],
            "description": "Estimated annual revenue"
          },
          "revenue_formatted": {
            "type": [
              "string",
              "null"
            ],
            "description": "Human-readable revenue format"
          },
          "employee_range": {
            "type": [
              "string",
              "null"
            ],
            "description": "Employee count range"
          },
          "total_funding": {
            "type": [
              "string",
              "null"
            ],
            "description": "Total funding raised"
          },
          "funding_rounds": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of funding rounds completed"
          },
          "last_funding_round": {
            "type": [
              "string",
              "null"
            ],
            "description": "Type of most recent funding round"
          },
          "last_funding_amount": {
            "type": [
              "number",
              "null"
            ],
            "description": "Amount raised in most recent funding round"
          },
          "last_funding_date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date of most recent funding round"
          },
          "competitors": {
            "type": [
              "array",
              "null"
            ],
            "description": "List of competitor company names",
            "items": {
              "type": "string"
            }
          },
          "acquisitions_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of acquisitions made by the company"
          },
          "twitter_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Twitter/X profile URL"
          },
          "b2b_profile_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "B2B company profile URL"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook page URL"
          },
          "stock_ticker": {
            "type": [
              "string",
              "null"
            ],
            "description": "Stock ticker symbol (if publicly traded)"
          },
          "data_source": {
            "type": "string",
            "description": "`live` when the company profile page was read for this request; `stored` when the answer came from the LeadMagic company database, including while the live source is at capacity. Both are charged the same; a miss is `Company not found` and free.",
            "enum": [
              "live",
              "stored"
            ]
          }
        },
        "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.