I want to replace a vanity name (like "thejntest") with the corresponding user-id (UCWLptbzZ....) programmatically. I don't find any possibility within the Channels-List call
After searching here on stackoverflow, I found the following thread (Retrieve Youtube Channel info for "Vanity" channel), where the usage of the Search-List call is described. Although it's a good idea to search youtube for a given username and contenttype = "channel", I don't received satisfying results at all. (sometimes there are too many results)
So I was wondering if there's another possibility to get a user-id based on the username? Or is it safe to rely on the first result of the search query, or by double checking wether a returned username corresponds to the given search-query?