Page MenuHomePhabricator

[Story] API module to list sitegroups usable for sitelinks
Open, LowPublic

Description

From #wikidata a few minutes ago:

[11:31:48 PM] <nichtich> Hi! I am looking for a way to query the list of enables site prefixes. https://www.wikidata.org/w/api.php?action=sitematrix shows ALL Wikimedia sites, also those not enables for Wikidata. AFAIK it's wikipedia, wikivoyage and commons, but how do I query only those and how do I make the query also return other Wikimedia projects when these enable Wikidata?
[11:32:38 PM] <legoktm> if you're looking for the easy way https://noc.wikimedia.org/conf/wikidataclient.dblist is what you want
[11:32:46 PM] <legoktm> the *proper* way would look like...
[11:33:38 PM] <legoktm> nichtich: https://www.wikidata.org/w/api.php?action=paraminfo&modules=wbgetentities&format=jsonfm
[11:33:57 PM] <legoktm> under parameters, name: 'sites', look at the 'type' key
[11:34:03 PM] <legoktm> a bit weird
[11:34:22 PM] <legoktm> there probably should be a proper API module for this

action=query&list=wikibaseclients or something.

Details

Reference
bz58200

Related Objects

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:33 AM
bzimport set Reference to bz58200.
bzimport added a subscriber: Unknown Object (MLST).
Legoktm created this task.Dec 9 2013, 7:35 AM

Change 110409 had a related patch set uploaded by Addshore:
Add wbgetsites api module

https://gerrit.wikimedia.org/r/110409

Change 110427 had a related patch set uploaded by Addshore:
Implement ApiQuerySites class

https://gerrit.wikimedia.org/r/110427

Change 110409 abandoned by Addshore:
Add wbgetsites api module

https://gerrit.wikimedia.org/r/110409

This patch doesn't actually return the desired list but more than that.

Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 27 2015, 11:37 AM
dg711 added a subscriber: dg711.Jan 12 2016, 7:40 PM
Jonas renamed this task from API module to list sitegroups usable for sitelinks to [Story] API module to list sitegroups usable for sitelinks.Jan 18 2016, 4:42 PM
Jonas updated the task description. (Show Details)
Jonas set Security to None.
Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptMay 23 2016, 11:46 AM
Ladsgroup updated the task description. (Show Details)Jul 11 2017, 10:55 PM