Palbase Analytics · API
/analytics/breakdownBreak the events down
The window's events split by one dimension — the platform, the app version, the OS version, the country, the event's name, or one of its properties — the most frequent value first: how many events had each value, by how many distinct ids. An absent or empty value is ""; a property that is not a string is its JSON (a number, true, an array).
Called by your server, with the project's secret key.
Query
window_secondsinteger · optionalHow far back to look, in seconds (an hour unless said; never past the project's retention).bystring · requiredWhat to split by: platform, app_version, os_version, country, region (a province, a state: its English name), city, event (the event's name), or property:<key> — a key of the events' properties (letters, digits and _ . $ -, 64 at most).eventstring · optionalOnly this event (every event unless said).limitinteger · optionalValues per page (10 unless said).cursorstring · optionalThe next_cursor of the page before: reads the page after it.curl -X GET "https://<your-ref>.palbase.studio/analytics/breakdown" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200A page of values
400The request is malformed, or what it sends breaks a limit (the error names which: the SDKs' codes)
401No key, or not a key of this project, or a token that is not valid (the edge's answer)
403Not the project's secret key
429The project is sending analytics faster than its per-second limit (rate_limited), or its quota for the period is used up (quota_exceeded); Retry-After says when to try again
503The platform could not take or answer this now; nothing was kept, and retrying is safe (Retry-After)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation GetEventBreakdown of analytics's contract.