Frequency
Last updated
Last updated
The Frequency endpoint allows viewing analytics of total sessions vs unique sessions with a given interval (hour, day, month, year). This end point allows frequency analytics to be viewed for Apps, Stories, Pathways OR Streams.
v1/analytics/frequency/apps
Get frequency analytics for an app or a list of apps.
v1/analytics/frequency/pathways
Get frequency analytics for a pathways or a list of pathways.
v1/analytics/frequency/streams
Get frequency analytics for a stream or a list of streams.
v1/analytics/frequency/stories
Get frequency analytics for a story or a list of stories.
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.
The example below retrieves a single app with an interval
set to "day" and the steps
"7". This will give a frequency result for 7 days.
The example below retrieves the latest 10 stories with an interval
set to "month" and the steps
set to "12". This will give a frequency of 12 months for each item.
Whichever frequency
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 frequency
data. The example below shows a successful response when using the frequency/apps
endpoint.
Key
Value
items
Array of Strings Item name or ID
Interval
String day, hour, month, year defaults to month.
steps
Int Number of steps to use between 1 - 24