0

Shouldn't this Wikidata query return something?

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

What am I missing?

Termininja
  • 6,620
  • 12
  • 48
  • 49
fandang
  • 605
  • 1
  • 6
  • 14

1 Answers1

4

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.

svick
  • 236,525
  • 50
  • 385
  • 514