[Mediawiki-api] Mirroring Wikipedia through the API?

Stephen Bain stephen.bain at gmail.com
Sun Jul 13 07:15:04 UTC 2008


On Sun, Jul 13, 2008 at 5:52 AM, Dirk Riehle <dirk at riehle.org> wrote:
>
> looking through the API: http://en.wikipedia.org/w/api.php I can't find
> any way to get at the actual page contents. Is this correct?

Sure there is, you use something like this:

http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=1&rvprop=content

That's the contents of the current revision of the Main Page.

Search for "prop=revisions" in the API documentation.

-- 
Stephen Bain
stephen.bain at gmail.com



More information about the Mediawiki-api mailing list