Meerkat allows access to all its live broadcasts via REST API. Does YouTube's live streaming API allow the same? I can see that they allow CRUD through the API for a particular user. My question is can I access all live broadcasts with the API?
2
-
Hey @nkukday did my answer help? Let me know if you have any more questions.– JALNov 13, 2015 at 15:19
-
I was able to retrieve the streams! Thanks!– nkukdayNov 24, 2015 at 23:26
Add a comment
|
1 Answer
You can use the Search/list endpoint of the regular YouTube v3 API and filter the results to only receive live content. Make sure to pass in the following parameters:
part -> snippet
eventType -> live
type -> video
(required when setting eventType
to live
)
The full get request:
HTTP GET https://www.googleapis.com/youtube/v3/search?part=snippet&eventType=live&type=video&key={YOUR_API_KEY}