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

[email protected]

[[User:Eric94043]]

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Hashmir
Shamshir
Sent: Tuesday, March 17, 2009 5:13 PM
To: [email protected]
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!

_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to