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

# Dropleads Get Lead Count: Inputs, Cost & CLI Example

> Estimating audience size before spending credits on finders or verification. Use this as the first sizing pass before paging through full search results.

## 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=dropleads_get_lead_count:{}' --json
```

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

## Input Schema

| Name              | Type     | Required | Default | Description                      |
| ----------------- | -------- | -------- | ------- | -------------------------------- |
| `payload.filters` | `object` | No       |         | Prime-DB contact search filters. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Get total lead count for Prime-DB filters.",
    "properties": {
      "filters": {
        "type": "object",
        "description": "Prime-DB contact search filters.",
        "properties": {
          "jobTitles": {
            "type": "array",
            "description": "Substring match on job title. Array values are OR'd. \"Sales\" matches \"VP of Sales\", \"Sales Manager\", etc. Works for niche titles too (\"GTM Engineer\" = 20 results). For functional search, use a broad term + seniority filter (e.g. jobTitles:[\"Growth\"] + seniority:[\"VP\",\"Director\"]).",
            "items": {
              "type": "string"
            }
          },
          "jobTitlesExclude": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "jobTitlesExactMatch": {
            "type": "boolean",
            "description": "Documented as title matching mode, but observed behavior shows no difference between true/false in results. Keep if required by schema compatibility."
          },
          "industries": {
            "type": "array",
            "description": "Industry strings from Dropleads taxonomy. Keep values broad unless taxonomy is known. If 0 results, broaden first and iterate.",
            "items": {
              "type": "string"
            }
          },
          "industriesExclude": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "type": "array",
            "description": "Free-text search across person AND company data (broader than jobTitles). Array values are OR'd. IMPORTANT: multi-word strings return 0 — use separate single-word entries ([\"GTM\",\"engineer\"] not [\"GTM Engineer\"]).",
            "items": {
              "type": "string"
            }
          },
          "keywordsExclude": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "technologies": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "technologiesExclude": {
            "type": "array",
            "description": "Technologies to exclude. Use with technologies for narrower stacks.",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "type": "array",
            "description": "Department filter. Valid values: Engineering, Sales, Marketing, Operations, Finance, HR, Product, Customer Success, Legal, IT.",
            "items": {
              "type": "string",
              "enum": [
                "Engineering",
                "Sales",
                "Marketing",
                "Operations",
                "Finance",
                "HR",
                "Product",
                "Customer Success",
                "Legal",
                "IT"
              ]
            }
          },
          "departmentsExclude": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "seniority": {
            "type": "array",
            "description": "Seniority filter. Values are OR'd within seniority, AND'd with other filters. Best combined with broad jobTitles for functional search.",
            "items": {
              "type": "string",
              "enum": [
                "VP",
                "Director",
                "Manager",
                "Senior",
                "Entry",
                "Intern"
              ]
            }
          },
          "seniorityExclude": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "companyNames": {
            "type": "array",
            "description": "Fuzzy substring match on company name. Prefer companyDomains for precision — \"Microsoft\" via companyNames pulls in unrelated businesses.",
            "items": {
              "type": "string"
            }
          },
          "companyDomains": {
            "type": "array",
            "description": "Exact domain match (e.g. \"microsoft.com\"). Most precise company filter.",
            "items": {
              "type": "string"
            }
          },
          "linkedinUrls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "employeeRanges": {
            "type": "array",
            "description": "Predefined employee count buckets.",
            "items": {
              "type": "string",
              "enum": [
                "1-10",
                "11-50",
                "51-200",
                "201-500",
                "501-1000",
                "1001-5000",
                "5001-10000",
                "10000+"
              ]
            }
          },
          "customEmployeeRange": {
            "type": "object",
            "properties": {
              "min": {
                "type": "number"
              },
              "max": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "revenueRange": {
            "type": "object",
            "properties": {
              "min": {
                "type": "number"
              },
              "max": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "fundingRange": {
            "type": "object",
            "properties": {
              "min": {
                "type": "number"
              },
              "max": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "foundedYear": {
            "type": "object",
            "properties": {
              "min": {
                "type": "number"
              },
              "max": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "personalCountries": {
            "type": "object",
            "description": "Person-location filter on the contact's own self-reported (LinkedIn-sourced) country. include/exclude arrays of country names, e.g. {\"include\":[\"United States\"]}. This is the contact's stated location, NOT the company HQ — use organizationCountries for company location. Most reliable geo level; prefer country/state over city.",
            "properties": {
              "include": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "exclude": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "personalStates": {
            "type": "object",
            "description": "Person-location filter on the contact's self-reported state/region. include/exclude arrays. More reliable than personalCities but still based on self-reported, unverified location text.",
            "properties": {
              "include": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "exclude": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "personalCities": {
            "type": "object",
            "description": "Person-location filter on the contact's self-reported city. include/exclude arrays. LOOSEST geo match: it filters on self-reported LinkedIn location text and is NOT verified against actual location, so contacts whose stated city loosely matches can slip through even when their real location differs — non-US contacts can appear under a US-city filter. For precise geo, also set personalCountries/personalStates and verify the returned lead's country/state/city before trusting the match.",
            "properties": {
              "include": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "exclude": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "organizationCountries": {
            "type": "object",
            "description": "Company-location filter on the organization (company HQ) country, distinct from the contact personal location. include/exclude arrays.",
            "properties": {
              "include": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "exclude": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "organizationStates": {
            "type": "object",
            "description": "Company-location filter on the organization (company HQ) state/region. include/exclude arrays.",
            "properties": {
              "include": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "exclude": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "organizationCities": {
            "type": "object",
            "description": "Company-location filter on the organization (company HQ) city. include/exclude arrays. Like personalCities this is best-effort, unverified text matching; verify the returned lead when precision matters.",
            "properties": {
              "include": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "exclude": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "lists": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "include",
                  "exclude"
                ]
              },
              "listIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    },
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name             | Type      | Required | Default | Description |
| ---------------- | --------- | -------- | ------- | ----------- |
| `result.success` | `boolean` | No       |         |             |
| `result.count`   | `integer` | No       |         |             |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Dropleads Prime-DB lead count raw tool output.",
    "properties": {
      "success": {
        "type": "boolean"
      },
      "count": {
        "type": "integer"
      }
    },
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute dropleads_get_lead_count --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.                      |

## Provider API Context

<details>
  <summary>Show provider reference (optional)</summary>

  ```md theme={null}
  Get the total number of leads matching your filters. 
  **Does not consume credits**.
  ```
</details>

## Cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.
* Billing mode: `no_bill`.
