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

# Lusha Search Contacts: Inputs, Cost & CLI Example

> Prospect for contacts by department, seniority, company size, industry, job title, location, and technologies. Includes inputs, outputs, and 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=lusha_search_contacts:{"filters":{}}' --json
```

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

## Input Schema

| Name                            | Type      | Required | Default | Description                                                                    |
| ------------------------------- | --------- | -------- | ------- | ------------------------------------------------------------------------------ |
| `payload.includePartialContact` | `boolean` | No       |         | Include contacts with partial information. Defaults to true upstream.          |
| `payload.excludeDnc`            | `boolean` | No       |         | Exclude contacts whose phone numbers are all marked Do Not Call.               |
| `payload.pages`                 | `object`  | No       |         |                                                                                |
| `payload.filters`               | `object`  | Yes      |         | Current Lusha prospecting search contract uses nested contact/company filters. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "includePartialContact": {
        "type": "boolean",
        "description": "Include contacts with partial information. Defaults to true upstream."
      },
      "excludeDnc": {
        "type": "boolean",
        "description": "Exclude contacts whose phone numbers are all marked Do Not Call."
      },
      "pages": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "description": "Zero-based page number for pagination.",
            "minimum": 0
          },
          "size": {
            "type": "integer",
            "description": "Results per page (10-100).",
            "minimum": 10,
            "maximum": 100
          }
        },
        "additionalProperties": false
      },
      "filters": {
        "type": "object",
        "description": "Current Lusha prospecting search contract uses nested contact/company filters.",
        "properties": {
          "contacts": {
            "type": "object",
            "properties": {
              "include": {
                "type": "object",
                "properties": {
                  "departments": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "seniority": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "existing_data_points": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "locations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "continent": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string"
                        },
                        "city": {
                          "type": "string"
                        },
                        "state": {
                          "type": "string"
                        },
                        "country_grouping": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "signals": {
                    "type": "object",
                    "properties": {
                      "names": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "startDate": {
                        "type": "string",
                        "format": "date"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "exclude": {
                "type": "object",
                "properties": {
                  "departments": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "seniority": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "existing_data_points": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "locations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "continent": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string"
                        },
                        "city": {
                          "type": "string"
                        },
                        "state": {
                          "type": "string"
                        },
                        "country_grouping": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "signals": {
                    "type": "object",
                    "properties": {
                      "names": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "startDate": {
                        "type": "string",
                        "format": "date"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "companies": {
            "type": "object",
            "properties": {
              "include": {
                "type": "object",
                "properties": {
                  "names": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "locations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "continent": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string"
                        },
                        "city": {
                          "type": "string"
                        },
                        "state": {
                          "type": "string"
                        },
                        "country_grouping": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "technologies": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "mainIndustriesIds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "subIndustriesIds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "intentTopics": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "sizes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "min": {
                          "type": "number"
                        },
                        "max": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "revenues": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "min": {
                          "type": "number"
                        },
                        "max": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "sicCodes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "naicsCodes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              },
              "exclude": {
                "type": "object",
                "properties": {
                  "names": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "locations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "continent": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string"
                        },
                        "city": {
                          "type": "string"
                        },
                        "state": {
                          "type": "string"
                        },
                        "country_grouping": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "technologies": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "mainIndustriesIds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "subIndustriesIds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "intentTopics": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "sizes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "min": {
                          "type": "number"
                        },
                        "max": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "revenues": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "min": {
                          "type": "number"
                        },
                        "max": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "sicCodes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "naicsCodes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "filters"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name                  | Type      | Required | Default | Description |
| --------------------- | --------- | -------- | ------- | ----------- |
| `result.requestId`    | `string`  | Yes      |         |             |
| `result.currentPage`  | `integer` | Yes      |         |             |
| `result.pageLength`   | `integer` | Yes      |         |             |
| `result.totalResults` | `integer` | Yes      |         |             |
| `result.contacts`     | `array`   | Yes      |         |             |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "requestId": {
        "type": "string"
      },
      "currentPage": {
        "type": "integer"
      },
      "pageLength": {
        "type": "integer"
      },
      "totalResults": {
        "type": "integer"
      },
      "contacts": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "personId": {
              "type": "string"
            },
            "firstName": {
              "type": "string"
            },
            "lastName": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "department": {
              "type": "string"
            },
            "companyName": {
              "type": "string"
            },
            "companyDomain": {
              "type": "string"
            },
            "location": {
              "type": "string"
            },
            "linkedinUrl": {
              "type": "string"
            }
          },
          "required": [
            "personId",
            "firstName",
            "lastName",
            "title",
            "department",
            "companyName",
            "companyDomain",
            "location",
            "linkedinUrl"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "requestId",
      "currentPage",
      "pageLength",
      "totalResults",
      "contacts"
    ],
    "additionalProperties": true
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute lusha_search_contacts --payload '{
  "filters": {}
}' --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.7` per pricing unit.
* Billing mode: `post_deduct`.
