Less boo. More booked. Halloween offer: 30 days free on any paid plan. Claim 30 days freeEvery new account gets one free mailbox for warmup and replies. No domain to buy. See how it works

Skip to content

Match count

API referenceLeads

From the Leads API reference. Requests use the base URL https://app.warmerly.com/api/v1 and an API key, see Authentication.

text
GET /leads/count

A search response does not include a match count, because counting inside a search request would make the search slow for everyone. When you need a number for a segment, to size an export, or to show "312 matches" in a UI, ask for it separately. Takes exactly the same filter params as search, minus paging.

bash
curl "https://app.warmerly.com/api/v1/leads/count?country=GB&hiring=true" -H "X-Api-Key: wmv_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
json
{
  "count": { "value": 118520, "exact": true, "capped": false, "wasCountable": true },
  "coverage": { "sampleSize": 1000, "exact": false, "email": 1000, "phone": 612, "companyNumber": 455, "contactForm": 288, "linkedin": 331, "country": 1000 }
}
FieldDescription
count.valueThe number to show.
count.exacttrue when the rows were actually counted, false when the figure is a planner estimate. Word these differently: estimates on this table run low, so presenting one as a count understates most segments several-fold.
count.cappedOnly with exact: true. The count stopped at a hard row ceiling, so value is a floor and the real total is larger.
count.exact: falseExpected on broad segments. A narrow filter gets counted, a country-wide one gets estimated, and an estimate is the intended answer rather than a failure.

coverage reports how many of the matching companies carry each high-value field, so you can see how complete a segment is before you export it. It is measured over at most 1,000 matching rows: when exact is true the sample was the entire result set and the figures are counts; when it is false more rows match than were measured and the figures are a sampleSize-row sample, not totals.

GET /leads/count has its own per-user throttle of 120 requests per 5 minutes, separate from the search throttle (see Rate limits). Invalid parameters return 400 bad_request (invalid_filters).

Was this page helpful?