Stats

The Stats API returns counts and aggregated data for person and company records based on the filters provided.

The response includes total counts for persons and companies. Aggregation is supported using the aggregateBy field:

  • Up to 2 aggregation fields are supported
  • If no aggregation is provided, only total counts are returned
Body Params

Request body for the stats endpoint. At least one of personFilters or companyFilters must be provided.

personFilters
object

Person-level search filters. All fields are optional; combine multiple fields to narrow results (AND logic across fields).

companyFilters
object

Company-level search filters. All fields are optional; combine multiple fields to narrow results (AND logic across fields). At least one field must be set when this object is used as companyFilters in the company endpoint.

suppression
object

Suppression list configuration. When enabled, records whose identifiers appear in the specified lists are excluded from the response and counted in totalSuppressed. List IDs must be prefixed with the matching endpoint scope: person_ for the person endpoint, company_ for the company endpoint.

aggregateBy
array of strings
length ≤ 2

List of up to 2 fields to aggregate results by. When 2 fields are provided, company-scope fields (companyRegion, companyCountry, industry, globalHeadcount, globalRevenue) always form the outer grouping level. The ordering of values in this array does not affect nesting — nesting is determined by scope hierarchy.
Company-scope fields: companyRegion, companyCountry, industry, globalHeadcount, globalRevenue
Person-scope fields: workRegion, workCountry, department, seniorityLevel

aggregateBy
Headers
string
required

API key issued by SMARTe. Pass in the apikey request header.

Responses

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