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
  • https://www.youtube.com/channel/
  • www.youtube.com/channel/
  • youtube.com/channel/
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
  • https://www.youtube.com/channel/
  • www.youtube.com/channel/
  • youtube.com/channel/

Data type

External identifier

Statements

YT Channel ID (English)
0 references
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 "YouTube handle" (P11245) qualifier, and the title of the channel can be provided with the "object named as" (P1932) qualifier. (English)
0 references
پتے ڈھونڈݨ لئی Ctrl-I بٹن چھوہو تے کھوج دے حصے وچ canonical پا لاؤ۔ اوتھے link ٹیگ چ شناخت دا پتہ ہندا اے۔ P11245 نال اوہ ورتنوالے دا ناں پا سکدے او۔ (Western Punjabi)
0 references
Pour obtenir l'URL exact d'une page Youtube, y faire un clic droit, sélectionner "Code source de la page", puis rechercher avec CTRL+F le tag <link rel="canonical" href=". L'identifiant est une suite de chiffres et de lettres. (French)
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?:\/\/socialblade\.com\/youtube\/c\/([^#?\/]+)
0 references
^https?:\/\/playboard\.co\/en\/channel\/(UC[-_0-9A-Za-z]{21}[AQgw])
0 references
^https?:\/\/vidiq\.com\/youtube-stats\/channel\/([^#?\/]+)
0 references
https://m.youtube.com/channel/$1
0 references
0 references
https://redirect.invidious.io/channel/$1
0 references
https://playboard.co/en/channel/$1
0 references
https://www.themoviedb.org/video/channel/$1
0 references
https://www.youtube.com/results?search_query=$1&sp=EgIQAg%253D%253D
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