People search count
Count matching people with the same filters as People search, for free, to size a query before paying 1 credit per profile delivered.
Credits
Free.
Introduction
The People Search Count endpoint returns the total number of profiles matching the same filters as People search, without returning any profile. Use it to size a query before spending credits: People search costs 1 credit per profile delivered, while this endpoint is free.
The endpoint accepts exactly the filters of People search, without the pagination parameters: a count is a single number, so there is no page to request.
Like Usage, this endpoint costs 0 credits, but each call still counts toward your rate limits. A free trial with no credit left gets 402 NO_CREDITS.
Authorization
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | Yes | Your API key from the developer dashboard. Pass it via Authorization: Bearer YOUR_API_KEY header. |
Request body
All filters are optional and combined with AND logic, exactly as on People search: scalar filters, the nested-object filters (followersCount, connectionsCount, currentCompanyEmployeeCountRange, totalExperienceMonths, location, experience), the position taxonomy filters, the company name filters, the contract type and school filters and the skills, languages, keywords and job change filters. Each filter is documented on the People search page.
Filters are validated before the query runs: unknown field names, blank values and values outside a closed list return HTTP 422 with the offending field and suggested values. See Search filter validation.
Response structure
| Field | Type | Description |
|---|---|---|
success | boolean | true if the request was processed successfully |
error | null | Always null on success |
dataobjectTotal number of matching profiles
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
count | number | Total profiles matching the supplied filters, across all pages |
Code examples
Code Examples
curl -X POST https://api.reversecontact.com/v2/search/people/count \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"currentFunction": "Marketing",
"currentSeniority": ["Director", "VP"],
"location": { "countryCode": "FR" }
}'import ReverseContact from "@reverse-contact/sdk";
const client = new ReverseContact({ apiKey: process.env.RC_API_KEY });
const result = await client.search.countPeople({
currentFunction: "Marketing",
currentSeniority: ["Director", "VP"],
location: { countryCode: "FR" }
});
console.log(`${result.data.count} matching people`);import os
from reversecontact import ReverseContact
with ReverseContact(api_key=os.environ["RC_API_KEY"]) as client:
result = client.search.count_people(
current_function="Marketing",
current_seniority=["Director", "VP"],
location={"countryCode": "FR"},
)
if result.data is not None and result.data.count is not None:
print(f"{result.data.count:.0f} matching people")Example response
Example Response
{
"success": true,
"data": {
"count": 1842
},
"error": null,
"quotas": {
"creditsConsumed": 0,
"workspace": {
"id": "ws_abc123",
"credits": { "total": 10000, "used": 4521, "left": 5479 }
}
},
"metadata": {
"requestId": "da5a072c-5ea9-4c20-9215-e03df33085e1",
"executionTimeMs": 95
}
}Last verified