Simple library for searching YT video
String key = "api key"; YouTubeSearchClient client = new YouTubeSearchClient(key); String output = client.Search("anime", "snippet", "video", 10); System.out.println(output);
the output will give 10 video with "anime" keyword in JSON format.
or if you don't have api key use this:
YoutubeClient client = new YoutubeClient(); List<YoutubeVideo> video = client.search("anime", 5);
this will give 5 video with "anime" keyword.
- Build with JDK 8