Why does this Wikidata query return no results?

297 views Asked by At

Shouldn't this Wikidata query return something?

https://www.wikidata.org/w/api.php?action=query&titles=Kevin_Bacon

What am I missing?

1

There are 1 answers

0
svick On BEST ANSWER

Not, it shouldn't, there is no Wikidata page titled "Kevin Bacon". The Wikidata page containing information about the actor Kevin Bacon is https://www.wikidata.org/wiki/Q3454165.

This means that the API query https://www.wikidata.org/w/api.php?action=query&titles=Q3454165 will return something (specifically, the page id). Without knowing what do you actually want, it's hard to help you further, though it's likely the Wikidata-specific API methods are what you want, instead of action=query.