Fetches and formats information about the most recent listening sessions,
providing a chronological view of the user's listening behavior. Sessions
represent continuous periods of listening activity separated by significant
time gaps.
The returned data includes:
Session identifier and start timestamp
Duration of the session in minutes
Number of tracks played during the session
Skip count and calculated skip percentage
This function is primarily used for dashboard visualizations and reports
that show patterns in listening duration and engagement over time.
Results are sorted by recency with the most recent sessions first.
Example
// Display the last 5 listening sessions constrecentSessions = awaitgetRecentSessions(5); renderSessionHistoryChart(recentSessions);
Retrieves recent listening sessions
Fetches and formats information about the most recent listening sessions, providing a chronological view of the user's listening behavior. Sessions represent continuous periods of listening activity separated by significant time gaps.
The returned data includes:
This function is primarily used for dashboard visualizations and reports that show patterns in listening duration and engagement over time. Results are sorted by recency with the most recent sessions first.
Example
Source