My internally used web solution to retrieve YouTube video statistics that is based on this example (https://developers.google.com/youtube/v3/quickstart/js) now fails to work. No
What seems to have done it for me after a lot of fiddling was to:
OAuth consent screen
Application name
Save
Lo and behold, after 5 minutes it started working.