1

is there any (JAVA) API for polling Wikipedia for data about a specified person or anything else ? Any other such API would be useful.

Example - search for Michael Jackson

I found this link, but this does not seem to address this query.

Community
  • 1
  • 1
Ankit Rustagi
  • 5,539
  • 12
  • 39
  • 70
  • i too mentioned the link. have a look again – Ankit Rustagi Oct 13 '13 at 16:32
  • I don't see how the answers at that link don't help you... please explain. – TofuBeer Oct 13 '13 at 16:36
  • How can i fetch data about a person say Michael Jackson ? I see nothing like this over there. If you do please post it as a comment or as an answer. Thanks – Ankit Rustagi Oct 13 '13 at 16:41
  • https://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&format=xml&titles=Michael%20Jackson is one example. – TofuBeer Oct 13 '13 at 16:50
  • http://www.integratingstuff.com/2012/04/06/hook-into-wikipedia-using-java-and-the-mediawiki-api/ is another example... substitute Michael Jackson for Web Service. – TofuBeer Oct 13 '13 at 16:51

1 Answers1

3

To query the raw page:

https://en.wikipedia.org/w/index.php?action=raw&title=Michael%20Jackson

To query the page in XML or JSON:

https://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&format=xml&titles=Michael%20Jackson

https://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&format=json&titles=Michael%20Jackson


For more information on the API: https://www.mediawiki.org/wiki/API:Main_page

Decimix
  • 373
  • 1
  • 8