How to find a YouTube channel ID from a handle or URL
Checked on 2026-11-18.
Every YouTube channel has a permanent ID that starts with UC and is 24 characters long. Handles such as @mkbhd can change; the ID cannot, which is why APIs, RSS feeds and analytics tools ask for it.
1. By hand, for one channel
Open the channel on YouTube, open its description (the "more" link under the channel name), choose Share channel and then Copy channel ID.
2. With the official YouTube Data API
The channels.list method takes a handle directly and costs 1 quota unit. You need a Google Cloud project and an API key.
curl "https://www.googleapis.com/youtube/v3/channels?part=id&forHandle=@mkbhd&key=YOUR_GOOGLE_API_KEY"The ID is in items[0].id. This is the right choice when you already use the official API and have quota to spare. It takes handles and, through forUsername, legacy usernames; it does not take an arbitrary channel URL, so you have to pick the handle out of the link yourself.
3. With one HTTP call, from any kind of link
Pipefetch accepts a handle, a channel ID or any channel URL, including the older /c/ and /user/ forms, and returns the ID together with the channel's public profile.
curl "https://pipefetch.com/v1/youtube/channel?channel=@mkbhd" \
-H "x-api-key: YOUR_API_KEY"The answer has the ID in data.id, along with the title, subscriber count, video count and the channel's RSS feed address. One request costs 1 credit, an unknown channel costs nothing, and a new account has 100 free credits. See the reference.
What the ID is good for
- The channel's RSS feed:
https://www.youtube.com/feeds/videos.xml?channel_id=UC…lists its latest uploads without any API. - A link that never breaks:
https://www.youtube.com/channel/UC…keeps working when the handle changes. - The uploads playlist: replace the leading
UCwithUUto get the ID of the playlist that holds all of the channel's public uploads.
Try it with 100 free credits. No card, no Google Cloud project, no OAuth. Get an API key or read the docs.
APIs used in this guide
-
1 credit
YouTube Channel API
Subscribers, video count, description, keywords and avatar for a channel, from a handle, id or URL.
GET /v1/youtube/channel -
1 credit
YouTube Channel Videos API
The latest uploads of a channel, newest first, with views, duration and publish time.
GET /v1/youtube/channel/videos