Get Average Session Lengths

CUSTOM-ENDPOINT

GET https://api.speakap.io/networks/:eid/stats/average-session-length

CUSTOM-REQUEST

  • URI: /networks/{networkEID}/stats/average-session-length
  • Method: GET
  • Authentication: OAuth 2.0

Parameters

NameTypeDescription
networkEIDEIDNetwork EID

Filters

NameTypeDescription
periodstringDate range for statistics. Possible values are: today, yesterday, last_7_days, last_week, last_30_days, last_month

Parameter period equals to last_week will return data for last calendar week (from Monday to Sunday). Filter last_month has same behaviour.

Statistics Session Length Object

NameTypeDescription
dataarrayList of requested metrics. See concrete endpoints for exact values
dateFromdatetimeRequested start date for statistics
dateTodatetimeRequested end date for statistics
averageSessionLengthForPeriodintegerAverage session length per user per whole period

Session Length Entry

NameTypeDescription
datedatetimeMetrics date
averageSessionLengthintegerAverage session length in seconds

Response

StatusData
200Valid: returns an Statistics Session Length Object with Session Length Entry objects under data key
400Invalid request data: returns an Error object
401Unauthorized: returns an Error object