Is There a Wikipedia Api?

Is There a Wikipedia Api?

On my Wikipedia user page, I run a Wikipedia script that displays my statistics (number of pages edited, number of new pages, monthly activity, etc.).

I'd like to put this information on my blog.

Is there an API that would allow me to do something like this?

1

5 Answers

MediaWiki's API is running on Wikipedia (docs). You can also use the Special:Export feature to dump data and parse it yourself.

More information.

0

Wikipedia is built on MediaWiki, and here's the MediaWiki API.

If you want to extract structured data from Wikipedia, you may consider using DbPedia

It provides means to query data using given criteria using SPARQL and returns data from parsed Wikipedia infobox templates

Here is a quick example how it could be done in .NET

There are some SPARQL libraries available for multiple platforms to make queries easier

JWPL - Java-based Wikipedia Library -- An application programming interface for Wikipedia

Here are 2 from infochimps.com:

Chloe Bennett
Author

Chloe Bennett

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.