For a single QID does it make sense to use a HTTP HEAD request against the item page? I assume it would perform well on the client at least.
Cheers // Albin Larsson User:Abbe98 2018-05-15 20:05 GMT+02:00 Daniel Kinzler <daniel.kinz...@wikimedia.de>: > You can do this via the API, e.g.: > > https://www.wikidata.org/w/api.php?action=query&prop=& > format=json&titles=Q1|Qx|Q10000003|Q66666666666666&redirects=1 > > Note that this uses QIDs directy as page titles. This works on wikidata, > but may > not work on all wikibase instances. It also does not work for PIDs: for > these, > you have to prefix the Property namespace, as in Property:P31. > > A more wikibase way would be to use the wbgetentities API, as in > https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42|Q64&props= > > However, this API fails when you proivde a non-existing ID, without > providing > any information about other IDs. So you can quickly check if all the IDs > you > have are ok, but you may need several calls to get a list of all the bad > IDs. > > That's rather annoying for your use case. Feel free to file a ticket on > phabricator.wikimedia.org. Use the wikidata tag. Tahnks! > > -- daniel > > _______________________________________________ > Wikidata-tech mailing list > Wikidata-tech@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikidata-tech >
_______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech