Project analytics
Read traffic, quality and session analytics.
/v1/projects/{projectId}/analyticsOn this page
Authentication
Use a secret key with analytics:read for its own project environment, or a valid console session with organization membership.
Parameters
projectId is required in the path. range: live, 24h, 7d or 30d, default 7d. Optional environmentId.
Example
curl "$RELAYRTC_API_URL/projects/project_example/analytics?range=7d" \
-H "Authorization: Bearer $RELAYRTC_SECRET_KEY"Response
200 with scope, window, summary, network, dataQuality, qualityGranularitySeconds, traffic, networkSeries, quality, regions, qualityDistribution and topRooms. Summary includes peakConcurrent, totalSessions, averageSessionSeconds, participantSeconds and connectionSuccessRate. Quality entries include roundTripTimeMs, jitterMs, packetLossPercent and sampleCount; values may be null when absent.
Availability
The API includes serviceUsage for the same scope and UTC window. live means the rolling last 15 minutes, so completed activity eventually leaves that window and totals can decrease. Use a historical range for retained totals. See usage semantics.
This endpoint is REST-only. The current Node SDK exposes public usage.get, but has no wrapper for these reporting endpoints. It is separate from public scoped usage.