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

How to fetch youtube tags using search youtube videoId api call?

$
0
0

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 = null

Sample 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"  }}

Viewing all articles
Browse latest Browse all 3831

Trending Articles



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