YouTube Data API v3 – How to search YouTube using Java and extract Video ID of the most relevant result?

YouTube recently dropped its support for RSS/Atom feeds and recently I was asked if there is a workaround. Or in other words, if it’s still possible to use Java to search YouTube by any keyword and retrieve a result of the most relevant video(s). After a bit of tinkering, following is the code that allows searching of YouTube by keyword (or entire sentence) in the currently supported YouTube Data API v3.  [Read more…]