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

> Get comprehensive funding information, financials, competitors, and company insights. Includes inputs, outputs, costs, and Deepline CLI examples.

## 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_funding:{}' --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       |         |             |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Get comprehensive funding information, financials, competitors, and company insights.",
    "properties": {
      "company_domain": {
        "type": "string"
      },
      "company_name": {
        "type": "string"
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `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": "Provider response payload.",
        "properties": {
          "basicInfo": {
            "type": "object",
            "properties": {
              "companyName": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "shortName": {
                "type": "string"
              },
              "founded": {
                "type": "string"
              },
              "primaryDomain": {
                "type": "string"
              },
              "phone": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "followers": {
                "type": "integer"
              },
              "ownership": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "financialInfo": {
            "type": "object",
            "properties": {
              "revenue": {
                "type": "integer"
              },
              "formattedRevenue": {
                "type": "string"
              },
              "totalFunding": {
                "type": "integer"
              },
              "formattedFunding": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "companySize": {
            "type": "object",
            "properties": {
              "employees": {
                "type": "integer"
              },
              "employeeRange": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "topCompetitors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "revenue": {
                  "type": "string"
                },
                "employees": {
                  "type": "string"
                },
                "website": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "required": [],
        "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_funding --payload '{}' --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: `1.35` per pricing unit.
* Billing mode: `post_deduct`.
