100 free credits. No credit card required. Get a key

YouTube channel live streams API

A channel’s live, upcoming and past streams, 30 a page, latest, popular or oldest first.

GET /v1/youtube/channels/{channel}/livesBeta1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/youtube/channels/@LofiGirl/lives",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"kind": "youtube#videoListResponse",
"items": [
{
"kind": "youtube#video",
"id": "4t4AQ15yj1M",
"snippet": {
"channelId": "UCSJ4gkVC6NrvII8umztf0Ow",
"channelTitle": "Lofi Girl",
"title": "christmas lofi radio 🎄 cozy ambience to relax to",
"thumbnails": {
"default": {
"url": "https://i.ytimg.com/vi/4t4AQ15yj1M/default.jpg",
"width": 120,
"height": 90
},
"medium": {
"url": "https://i.ytimg.com/vi/4t4AQ15yj1M/mqdefault.jpg",
"width": 320,
"height": 180
},
"high": {
"url": "https://i.ytimg.com/vi/4t4AQ15yj1M/hqdefault.jpg",
"width": 480,
"height": 360
},
"standard": {
"url": "https://i.ytimg.com/vi/4t4AQ15yj1M/sddefault.jpg",
"width": 640,
"height": 480
}
},
"liveBroadcastContent": "live"
},
"channel": {
"id": "UCSJ4gkVC6NrvII8umztf0Ow",
"title": "Lofi Girl",
"handle": "@LofiGirl",
"url": "https://www.youtube.com/@LofiGirl"
},
"statistics": {
"viewCount": "4600"
},
"statisticsAreApproximate": true,
"isShort": false
},
{
"kind": "youtube#video",
"id": "0sfDth4lMLc",
"snippet": {
"channelId": "UCSJ4gkVC6NrvII8umztf0Ow",
"channelTitle": "Lofi Girl",
"title": "24/7 halloween ambience 🎃 spooky lofi to get chills to",
"thumbnails": {
"default": {
"url": "https://i.ytimg.com/vi/0sfDth4lMLc/default.jpg",
"width": 120,
"height": 90
},
"medium": {
"url": "https://i.ytimg.com/vi/0sfDth4lMLc/mqdefault.jpg",
"width": 320,
"height": 180
},
"high": {
"url": "https://i.ytimg.com/vi/0sfDth4lMLc/hqdefault.jpg",
"width": 480,
"height": 360
},
"standard": {
"url": "https://i.ytimg.com/vi/0sfDth4lMLc/sddefault.jpg",
"width": 640,
"height": 480
}
},
"liveBroadcastContent": "live"
},
"channel": {
"id": "UCSJ4gkVC6NrvII8umztf0Ow",
"title": "Lofi Girl",
"handle": "@LofiGirl",
"url": "https://www.youtube.com/@LofiGirl"
},
"statistics": {
"viewCount": "174"
},
"isShort": false
},
"… 1 more"
],
"pageInfo": {
"resultsPerPage": 7
}
}

Parameters

NameTypeDescription
channelpath · requiredstringA channel id (UC…), a handle with or without the @, or any channel URL (/@handle, /channel/UC…, /c/name, /user/name). Example: @MrBeast.
sortquery"latest" | "popular" | "oldest"latest (default), popular or oldest. One of latest, popular, oldest.
detailsquery"0" | "1" | "true" | "false"One of 0, 1, true, false.
afterquerystringThe previous page’s nextPageToken. Tokens last 6 hours.
Response fields

200 with a YouTubeVideoList, in the shape of YouTube Data API v3 resources.

FieldTypeDescription
kind"youtube#videoListResponse"
itemsYouTubeVideo[]
nextPageTokenstringPass as after for the next page. Absent on the last page. Lasts 6 hours.
pageInfoobject
missingobject[]Batch only: requested ids that did not resolve, and why.
Status codes
StatusMeaning
200A page of streams.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The video, channel, playlist or post does not exist, was removed, or has nothing there.
429Too many requests. Wait for Retry-After seconds.
503YouTube is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

No Live tab?

An empty list, charged as a normal read.

YouTube is a trademark of Google LLC. We are not affiliated with or endorsed by Google or YouTube.