You could perhaps use Invidious's API?
Invidious is "an alternative front-end to YouTube" which can be self-hosted or you can use one of the popular hosted instances.
https://github.com/iv-org/invidious/ https://github.com/iv-org/invidious/wiki/API
5 karma · joined December 12, 2012
Invidious is "an alternative front-end to YouTube" which can be self-hosted or you can use one of the popular hosted instances.
https://github.com/iv-org/invidious/ https://github.com/iv-org/invidious/wiki/API
Thank you for doing this. Your site is a treasure.