API talk:Query - Revisions

From mediawiki.org
Latest comment: 16 years ago by Belden Fox in topic Filtering out bot generated revisions?

Hi, It would be great to simply have a way to get the *number* of total revisions made to a page. Thanks!

Getting system messages ?[edit]

Hi,

Is there a way to retrieve a system message using the API ? For example, I'd like to get the following system message MediaWiki:Loginsuccesstitle.

--NicoV 15:50, 3 January 2008 (UTC)Reply

Use meta=allmessages [1]. --Catrope 16:11, 3 January 2008 (UTC)Reply
Thanks a lot, I searched in the API pages on MediaWiki before asking, but I didn't think to look directly in the API. --NicoV 17:12, 3 January 2008 (UTC)Reply

Filtering out bot generated revisions?[edit]

When enumerating user contributions or recent changes I can use ucshow or rcshow to tell the server to filter out bot-generated edits. But I can't do that when enumerating the revisions of a page. In fact, I don't see how to filter out bot-generated revisions without making several more queries to the server for each revision. Is there a technical reason for not having an rvshow parameter similar to ucshow/rcshow? (Along the same lines, there's no way to filter out minor edits on the server side though clearly the server knows this information; it's returned as a flag in the query results.) --Belden Fox 01:57, 5 January 2008 (UTC)Reply