Skip to main content

Query Basics

The Query API returns aggregated metrics based on how you group the data. Every query requires:

Group By Options

Time Granularity

Use ALL for totals, other values for trend analysis.

Sorting

Sort results by any numeric field:
Available sort orders: ASC, DESC

Filtering

By Entity IDs

Filter results by related entities:
topicIds works with both groupBy=SESSION and groupBy=END_USER. Other entity filters only work with groupBy=SESSION.

By Gap Type

When querying gaps, filter by type:

By Language

When querying sessions, filter by detected language:

Common Query Patterns

Top Topics This Month

Worst Performing Sessions

Knowledge Gaps by Frequency

Sessions About a Specific Gap

Field Reference

Available by Group By

Dimension Fields

Extra metadata available for some group by options: