static long youTubeSubCount(S channel) { channel = assertNempty(parseYouTubeChannel(channel)); S url ="https://www.googleapis.com/youtube/v3/channels?part=statistics&id=\*channel*/&key=" + youTubeDataAPIKey(); Map map = cast loadJSONPage(url); L items = cast map.get("items"); Map item = cast first(items); Map statistics = cast item.get("statistics"); ret toLong(statistics.get("subscriberCount")); }