Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to map youtube handles to channel IDs

Youtube recently rolled out handles feature where they gave users youtube.com/@xxx type usernames, when visited these URLs show user's channel but I can't find any documentation or reference in API repositories.

How to extract youtube user channel ID from their handle?

like image 488
pseudozach Avatar asked Oct 17 '25 15:10

pseudozach


1 Answers

YouTube Data API v3 now supports forHandle filter, see the Stack Overflow answer 77974042.


One more time YouTube Data API v3 doesn't provide a basic feature.

I recommend you to try out my open-source YouTube operational API. Indeed by fetching https://yt.lemnoslife.com/channels?handle=@HANDLE you will get the YouTube channel id you are looking for in item["id"].

For instance with the YouTube channel handle @WHO, you would get:

{
    "kind": "youtube#channelListResponse",
    "etag": "NotImplemented",
    "items": [
        {
            "kind": "youtube#channel",
            "etag": "NotImplemented",
            "id": "UC07-dOwgza1IguKA86jqxNA"
        }
    ]
}
like image 125
Benjamin Loison Avatar answered Oct 22 '25 05:10

Benjamin Loison



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!