After pouring over the documentation for YouTube data API v3, I cannot find anything that deals with the new YouTube handles system.
There are several questions on StackOverflow trying to address this topic:
- YouTube Data API Get Channel by Handle
- how to map youtube handles to channel IDs
- How can I get YouTube channel ID using channel name URL?
There are a couple of solutions proposed by the community:
- The search endpoint using the handle name as the q value
- scraping the channel by using
requests.get(f"https://youtube.com/@{handle_name}")
The issues I have with these solutions are as follows:
- the search endpoint is unreliable (try using it to find https://youtube.com/@illustrator and you'll get an adobe channel) and costs 100 quota where the channel endpoint costs 1.
- scraping seems sketchy in terms of the terms of service so I (and those above me) would prefer a more official method.
The support page for YouTube data API V3 https://developers.google.com/youtube/v3/support states that Google engineers should be monitoring the StackOverflow questions tagged with youtube-api
, youtube-data-api
and youtube-v3-api
so I'm hoping one of them might see this and give an official answer to the question, even if that answer is that they have no plans in the future to support it.