Does the wikipedia API give structured information on the infobox?

T. M. Source

I am aware of the following solutions:

  1. The wikipedia infobox can be returned as HTML or in the "wikitext" model. However, in both cases, I'd need to parse the data after, which is highly error-prone.
  2. Use DBpedia or Wikidata. Unfortunately, these services do not have all the data that I would like to use.

Is there a way to get the infobox information as json or in some other structured format? Alternatively, are there any ruby gems that parse the 'wikitext' model data converting it into a structured format? If not, where can I find the documentation on infobox formatting to do it myself?

wikipediawikipedia-api

Answers

comments powered by Disqus