Use cases

Populate UI filters

Populate filters with unique values.


AI Agents

Prompt LLMs with available values.


Display trending values

Display most frequent values.


Features

All the common API features, plus:

Example

Example 1: Simple time series query

An example of a query to get the total taco sales for the last 3 days, filtered by the restaurant name “El Buen Sabor”.

Usage

Arguments

The fields for querying the top values in a given column.

dataPool
DataPoolInput
required

The Data Pool to be queried. A Data Pool ID or unique name can be provided.

columnName
String
required

The column to fetch the unique values from.

timeRange
TimeRangeInput

The time range for calculating the top values.

timeZone
String

The time zone to use. Dates and times are always returned in UTC, but setting the time zone influences relative time ranges and granularities.

You can set this to “America/Los_Angeles”, “Europe/Berlin”, or any other value in the IANA time zone database. Defaults to “UTC”.

maxValues
Int

The maximum number of values to return. It can be a number between 1 and 1,000. If the parameter is omitted, default value 10 is used.

Response

values
[String!]
required

An array with the list of values.

Embeddable UI components