Hey @tobi,
I just finished up a YouTube API series that has exactly what you are looking for.
You can watch it here, and here are the API docs I used:
- How to Create A YouTube API Key: YouTube Data API の概要 | Google for Developers
- YouTube Search API: Search: list | YouTube Data API | Google for Developers
- YouTube Data API: Videos: list | YouTube Data API | Google for Developers