I'm collecting data about some films in Russian and, using Wikipedia API, I can query data about required film in JSON format:
https://ru.wikipedia.org/w/api.php?format=json&action=query&prop=revisions&rvprop=content&titles=%s
where %s
is a title of article.
One of required properties - IMDb ID. The problem here is that not all articles contain it in wiki markup (actually in film template), but rendered page always.
Russian version of film template says that IMDb ID is automatically taken from Wikidata (English version says about refusing any database in this infobox at all in favor of links section at the bottom).
Is there a way to request IMDb ID using Wikipedia API or Wikidata API?