YouTube channel ID (P2397)

From Wikidata
Jump to navigation Jump to search
ID of the YouTube channel of a person or organisation (not to be confused with the name of the channel) The ID can also be used for music.youtube.com IDs.
  • YouTube channel identifier
  • UCID
  • YouTube channel
  • YouTube account
  • official YouTube channel
  • yt channel
  • Social Blade channel
  • YouTube Music Artist ID
  • externalId (YouTube)
  • channel id
Language Label Description Also known as
English
YouTube channel ID
ID of the YouTube channel of a person or organisation (not to be confused with the name of the channel) The ID can also be used for music.youtube.com IDs.
  • YouTube channel identifier
  • UCID
  • YouTube channel
  • YouTube account
  • official YouTube channel
  • yt channel
  • Social Blade channel
  • YouTube Music Artist ID
  • externalId (YouTube)
  • channel id

Data type

External identifier

Statements

0 references
0 references
0 references
0 references
0 references
To obtain the URL, open the HTML source of the channel page and search for the <link rel="canonical"> tag. The human-readable username can be added as a "website username" (P554) qualifier, and the title of the channel can be provided with the "object stated as" (P1932) qualifier. (English)
0 references
https://www.youtube.com/channel/$1
0 references
https://music.youtube.com/channel/$1
0 references
https://www.youtubekids.com/channel/$1
0 references
https://www.youtube.com/feeds/videos.xml?channel_id=$1
0 references
^https?:\/\/\w+\.youtube\.com\/channel\/(UC[-_0-9A-Za-z]{21}[AQgw])
0 references
^https?:\/\/\w+\.youtube\.com\/user\/([-_0-9A-Za-z]+)
0 references
^https?:\/\/\w+\.youtube\.com\/c\/([-_0-9A-Za-zА-Яа-я]+)
0 references
https://m.youtube.com/channel/$1
0 references
0 references
https://redirect.invidious.io/channel/$1
0 references
https://www.youtube.com/results?search_query=$1
0 references
https://www.youtube.com/channel/$2/search?query=$1
0 references
UC[-_0-9A-Za-z]{21}[AQgw]
base64 hashed/salted serial identifier; different from human-readable username (English)
0 references
24 February 2021
YouTube channels (1M+ subscribers)
0 references

Constraints

UC[-_0-9A-Za-z]{21}[AQgw]
Located from the source of the HTML page by searching the source for string: itemprop="channelId" (English)
The following command (when replacing CHANNELNAME) can be used on typical Linux distributions to extract the required channel ID to use for this property from a YouTube channel's URL that contains a channel name rather than channel ID: curl --no-progress-meter 'https://www.youtube.com/c/CHANNELNAME' | xmllint --html --recover --nowarning --xpath 'string(//meta[@itemprop="channelId"]/@content)' - 2>/dev/null (English)
0 references