Skip to main content
GET
Return the project’s sessions in a window grouped by one dimension, as counts and percentages.
Scope: read. Unlike the other analytics endpoints, dimension, startDate and endDate are all required here; there is no default dimension.

Path parameters

string
required
The project.

Query parameters

string
required
country, city, browser, os or device. Omitting it returns 400.
string
With dimension=city: restrict to one country code, e.g. DE.
string
required
ISO 8601 start of the window. For API-key callers the window between startDate and endDate is capped at 92 days; move the window to read a longer period.
string
required
ISO 8601 end of the window.

Headers

string
required
Your Streampixel API key.

Response

string
The dimension used.
number
Sessions in the window with a value for the dimension.
array
value, count, percentage; for cities also country and countryCode.

Errors