Get Session Counts

Returns aggregated counts of sessions grouped by the specified fields. Useful for building dashboards and understanding traffic distribution.

Query Params
string
enum
Defaults to workspace

Controls the data scope for the query.

  • workspace: Query data from the current workspace (default). Requires the Sensors entitlement.
  • demo: Query demo/sample data. Requires the Swarm entitlement. Not available on export endpoints.
Allowed:
date-time
required

Start time for the query range (ISO 8601 format).

date-time
required

End time for the query range (ISO 8601 format).

string
required

Comma-separated list of fields to aggregate on.

string

Lucene query string to filter sessions.

integer
1 to 100
Defaults to 10

Number of buckets per aggregation level.

Responses

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