/o/analytics/events

Retrieve event data for specified period

Returns breakdown data of event:
If you provide only event key is provided then

  • _id: date/time bucket
  • c: Total count
  • s: Total sum
  • dur: Total duration

But if you provide event key and segmentation then:

  • _id: value for segment
  • c: Total count
  • s: Total sum
  • dur: Total duration

You can provide:

  • event=YourEventKey
  • events=["Key1","Key2"]
  • event=YourEventKey&segmentation=YourSegment
  • events=["Key1","Key2"]&segmentation=YourSegment
Query Params
string
required

API_KEY of user, with permission to access this app

string
required

ID of the app for which to query

string

Event key to query

string

JSON string array with multiple event keys

string

segment key to get data for

string
Defaults to month

For which time period to provide data, possible values (month, 60days, 30days, 7days, yesterday, hour or [startMiliseconds, endMiliseconds] as [1417730400000,1420149600000])

string

(optional) name of callback function for JSONP output

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Response
Choose an example:
application/json
text/plain