I created a small bash script to search and play videos from YouTube with mpv as the web interface is just abysmal. The source code can be found here: https://github.com/H-M-H/yt

It uses youtube-dl to do the search and so no API key is required.