You should be able to use Google Takeout to get all of your YouTube data, including your watch history.
This article is a nice example of someone using it:
> When I downloaded all my YouTube data, I’ve noticed an interesting file included. That file was named watch-history and it contained a list of all the videos I’ve ever watched.
https://blog.viktomas.com/posts/youtube-usage/
Of course as an European it's a legal obligation for companies to give you access, but I think Google Takeout works worldwide?