I need to fetch tags from snippet using youtube api video id api.Refer the below response and log. I don't find tags in the response. So it prints tags as empty. How can I tags information from the snippet?
Sample code:
public static void printVideo(int index, @NonNull Video video) { VideoSnippet snippet = video.getSnippet(); log.trace("Video[" + index +"] Tags = {}", snippet.getTags());}Test log:
youtube.log:[Test worker] TRACE com.ct.youtube.util.YouTubeUtil - Video[0] Tags = nullSample Response:
{"contentDetails": {"duration": "PT5M28S" },"snippet": {"channelId": "UCVfwlh9XpX2Y_tQfjeln9QA","channelTitle": "BibleProject","description": "The wisest king of Israel, King Solomon, is associated with three books of the Bible: Proverbs, Ecclesiastes, and the Song of Songs. Each book offers a unique perspective on how humans can rule with wisdom and the fear of the Lord. In this video, we briefly explore how the message of each book fits into the overall story of the Bible.\n\n#Solomon #Proverbs #Wisdom","publishedAt": "2019-06-27T22:09:15.000Z","thumbnails": {"default": {"url": "https://i.ytimg.com/vi/WJgt1vRkPbI/default.jpg" } },"title": "The Books of Solomon" },"statistics": {"commentCount": "1839","favoriteCount": "0","likeCount": "37779","viewCount": "1213094" }}