Skip to main content
← Back to Quickstart Guides

Stream Analytics

Real-time metrics via Cloudflare GraphQL

Get Stream Analytics

GET /api/v1/streams/:id/analytics?start=2025-11-01T00:00:00Z&end=2025-11-01T23:59:59Z

Response:
{
  "stream_id": "stream_abc123",
  "metrics": {
    "total_views": 12450,
    "peak_concurrent_viewers": 1523,
    "avg_watch_time_minutes": 23.5,
    "total_minutes_watched": 292575
  },
  "by_country": [
    { "country": "US", "views": 5200 },
    { "country": "UK", "views": 3100 }
  ],
  "by_device": [
    { "device": "desktop", "views": 7800 },
    { "device": "mobile", "views": 4650 }
  ]
}
Stream Analytics - Quickstart | WAVE Docs | WAVE