Most servers are not able to access the Google API.
Invidious report of the same(ish) problem: https://github.com/iv-org/invidious/issues/4045#issuecomment-1674373088
That is just Invidious https://github.com/iv-org/invidious And, while it may not be actively blocked, they are still on the risk of being API blocked as it is the case here.
The advantage of scraping is that it can’t be really blocked if you make your private instance and you don’t have to follow API ToS, the disadvantage is that it can easily break with little changes of the Youtube UI.