YouTube channel various ids
YouTube Data API v3 partial support with these ids
YouTube Data API v3 mostly supports channel ids (the ones starting with UC
) however it's possible with it to retrieve channel ids from channel user/
ids thanks to Channels: list endpoint with forUsername
filter.
However YouTube Data API v3 doesn't provide the ability to retrieve channel ids from c/
ids and handles.
YouTube operational API completes this support
Nevertheless you can retrieve channel ids from c/
ids and handles thanks to my open-source YouTube operational API. Indeed by fetching respectively https://yt.lemnoslife.com/channels?cId=C_ID and https://yt.lemnoslife.com/channels?handle=HANDLE you'll get the associated channel id.
For instance with hugodecrypte
and @redcross
you would respectively obtain:
{
"kind": "youtube#channelListResponse",
"etag": "NotImplemented",
"items": [
{
"kind": "youtube#channel",
"etag": "NotImplemented",
"id": "UCAcAnMF0OrCtUep3Y4M-ZPw"
}
]
}
{
"kind": "youtube#channelListResponse",
"etag": "NotImplemented",
"items": [
{
"kind": "youtube#channel",
"etag": "NotImplemented",
"id": "UC0aMPje3ZACnQPKM_qzY0vw"
}
]
}