curl --request POST \
--url https://api.tryhuntr.com/person-search-count \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"semantic_query": "VPs of Sales at cybersecurity companies",
"filters": {
"locality": {
"include": [
"US"
]
}
},
"has_email": true
}'{
"success": true,
"request_id": "req_1746123456_psc1x2",
"total": 42000,
"price": 0,
"credits_remaining": 5
}Contact APIs
Person Search Count
Count people matching the same structured, natural-language, and availability-filter inputs accepted by /person-search. Count endpoints do not accept pagination and do not return rows.
POST
/
person-search-count
curl --request POST \
--url https://api.tryhuntr.com/person-search-count \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"semantic_query": "VPs of Sales at cybersecurity companies",
"filters": {
"locality": {
"include": [
"US"
]
}
},
"has_email": true
}'{
"success": true,
"request_id": "req_1746123456_psc1x2",
"total": 42000,
"price": 0,
"credits_remaining": 5
}Authorizations
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.