Property talk:P6552
Documentation
numeric identifier for a user on X; use as qualifier for P2002 "X username"
Has quality | numeric identifier (Q93868746) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Data type | External identifier | ||||||||||||
Domain | transport service itinerary (Q1067164), human (Q5), organization (Q43229), group of humans (Q16334295), database (Q8513), work (Q386724), occurrence (Q1190554), position (Q4164871), YouTube channel (Q17558136) or individual animal (Q26401003) | ||||||||||||
Allowed values | \d+ | ||||||||||||
Example | Mika Pikazo (Q61058280) → 1182616704 National Aeronautics and Space Administration (Q23548) → 11348282 Wikidata (Q2013) → 57320656 | ||||||||||||
Source | https://x.com | ||||||||||||
Formatter URL | https://x.com/i/user/$1 https://twitter.com/i/user/$1 https://syndication.twitter.com/srv/timeline-profile/user-id/$1 https://twitter.com/intent/user?user_id=$1 https://x.com/intent/user?user_id=$1 | ||||||||||||
Related to country | United States of America (Q30) (See 771 others) | ||||||||||||
See also | X username (P2002), hashtag (P2572), X post ID (P5933), website account on (P553) | ||||||||||||
Lists | |||||||||||||
Proposal discussion | Proposal discussion | ||||||||||||
Current uses |
| ||||||||||||
Search for values |
List of violations of this constraint: Database reports/Constraint violations/P6552#Entity types
List of violations of this constraint: Database reports/Constraint violations/P6552#Scope, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P6552#Type Q1067164, Q5, Q43229, Q16334295, Q8513, Q386724, Q1190554, Q4164871, Q17558136, Q26401003, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P6552#Single value, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P6552#Conflicts with P31, SPARQL
todo: delete P6552 statement (not the P6552 qualifier) (Help)
Violations query:
SELECT ?item ?id ?statement { ?item p:P2002 / pq:P6552 ?id . ?item p:P6552 ?statement . ?statement ps:P6552 ?id . }
List of this constraint violations: Database reports/Complex constraint violations/P6552#Main value same as qualifier
Pattern ^@?([A-Za-z]{3}[A-Za-z0-9_]{4,12})(/|\?lang)$ will be automatically replaced to \1 and moved to X username (P2002) property. Testing: TODO list |
Pattern ^(https?://)?twitter\.com/([A-Za-z0-9_]{1,15})$ will be automatically replaced to \2 and moved to X username (P2002) property. Testing: TODO list |
Finding the user ID on Twitter's new redesign
[edit]Inspect the profile's page and then inspect the follow button on the profile's description. there should be a data-testid="<number>-follow"
with <number>
being the user ID. The header image still contains the user ID. — Jeluang Terluang (talk) 09:26, 23 July 2019 (UTC)
- I also found it in
data-screen-name="atblahblahblah" data-name="Blah Blah Blah" data-user-id="<number>"
--User123o987name (talk) 11:21, 2 February 2020 (UTC) - @Jeluang Terluang: I just use this website, it's pretty intuitive http://gettwitterid.com DemonDays64 | Talk to me 22:05, 24 May 2020 (UTC) (please ping on reply)
- I know of third party sites that can get the user ID. I just meant how to get the IDs themselves without using third party sites. But that is one of the many others that can help other users to find them. – Jeluang Terluang (talk) 10:25, 25 May 2020 (UTC)
- This bookmarklet Help:How to get a Twitter user numeric ID by @Rxy is helpful without using third party websites. Kethyga (talk) 05:34, 24 June 2021 (UTC)
- I know of third party sites that can get the user ID. I just meant how to get the IDs themselves without using third party sites. But that is one of the many others that can help other users to find them. – Jeluang Terluang (talk) 10:25, 25 May 2020 (UTC)
Qualifier for X username (P2002)?
[edit]I wonder if we shouldn't simply use this as a qualifier of X username (P2002). I suppose it doesn't matter when the name is stable and there is just one account.
- For accounts that changed names, it can be an easy way to identify them: see Property_talk:P2002#Renamed_accounts?
- Also, items such as Wikidata (Q2013) that have multiple accounts: Q2013#P2002 and Q2013#P6552 could benefit from the two identifiers being linked explicitly. --- Jura 15:49, 8 August 2019 (UTC)
- I updated English description/constraints accordingly. I will check about the best was to fix the (somewhat limited) current uses. --- Jura 12:36, 24 August 2019 (UTC)
- Given that we already use a bot to populate Genius artist numeric ID (P6351) i imagine we could do the same here. --Trade (talk) 19:43, 7 September 2019 (UTC)
- I updated English description/constraints accordingly. I will check about the best was to fix the (somewhat limited) current uses. --- Jura 12:36, 24 August 2019 (UTC)
Documentation
[edit]I document for this in Help:How to get of Twitter user numeric ID --rxy (talk) 07:24, 19 February 2020 (UTC)
- @Rxy: I just use this website, it's pretty intuitive http://gettwitterid.com DemonDays64 | Talk to me 22:06, 24 May 2020 (UTC) (please ping on reply)
- That site seems to be kaput. Here is a tool to find the Twitter User ID - https://codeofaninja.com/tools/find-twitter-id/ - Fuzheado (talk) 10:05, 4 March 2021 (UTC)
- This now seems to also be kaput. Hoping there's a working tool for this. Trilotat (talk) 14:58, 20 August 2022 (UTC)
- @Trilotat: See this thread below → Property talk:P6552#Video tutorial and other instructions. Regards Kirilloparma (talk) 17:06, 20 September 2022 (UTC)
- This now seems to also be kaput. Hoping there's a working tool for this. Trilotat (talk) 14:58, 20 August 2022 (UTC)
- That site seems to be kaput. Here is a tool to find the Twitter User ID - https://codeofaninja.com/tools/find-twitter-id/ - Fuzheado (talk) 10:05, 4 March 2021 (UTC)
Reversing the roles of P2002 and P6552
[edit]If interested in this topic please contribute to the discussion at Wikidata:Requests_for_permissions/Bot/SilentSpikeBot#Relevant_property_discussion where I seek to establish a bot task to handle this conversion and prevent data becoming stale. --SilentSpike (talk) 15:06, 20 February 2020 (UTC)
Changed formatter URL
[edit]Hi! In this edit I changed the value of formatter URL (P1630) on this. The previous value was:
https://twitter.com/intent/user?user_id=$1
but with tracking protection settings and some cookies blocked in Firefox on my computer, this never redirects. However, what I changed it to:
https://twitter.com/i/user/$1
works (and does so pretty quickly). DemonDays64 | Talk to me 22:03, 24 May 2020 (UTC) (please ping on reply)
- @DemonDays64: No need to change if both are valid. You can list both and set this new one as preferred rank since it seems better. --SilentSpike (talk) 22:06, 24 May 2020 (UTC)
Video tutorial and other instructions
[edit]Hi. For anyone interested, I just created a short video tutorial (on the right) on how to find a numeric ID using the "Report an ussue" method. I also updated the instructions here.
For those who, in addition to the numerical identifier, want to know the exact date of creation of the Twitter account, there is a website where this information is provided. If this website is down for some reason, you can use the other one which seems to be a mirror of codeofninja, but I'm not sure about that. Kirilloparma (talk) 16:44, 20 September 2022 (UTC)
Twitter numeric user ID no longer works for those who are not a member of X
[edit]Since Twitter numeric user ID no longer works for those who are not a members of X, I wonder what WD should do? Opinions? Ottawahitech (talk) 16:59, 14 January 2024 (UTC)
https://convertxid.com for numeric user ID
[edit]https://convertxid.com might help.
Cheers Shkuru Afshar (talk) 10:28, 26 July 2024 (UTC)
- United States of America-related properties
- All Properties
- Properties with external-id-datatype
- Properties used on 100000+ items
- Properties with entity type constraints
- Properties with scope constraints
- Properties with constraints on type
- Properties with single value constraints
- Properties with format constraints
- Properties with constraints on items using them
- Properties with conflicts with constraints
- Properties with complex constraints