Ask for just the most recent revision, set rvlimit=1&format=xml
http://www.mediawiki.org/wiki/API:Query_-_Properties#revisions_.2F_rv
Eric W. Brown
ericb(a)metacafe.com
[[User:Eric94043]]
From: mediawiki-api-bounces(a)lists.wikimedia.org
[mailto:mediawiki-api-bounces@lists.wikimedia.org] On Behalf Of Hashmir
Shamshir
Sent: Tuesday, March 17, 2009 5:13 PM
To: mediawiki-api(a)lists.wikimedia.org
Subject: [Mediawiki-api] How do I get a page without metadata?
Hi all,
I really like your API. I'm wondering how do I get the data in xml
format of a page? I've been using wikipedia's example here:
http://en.wikipedia.org/w/api.php, for details, and I can see how to
search for pages, get metadata, and other such nifty stuff. But really
all I want is the content of a page -- how would I, say, get the English
wikipedia data of the page on Albert Einstein in xml format?
http://en.wikipedia.org/w/api.php?action=query something I hope!
Thanks for your help!