API:Query - Revisions

Returns revisions for a given article based on the selection criteria. Revisions may be used with multiple titles only when working with the latest revision. When using parameters marked as (enum), titles= must have only one title listed. By default, revisions shows only the id of the last revision.

Parameters

 * rvprop: Which properties to get for each revision. If omitted, the properties marked as (default) are returned.
 * ids: Revision ID (default)
 * flags: Whether the revision was a minor edit (default)
 * timestamp: The time the revision was made (default)
 * user: The user who made the revision (default)
 * comment: The edit comment (default)
 * size: The size of the revision text in bytes
 * content: The revision content
 * rvlimit: The maximum number of revisions to return (enum)
 * rvstartid: Revision ID to start listing from. (enum)
 * rvendid: Revision ID to end listing at. (enum)
 * rvstart: Timestamp to start listing from. (enum)
 * rvend: Timestamp to end lisrating at. (enum)
 * rvdir: Direction to list in. (enum)
 * older: List newest revisions first (default). NOTE: rvstart/rvstartid has to be higher than rvend/rvendid
 * newer: List oldest revisions first. NOTE: rvstart/rvstartid has to be lower than rvend/rvendid
 * rvuser: Only list revisions made by this user
 * rvexcludeuser: Do not list revisions made by this user
 * rvexpandtemplates: Expand templates in rvprop=content output
 * rvtoken: Tokens to get for each revision
 * rollback: Rollback token