Count the matches of each filter value (companies, free)

The count of every filter value for the current companies search, so a
page can show "Engineering (82)" next to each value. Same body as
POST /v1/companies/search (with or without signal_types), plus
facets. Paging fields (limit, offset, cursor,
include_total, signals_per_entity, view) are accepted and
ignored. Behind a workspace switch: a workspace without it gets 404.

Each facet counts with every OTHER filter applied, not its own: the
count next to a value is what picking that value gives. total
applies every filter. Every value of a closed list is listed, with
0 when nothing matches (the zeros come last), unless the engine's
list was cut off; then a value that is not listed is unknown.

Signals come from the search engine's daily facts, so a signal from
today counts tomorrow. The range maps to the closest window of those
facts (7, 30, 90 or 365 days; 180 counts 365 for now): range_days
names it. exact is false, with a plain note, when the range is not
one of those windows, when detected_before is in the past, and when
the body has signal_filters or content_filters (counts do not
include filters on signal details).

Limits: 120 calls a minute per workspace (429 rate_limited). The
engine has 2.5 seconds. When the total does not finish: 503
search_engine_unavailable (show no counts, never 0). When one facet
does not finish: 200 without it, named in missing_facets. Counts
with no filter at all run in the background the first time (503 with
Retry-After: 10), then stay for some hours. Answers are kept up to
30 minutes.

Credit cost: 0.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The body of POST /v1/companies/search plus facets.

string

Same as on POST /v1/companies/search.

company_domains
array of strings

Same as on POST /v1/companies/search.

company_domains
string

Same as on POST /v1/companies/search.

industries
array of strings

Same as on POST /v1/companies/search.

industries
integer

Same as on POST /v1/companies/search.

integer

Same as on POST /v1/companies/search.

string

Same as on POST /v1/companies/search.

string

Same as on POST /v1/companies/search.

country
array of strings

Same as on POST /v1/companies/search.

country
company_country
array of strings

Same as on POST /v1/companies/search.

company_country
hq_state
array of strings

Same as on POST /v1/companies/search.

hq_state
hq_city
array of strings

Same as on POST /v1/companies/search.

hq_city
integer

Same as on POST /v1/companies/search.

integer

Same as on POST /v1/companies/search.

boolean

Same as on POST /v1/companies/search.

boolean

Same as on POST /v1/companies/search.

boolean

Same as on POST /v1/companies/search.

boolean

Same as on POST /v1/companies/search.

signal_types
array of strings

Signal types (optional). Counts only entities with one of them in the range.

signal_types
string

One signal subtype (joined with signal_subtypes).

signal_subtypes
array of strings

Signal subtypes, across all signal_types (as the search).

signal_subtypes
date-time

Start of the range. Default: the search's default range.

date-time

End of the range. The counts always count back from today: a past value sets exact false.

string

Accepted and not counted (exact false).

string

Accepted and not counted (exact false).

signal_groups
array of objects
length ≤ 40

Optional. Groups of signals (for example the page's Popular signals: "New CEO" = sec-8k and sec-10q with the kind ceoChange). The signal_groups facet gives one exact count per group, in this order, 0 when nothing matches: every other filter applies, the request's own signal_types / signal_subtypes do not (the count is what picking that group alone gives). Kinds apply across the group's types, as in the search. An unknown type is left out of its group, with a warning.

signal_groups
employee_ranges
array of objects
length ≤ 12

Optional. The employee_count facet counts these ranges instead of the company_size_buckets (for example the page's size buttons 11-50 and 10001+). Values are "min-max" or "min+" (max null = no top). Same overlap rule as the employee_count filter.

employee_ranges
facets
array of strings

The facets to count. Default: all for the entity. Companies: signal_types, signal_subtypes, signal_groups (only with the signal_groups field), industries, employee_count, revenue, country. Contacts add contact_country, seniority, department.

facets
signal_types_any
array of strings

As on the search with no signal_types; joined with signal_types.

signal_types_any
signal_subtypes_any
array of strings

As on the search with no signal_types; joined with signal_subtypes.

signal_subtypes_any
integer

As on the search with no signal_types (7, 30, 90 or 365). Used when detected_after is not set.

Responses

404

The workspace does not have the switch (the route does not exist for it).

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json