On 18.02.2013 19:11, Gerard Meijssen wrote: > Hoi, > Does anyone have a script that will give the Wikidata ID when a Wikipedia > article name is given ?
The simplest way by far is Special:ItemByTitle: https://www.wikidata.org/wiki/Special:ItemByTitle/enwiki/Wau_Holland will redirect to https://www.wikidata.org/wiki/Q72250 which references https://en.wikipedia.org/wiki/Wau_Holland Alternatively, you can use the API: https://wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=Wau+Holland&props=info Note that "title" in the output is the item ID (which is also the title of the wikidata page). hth -- daniel -- Daniel Kinzler, Softwarearchitekt Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V. _______________________________________________ Wikidata-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-l
