Skip to main content
POST
Count matching leads

Authorizations

X-API-Key
string
header
required

Body

application/json

A search to count, and whether the people the workspace already holds count too.

record_type
enum<string>
required

Which dataset a search runs against, and so which provider serves it.

Values are persisted in String(16) columns, so every member must stay within 16 characters.

Available options:
people,
companies,
signal_companies,
signal_people,
lookalikes,
local_businesses,
hiring_companies,
backlinks,
search_results,
post_authors,
startup_launches

The sites linking to a domain or a page.

Name the target and get one row per referring site by default, sorted by the rank the link passes. Every attribute of a backlink the index can filter on is here, in four groups: the referring site, the referring page, the link itself, and the page it points at. The index takes at most eight filter conditions in one search, counting every value of every list as one; a ninth is refused rather than dropped.

companies
CompanyQuerySchema · object | null

Filters for a company search.

hiring_companies
HiringCompaniesQuerySchema · object | null

Filters for a search for companies with open roles matching a job title.

The rows are companies, one per employer, each carrying every open posting the search read for it. The count is of open postings, since the companies are folded from them once they are read.

include_people_already_in_tables
boolean
default:true

A people or company search only. Set false to leave out the people (or companies) who already have a row in one of the workspace's tables, as a new table from this search does unless told to keep them, so the count is the number of rows that table gets. By default every match is counted: who matches a search, whatever the workspace holds.

local_businesses
LocalBusinessQuerySchema · object | null

Filters for a map search over business listings.

The one search here that asks "who is within this radius". Name a category, a business name or a website to look for, plus an area to look in for the radius part.

lookalikes
LookalikeQuerySchema · object | null

Filters for a search for companies resembling a set of seed companies.

people
PeopleQuerySchema · object | null

Filters for a people search.

post_authors
PostAuthorsQuerySchema · object | null

Filters for a search for people whose own LinkedIn posts carry a phrase.

The rows are people, one per author, each carrying every matching post the search read for them. The count is of posts, since the people are folded from them once they are read.

search_results
SearchResultsQuerySchema · object | null

Google searches to run, each landing the results Google shows for it.

Write each search the way you would type it into Google: operators (site:, intitle:, quoted phrases) work and cost nothing extra. One row is one result of one search, with the search that found it and its rank.

signal_companies
SignalCompaniesQuerySchema · object | null

Filters for a company buying-signal search.

signal_people
SignalPeopleQuerySchema · object | null

Filters for a person activity-signal search.

startup_launches
StartupLaunchesQuerySchema · object | null

Filters for a search of the companies listed on startup launch boards.

One row per company, newest listing first, however many boards list it. Every filter narrows; a filter on a fact only some boards carry keeps only the listings of the boards that carry it.

Response

Successful Response

How many leads matched, and the most one search may add.

count
integer | null
required

How many leads match. Null when this search type has no live count: buying-signal searches are sold by the row and have no free tally behind them, so the only way to see what one finds is to preview it. Lookalike, map and technographic searches all do count.

max_rows_per_import
integer
required

The most rows one import adds for THIS organization: the plan's rows per table, clamped by max_rows_per_search. Always a number, so anything quoting an import prices against this.

max_rows_per_search
integer | null
required

The search's own ceiling on one run, before the plan: a Google search's searches times their depth. Null on every other search, where the plan's rows per table (max_rows_per_import) is the only bound, except where the deployment sets a guard on every search (a local environment).

row_order
enum<string>
required

Which matches one run keeps when more match than it can add. ranked means it keeps the closest matches, so the rows added are the best ones. recent means it keeps the newest. source_order means it keeps the first max_rows_per_import the search returns, which is not a quality order and should never be described as one. Worth showing whenever count is larger than max_rows_per_import, so a five-row sample can be read for what it is.

Available options:
ranked,
recent,
source_order
at_capacity
boolean
default:false

Whether count is the most one run of this search can return rather than a real match count. True means at least that many match, so show the number as a floor (“100+ companies match”) and say that one run returns up to max_rows_per_import of them. False means count is the real tally, however far above the run limit it sits.

people_already_in_tables
integer
default:0

A people search counted with include_people_already_in_tables false: how many matches were left out of count because the workspace's tables already hold them. Zero when nobody was left out. A count of 0 beside a number above 0 means everyone the search finds is already held, not that nothing matches: counting with include_people_already_in_tables true brings them back.

provider_notices
string[]

What qualifies this count, in the words to show beside it. A lookalike search with a minimum similarity fills this: the floor is applied to the matches once they arrive, after this count was taken, so the search can add fewer rows than count. Empty for every count that is exact.

supported
boolean
default:true

Whether counting is available for this search type. False means count is null for every set of filters, not just this one.