Realtime
The Realtime endpoint allows viewing analytics of real-time users and interactions with a maximum 7 day range. This end point allows real-time analytics to be viewed for Apps, Stories, Pathways OR Streams.
Available Realtime Endpoints
v1/analytics/realtime/apps
Get real-time analytics for an app or a list of apps.
v1/analytics/realtime/pathways
Get real-time analytics for a pathways or a list of pathways.
v1/analytics/realtime/streams
Get real-time analytics for a stream or a list of streams.
v1/analytics/realtime/stories
Get real-time analytics for a story or a list of stories.
Parameters
There are two optional parameter on the real-time endpoints. The items parameter allows you to filter items based on the name or ID of the item. If the item parameter is not provided the endpoint will return the latest 10 items.
For range this option allows you to select a predefined range from 0 - 7.
Key | Type |
items | Array Strings Name or ID of the items to filter. |
range | Int The range option to use. Defaults to 1. |
Range Options
0 | The Last Hour |
1 Default | Last 24 Hours |
2 | Last 2 Days |
3 | Last 3 Days |
4 | Last 4 Days |
5 | Last 5 Days |
6 | Last 6 Days |
7 | Last 7 Days |
Examples
Get Latest 10 Pathways
The example below makes a call to the realtime/pathways
endpoint without a items parameter.
Get a Single App
The example below makes a call to the realtime/apps
endpoint with a single item in the items parameter.
Get 2 Specific Stories
The example below makes a call to the realtime/stories
endpoint with an items parameter set to two stories.
Success Response
Whichever realtime
endpoint you are using a successful response will return an array of items with each item containing a context item (app, pathway, stream or story) and corresponding realtime
data. The example below shows a successful response when using the realtime/apps
endpoint.
Last updated