Skip to main content
POST

Authorizations

x-api-key
string
header
required

Your Huntr API key. Get one at tryhuntr.com. Pass as x-api-key header on all authenticated requests.

Body

application/json

Choose one people count input:

  • Natural-language mode: send semantic_query. Add filters only with semantic_query when you need hard constraints.
  • Structured-filter mode: send query when you already have exact filters.

Optional: add has_email and/or has_phone to count only contacts with available email or phone data.

Do not send query and semantic_query together. Count endpoints do not accept pagination.

semantic_query
string

Natural-language description of people to count. Mutually exclusive with query.

filters
object

Hard filters for semantic_query. Same supported fields as query.

query
object

At least one supported filter required unless has_email or has_phone is true. Use non-empty include and/or exclude arrays.

has_email
boolean

When true, only count contacts with email data available.

has_phone
boolean

When true, only count contacts with phone data available.

Response

Person count returned.

success
boolean
required
request_id
string
required
total
number
required

Total matching people for the submitted query.

price
number
required

Always 0 for count endpoints.

credits_remaining
number
required