[Mediawiki-api] Multiple revisions from a generator with prop=revisions

Tony Sidaway tonysidaway at gmail.com
Mon Jul 30 03:25:23 UTC 2007


I'm trying to use a single API call to generate information on
multiple revisions of pages that transclude another page.

The parameters I use are as follows:

action=query
prop=revisions
generator=embeddedin
geinamespace=2
geititle=user:Iron_Chicken/ToDo
rvprop=user|ids|comment

The url looks like this:

http://en.wikipedia.org/w/api.php?action=query&prop=revisions&generator=embeddedin&rvprop=user|ids|comment&geinamespace=2&geititle=user:Iron_Chicken/ToDo

That's great but it only returns information about the latest revision.

So I look at the documentation for prop=revisions and add rvlimit=5

http://en.wikipedia.org/w/api.php?action=query&prop=revisions&generator=embeddedin&rvprop=user|ids|comment&geinamespace=2&geititle=user:Iron_Chicken/ToDo&rvlimit=5

Oops, now I get the dreaded API documentation message.

Wassup?



More information about the Mediawiki-api mailing list