Live and past live streams from a YouTube channel’s Live tab: title, views, length and publish label, with cursor pages.
2 credits/ call
Never more than 19 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/youtube.channel_lives" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"IShowSpeed"}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"lives": [
{
"title": "<string | null>",
"views": "<integer | null>",
"durationSeconds": "<integer | null>",
"image": "<string | null>", …
}
]
}
},
"credits": 2
}Input and output
3 fields
IShowSpeed.9 fields
Good to know
Page size is set by YouTube.
One page per call. Send nextCursor back as cursor to read the next page.
Terms of use. Public channel data; not affiliated with YouTube. Callers are responsible for lawful use.
The same key and credits work for every API.