Fetch day-wise session and recording analytics data for an App
GET/accounts/{account_id}/realtime/kit/{app_id}/analytics/daywise
Returns day-wise session and recording analytics data of an App for the specified time range start_date to end_date. If start_date and end_date are not provided, the default time range is set from 30 days ago to the current date.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Path Parameters
Query Parameters
Fetch day-wise session and recording analytics data for an App
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/realtime/kit/$APP_ID/analytics/daywise \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"data": {
"recording_stats": {
"day_stats": [
{
"day": "day",
"total_recording_minutes": 0,
"total_recordings": 0
}
],
"recording_count": 0,
"recording_minutes_consumed": 0
},
"session_stats": {
"day_stats": [
{
"day": "day",
"total_session_minutes": 0,
"total_sessions": 0
}
],
"sessions_count": 0,
"sessions_minutes_consumed": 0
}
},
"success": true
}Returns Examples
{
"data": {
"recording_stats": {
"day_stats": [
{
"day": "day",
"total_recording_minutes": 0,
"total_recordings": 0
}
],
"recording_count": 0,
"recording_minutes_consumed": 0
},
"session_stats": {
"day_stats": [
{
"day": "day",
"total_session_minutes": 0,
"total_sessions": 0
}
],
"sessions_count": 0,
"sessions_minutes_consumed": 0
}
},
"success": true
}