Since mid-Jan 2022, I noticed that the YouTube Data API's list
method no longer returns liveStreamingDetails.concurrentViewers
. This happens to me with all live videos in several channels.
https://youtube.googleapis.com/youtube/v3/videos?part=liveStreamingDetails&id=[VIDEO_ID]&key=[YOUR_API_KEY]
Response:
{"kind": "youtube#videoListResponse","etag": "ETAG_ID","items": [ {"kind": "youtube#video","etag": "ETAG_ID","id": "VIDEO_ID","liveStreamingDetails": {"actualStartTime": "YYYY-MM-DDTHH:MM:SSZ","actualEndTime": "YYYY-MM-DDTHH:MM:SSZ","scheduledStartTime": "YYYY-MM-DDTHH:MM:SSZ" } } ],"pageInfo": {"totalResults": 1,"resultsPerPage": 1 }}
Document references:
- https://developers.google.com/youtube/v3/docs/videos/list
- https://developers.google.com/youtube/v3/docs/videos#liveStreamingDetails.concurrentViewers
From the second doc (bold is mine):
The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video.
As far as I know, none of the channels nor videos that I tested with have blocked viewcounts.
Is there any other way to retrieve the concurrent viewers programmatically?