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

# Hunter Domain Search: Inputs, Cost & CLI Example

> Collect role-filtered company emails with confidence and source metadata for outbound sequencing. 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=hunter_domain_search:{}' --json
```

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

## Input Schema

| Name                     | Type                      | Required | Default | Description                                                                   |
| ------------------------ | ------------------------- | -------- | ------- | ----------------------------------------------------------------------------- |
| `payload.domain`         | `string`                  | No       |         | Company domain to search (for example stripe.com). Provide domain or company. |
| `payload.company`        | `string`                  | No       |         | Company name (alternative to domain).                                         |
| `payload.limit`          | `integer`                 | No       |         | Max emails returned.                                                          |
| `payload.offset`         | `integer`                 | No       |         | Pagination offset.                                                            |
| `payload.type`           | `"personal" \| "generic"` | No       |         | Return only personal emails or only role-based/generic emails.                |
| `payload.job_titles`     | `array`                   | No       |         | Filter by job title labels.                                                   |
| `payload.seniority`      | `array`                   | No       |         | Filter by seniority labels.                                                   |
| `payload.department`     | `array`                   | No       |         | Filter by department labels.                                                  |
| `payload.required_field` | `array`                   | No       |         | Require specific returned fields.                                             |

### Allowed values

| Field          | Allowed values        |
| -------------- | --------------------- |
| `payload.type` | `personal`, `generic` |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Find email addresses for a specific company domain with confidence and sources.",
    "properties": {
      "domain": {
        "type": "string",
        "description": "Company domain to search (for example stripe.com). Provide domain or company."
      },
      "company": {
        "type": "string",
        "description": "Company name (alternative to domain)."
      },
      "limit": {
        "type": "integer",
        "description": "Max emails returned."
      },
      "offset": {
        "type": "integer",
        "description": "Pagination offset."
      },
      "type": {
        "type": "string",
        "description": "Return only personal emails or only role-based/generic emails.",
        "enum": [
          "personal",
          "generic"
        ]
      },
      "job_titles": {
        "type": "array",
        "description": "Filter by job title labels.",
        "items": {
          "type": "string"
        }
      },
      "seniority": {
        "type": "array",
        "description": "Filter by seniority labels.",
        "items": {
          "type": "string",
          "enum": [
            "junior",
            "senior",
            "executive"
          ]
        }
      },
      "department": {
        "type": "array",
        "description": "Filter by department labels.",
        "items": {
          "type": "string",
          "enum": [
            "executive",
            "it",
            "finance",
            "management",
            "sales",
            "legal",
            "support",
            "hr",
            "marketing",
            "communication",
            "education",
            "design",
            "health",
            "operations"
          ]
        }
      },
      "required_field": {
        "type": "array",
        "description": "Require specific returned fields.",
        "items": {
          "type": "string",
          "enum": [
            "full_name",
            "position",
            "phone_number"
          ]
        }
      }
    },
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `record` | Yes      |         | Provider response payload.                     |
| `result.meta` | `record` | 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.",
        "additionalProperties": {}
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute hunter_domain_search --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: `0.3` per pricing unit.
* Billing mode: `post_deduct`.
