Property talk:P2397

Latest comment: 8 months ago by מקף־עברי in topic Incoming YouTube handles

Documentation

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
RepresentsYouTube channel (Q17558136)
Applicable "stated in" valueYouTube (Q866)
Has qualitycase sensitive (Q257869)
Data typeExternal identifier
Corresponding templateTemplate:YouTube channel (Q26058719), Template:YouTube Channel Link (Q26139290)
Domain
According to this template: human (Q5), organization (Q43229)
According to statements in the property:
transport service itinerary (Q1067164), human (Q5), organization (Q43229), group of humans (Q16334295), database (Q8513), work (Q386724), occurrence (Q1190554), position (Q4164871), YouTube channel (Q17558136), award (Q618779), television channel (Q2001305), fictional character (Q95074), podcast (Q24634210), social media account (Q102345381), zoo (Q43501), theatre building (Q24354), brand (Q431289), public aquarium (Q2281788), church building (Q16970), concert hall (Q1060829), media (Q340169), influencer (Q2906862), facility (Q13226383), group (Q16887380), service (Q7406919), administrative territorial entity (Q56061), group of fictional characters (Q14514600) or VTuber (Q55155641)
When possible, data should only be stored as statements
Allowed valuesUC[-_0-9A-Za-z]{21}[AQgw] (base64 hashed/salted serial identifier; different from human-readable username)
Usage notesTo 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.
ExampleJimmy Wales (Q181)UCEbFsO2sM_wjTn44YAgSrrg
Marcus & Martinus (Q6757975)UCkQfpYN8f6iuNTZkATOqVaQ
UCRUmSbfoolI9b8iRyrGqFUw
Basshunter (Q383541)UCXUCegBr2GL7mo6O1l-xvVw
UCmm1ImM6ZlyYk5rUbbEdM3w
UCKT4B4C8QAnZV5NpvmykcLA
UCXgtKN-w_WZvMPfqOWy_BsQ
Spinnin' Records (Q2310883)UCpDJl2EmP7Oh90Vylx0dZtA
Danish Red Cross (Q12307527)UCGSDJNCcQNsLJKP6PhF8kvg
Sourcehttps://youtube.com
https://www.youtube.com/gaming/games
https://commentpicker.com/youtube-channel-id.php
Formatter URLhttps://www.youtube.com/channel/$1
https://www.youtubekids.com/channel/$1
https://music.youtube.com/channel/$1
https://www.youtube.com/feeds/videos.xml?channel_id=$1
Tracking: usageCategory:Pages using Wikidata property P2397 (Q29072242)
Related to country  United States of America (Q30) (See 762 others)
See alsoYouTube video ID (P1651), YouTube playlist ID (P4300), Twitch channel ID (P5797), multi-channel network (P6540), Periscope ID (P6654), YouTube handle (P11245)
Lists
Proposal discussionProposal discussion
Current uses
Total231,460
Main statement103,15344.6% of uses
Qualifier127,37955% of uses
Reference9280.4% of uses
Search for values
Explanations [Edit]

For a page like https://www.youtube.com/user/LuciaGilVEVO, view the page source, where you will find a header:

<meta itemprop="channelId" content="UCb9ThkmYIUXyHb5pJiTyn1w">

From this, extract the channel ID, UCb9ThkmYIUXyHb5pJiTyn1w.

Alternatively, Click the “About” tab, then click the share button and select “Copy channel ID”.

Twice a day Mbchbot will check for incorrect values and replace them where possible.
Format “UC[-_0-9A-Za-z]{21}[AQgw]: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P2397#Format, hourly updated report, SPARQL
Type “transport service itinerary (Q1067164), human (Q5), organization (Q43229), group of humans (Q16334295), database (Q8513), work (Q386724), occurrence (Q1190554), position (Q4164871), YouTube channel (Q17558136), award (Q618779), television channel (Q2001305), fictional character (Q95074), podcast (Q24634210), social media account (Q102345381), zoo (Q43501), theatre building (Q24354), brand (Q431289), public aquarium (Q2281788), church building (Q16970), concert hall (Q1060829), media (Q340169), influencer (Q2906862), facility (Q13226383), group (Q16887380), service (Q7406919), administrative territorial entity (Q56061), group of fictional characters (Q14514600), VTuber (Q55155641): item must contain property “instance of (P31)” with classes “transport service itinerary (Q1067164), human (Q5), organization (Q43229), group of humans (Q16334295), database (Q8513), work (Q386724), occurrence (Q1190554), position (Q4164871), YouTube channel (Q17558136), award (Q618779), television channel (Q2001305), fictional character (Q95074), podcast (Q24634210), social media account (Q102345381), zoo (Q43501), theatre building (Q24354), brand (Q431289), public aquarium (Q2281788), church building (Q16970), concert hall (Q1060829), media (Q340169), influencer (Q2906862), facility (Q13226383), group (Q16887380), service (Q7406919), administrative territorial entity (Q56061), group of fictional characters (Q14514600), VTuber (Q55155641)” or their subclasses (defined using subclass of (P279)). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: Individual Number (Q18658883)
List of violations of this constraint: Database reports/Constraint violations/P2397#Type Q1067164, Q5, Q43229, Q16334295, Q8513, Q386724, Q1190554, Q4164871, Q17558136, Q618779, Q2001305, Q95074, Q24634210, Q102345381, Q43501, Q24354, Q431289, Q2281788, Q16970, Q1060829, Q340169, Q2906862, Q13226383, Q16887380, Q7406919, Q56061, Q14514600, Q55155641, SPARQL
Scope is as main value (Q54828448), as reference (Q54828450), as qualifier (Q54828449): the property must be used by specified way only (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P2397#Scope, SPARQL
Allowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P2397#Entity types
 
This property is being used by:

Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.)

  Pattern ^(?:https:\/\/(?:www\.)?youtube\.com\/)?@([A-Za-z0-9_\-\.]{3,30})$ will be automatically replaced to \1 and moved to YouTube handle (P11245) property.
Testing: TODO list


Type constraint edit

The type constraint has a lot of violations because almost anything can have a YouTube channel. Should we add all current violations to the list of classes or should we just remove the constraint (which I think is the best solution). Mbch331 (talk) 06:46, 15 May 2016 (UTC)Reply

The problem is the batshit way Wikidatans want to treat items. Let's take Splatoon which has 4 trailers attached, ideally each should be its own Wikidata item with new subtype video game trailer (a cousin of Q622550). But that creates "too many items", Wikidata is only a simulacrum Wikipedia for language links (before even considering ports). Another issue I've been tackling is type television station only meant for terrestrial, there is no general type for terrestrial, cable, and subscription stations and current the subclassing is wrong. Dispenser (talk) 11:27, 15 May 2016 (UTC)Reply
Whoops, I thought this was YouTube video ID (P1651). Dispenser (talk) 11:37, 15 May 2016 (UTC)Reply
It should be nouns (Person/Place/Thing) not adjectives or verbs. Not sure how exactly to widen it to that. Dispenser (talk) 03:22, 16 May 2016 (UTC)Reply
That will be a problem. Something isn't defined as a noun, since this isn't a dictionary. You would first have to create a property to state if something is a noun or not, than it needs to be added to all statements that are a noun and then this check could change. Since that's something that's hardly going to work, I suggest to skip that check and just remove this constraint since it isn't working and can't be made to work. Mbch331 (talk) 08:18, 30 July 2016 (UTC)Reply
I've just removed the constraint as the list is so long now it gives LUA errors. Mbch331 (talk) 06:05, 6 August 2016 (UTC)Reply

Not channel but playlist? edit

&list=PLA33F68D62134F189

You should probably request a new property for that. Mbch331 (talk) 18:29, 6 May 2017 (UTC)Reply

The Link edit

Hello.The Link connects to "channel" but there is also "user" (example - the correct), is there a solution for this?Thank you ديفيد عادل وهبة خليل 2 (talk) 08:00, 12 October 2017 (UTC)Reply

Information that gets stored in this property that isn't a channel should be deleted. We we want to have a Youtube User ID that would need its own proposal. ChristianKl (talk) 10:40, 12 October 2017 (UTC)Reply
Thank you for replying.Since they are doing the same and instead of Re-suggestion the same proposal with a new link, Is it possible to create the new property directly based on the original proposal?Thank you ديفيد عادل وهبة خليل 2 (talk) 13:23, 12 October 2017 (UTC)Reply
No this isn't possible. The outcome of the original proposal is this property. A new property needs a new discussion, since it's based on a different outcome. Mbch331 (talk) 05:01, 13 October 2017 (UTC)Reply
@ChristianKl: Any incorrect data will either be corrected to a channel id automatically twice a day (by my bot) or if not possible the information will be deleted. Mbch331 (talk) 05:03, 13 October 2017 (UTC)Reply
@ChristianKl: As I said, the property is the same (not) but with a new link, what's the problem?
This property was not created for storing any information information about Youtube usernames and thus you actually need to ask for a property that stores Youtube usernames. ChristianKl (talk) 13:05, 13 October 2017 (UTC)Reply
@ChristianKl: In YouTube, there is no difference between users and channels: the two are the same (details 1 2).Based on this, please create a new property as another copy of the original.Thank you ديفيد عادل وهبة خليل 2 (talk) 16:41, 13 October 2017 (UTC)Reply
If there would be a 1-on-1 mapping between both there's an argument that there's no need to store user data in a separate property and not an argument that an additional argument can be created without a proposal. In addition your link doesn't show that every user has a channel. ChristianKl (talk) 16:45, 13 October 2017 (UTC)Reply

Tool to get channel ID from a username edit

I found a tool that can take a YouTube username and (though some API calls) give you back the channel ID.

https://johnnythetank.github.io/youtube-channel-name-converter/  – The preceding unsigned comment was added by William Graham (talk • contribs) at 3 feb 2018 22:28‎ (UTC).

You can use that tool, or just enter the username and have my bot do the work for you. Mbch331 (talk) 22:36, 3 February 2018 (UTC)Reply
I've just tested a similar tool[1] for Q234750 (from user SUZIQUATROOFFICIAL to channel UCutQebYflgcV6kCiNKKtbxg), because I didn't know your support bot. All those "possible vandalism" tags tend to make me nervous, but presumably the YT user URL is unsuited as a referenve URL for the corresponding channel ID. OTOH I dislike statements without any reference at all. –84.46.52.175 05:36, 16 December 2018 (UTC)Reply

The link above no longer works, but there are other sites that will convert a user URL into a channel URL: https://commentpicker.com/youtube-channel-id.php. Another very simple way to get the channel ID: At any channel page with "user" URL click a video of the channel (in its "VIDEOS" tab) and click the channel name on the video. Then you can get to the page with its "channel" URL. (I found this helpful info at https://stackoverflow.com/questions/14366648/how-can-i-get-a-channel-id-from-youtube/18665812#18665812)

Single value constraint edit

I think this property should not have single-value constraint (Q19474404). Many items, including artists, companies, etc, have more than a YouTube channel. Take a look at the exception to constraint (P2303) property list to see the considerable amount of items exempted for this. Esteban16 (talk) 00:42, 13 February 2019 (UTC)Reply

  Notified participants of WikiProject property constraints --Esteban16 (talk) 22:09, 9 September 2019 (UTC)Reply

Based on consensus, I have removed the constraint. --Esteban16 (talk) 23:51, 10 September 2019 (UTC)Reply

Verification edit

I've left a note on project chat (Wikidata:Project chat#Indicating verified accounts) on how best to indicate verified accounts across the different social media properties - comments welcome there. Andrew Gray (talk) 23:32, 15 March 2019 (UTC)Reply


number of subscribers/followers edit

See Wikidata:Property proposal/subscribers. --- Jura 04:46, 25 July 2019 (UTC)Reply

RSS edit

I found it by "viewing source" and searching for RSS it'll then be close-by inside the URL Back ache (talk) 14:58, 4 June 2020 (UTC)Reply

"Mandatory" qualifiers edit

The "mandatory" qualifiers don't actually seem that mandatory — why is start time/number of subscribers required? Sdkb (talk) 09:13, 23 June 2020 (UTC)Reply

@Trade: - You added the constraints. Can you explain? Mbch331 (talk)
All Youatube channels lists their start time and number of subscribers so i thought it would be quite fitting for this identifier. Also pretty helpful for people not familiar with WD.--Trade (talk) 10:20, 23 June 2020 (UTC)Reply
My understanding is that qualifiers should only be mandatory if leaving them out would create problems, though. These seem at best like things we would suggest rather than demand. {{u|Sdkb}}talk 06:22, 24 June 2020 (UTC)Reply
I don't see the need for them being mandatory either. Mbch331 (talk) 08:26, 24 June 2020 (UTC)Reply

P1932, not P1810, for channel's title edit

In my view, the title of the Youtube channel should be provided with qualifier P1932 (English label was clarified from "stated as" to "object stated as" at 13:24, 31 May 2022), not P1810 (English label was clarified from "named as" to "subject named as" at 13:23, 31 May 2022), because the title is the name of the semantic triple's object (Youtube channel), not subject (Youtube channel's owner). I have accordingly revised the Wikidata usage instructions (added at 18:28, 22 January 2022), and added P1932 to allowed qualifiers constraint. --Neo-Jay (talk) 16:02, 1 June 2022 (UTC)Reply

Incoming YouTube handles edit

So Google has been rolling out YouTube handles the past few weeks, and they intend to assign every channel a handle by 14 Nov 2022.

Wonder how this should be treated: a website username or ID (P554) qualifier on this YouTube channel property? Or a totally new property to propose? Btcprox (talk) 14:57, 2 November 2022 (UTC)Reply

I would say new property. Username is already used for https://youtube.com/<username> and https://youtube.com/user/<username>. Mbch331 (talk) 15:18, 2 November 2022 (UTC)Reply
@Btcprox, Mbch331: Wikidata:Property proposal/youtube handle --Loominade (talk) 07:18, 22 November 2022 (UTC)Reply
Hey there, seems like it hasn't been addressed yet. מקף־עברי (talk) 22:45, 1 August 2023 (UTC)Reply
Return to "P2397" page.