Skip to main content
GET
/
streams
/
{id}
/
live-stats
Get a stream's live (YouTube) stats.
curl --request GET \
  --url https://api.streamloop.app/v1/streams/{id}/live-stats \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "name": "<string>",
  "youtubeLiveStats": {
    "concurrentViewers": 123,
    "fetchedAt": "2023-11-07T05:31:56Z",
    "likeCount": 123,
    "totalViews": 123,
    "watchUrl": "<string>",
    "mirrorLastError": "<string>"
  }
}

Authorizations

Authorization
string
header
required

OAuth 2.1 authorization-code flow with PKCE.

Path Parameters

id
string
required

Resource identifier.

Response

object | null

Successful response.

id
string
required
name
string | null
youtubeLiveStats
object

Live YouTube viewer + cumulative stats for this stream. Returns null when the stream's destination isn't a YouTube channel, or when no broadcast has been provisioned yet (the row is still pre-EnsureBroadcast). Otherwise routes through destinations-gateway, which caches the underlying videos.list response in JetStream KV for 10 minutes.