Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

YouTube Data API V3 not returning Livestream from Channel ID

$
0
0

I'm working on a project that requires me to get a YouTube live stream's chat for use in my program. Everything was working perfectly with this js package, but it seems that google has changed something because it suddenly stopped working. I have regenerated keys, and am well below my quota, so I know that isn't the problem.

Strangely, when I use the youtube data api "try this api" section in their online documentation, the same problem is happening where the live stream is not found by the id. I've tried it on many different live channels, and all have returned an empty "items" array. Anyone else have this issue?

  function execute() {return gapi.client.youtube.search.list({"part": "snippet, id","channelId": "UCSJ4gkVC6NrvII8umztf0Ow","eventType": "live","type": "video"})    .then(function(response) {            // Handle the results here (response.result has the parsed body).            console.log("Response", response);          },          function(err) { console.error("Execute error", err); }); }

Results from the request:

{"kind": "youtube#searchListResponse","etag": "\"8jEFfXBrqiSrcF6Ee7MQuz8XuAM/4y-zlkAvKOyrH7TNQpxpBtYUxKU\"","regionCode": "US","pageInfo": {"totalResults": 0,"resultsPerPage": 5 },"items": []}

Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>