sS youTubeGetLiveStreamID(S videoID) { videoID = extractYouTubeID(videoID); S url = "https://www.googleapis.com/youtube/v3/videos?part=liveStreamingDetails&id=" + urlencode(videoID) + "&key=" + youTubeDataAPIKey(); Map map = cast loadJSONPage(url); printStruct(map); L items = cast map.get('items); Map item = first(items); if (item == null) null; Map details = cast item.get('liveStreamingDetails); ret getString(details, 'activeLiveChatId); }