# MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

(main | query | alldeletedrevisions)
• This module requires read rights.
• This module can be used as a generator.
• Source: MediaWiki

List all deleted revisions by a user or in a namespace.

Parameters:

Which properties to get for each revision:

ids
The ID of the revision.
flags
Revision flags (minor).
timestamp
The timestamp of the revision.
user
User that made the revision.
userid
User ID of the revision creator.
size
Length (bytes) of the revision.
sha1
SHA-1 (base 16) of the revision.
contentmodel
Content model ID of the revision.
comment
Comment by the user for the revision.
parsedcomment
Parsed comment by the user for the revision.
content
Text of the revision.
tags
Tags for the revision.
parsetree
The XML parse tree of revision content (requires content model wikitext).
Values (separate with | or alternative): ids, flags, timestamp, user, userid, size, sha1, contentmodel, comment, parsedcomment, content, tags, parsetree
Default: ids|timestamp|flags|comment|user

Limit how many revisions will be returned.

No more than 500 (5,000 for bots) allowed.
Type: integer or max

Expand templates in revision content (requires adrprop=content).

Type: boolean (details)
Deprecated.

Generate XML parse tree for revision content (requires adrprop=content; replaced by adrprop=parsetree).

Type: boolean (details)

Parse revision content (requires adrprop=content). For performance reasons, if this option is used, adrlimit is enforced to 1.

Type: boolean (details)

Only retrieve the content of this section number.

Revision ID to diff each revision to. Use prev, next and cur for the previous, next and current revision respectively.

Text to diff each revision to. Only diffs a limited number of revisions. Overrides adrdiffto. If adrsection is set, only that section will be diffed against this text.

Perform a pre-save transform on the text before diffing it. Only valid when used with adrdifftotext.

Type: boolean (details)

Serialization format used for adrdifftotext and expected for output of content.

One of the following values: application/json, text/x-wiki, text/javascript, text/css, text/plain

Only list revisions by this user.

Note: Due to miser mode, using adruser and adrnamespace together may result in fewer than adrlimit results returned before continuing; in extreme cases, zero results may be returned.

Type: user name

Only list pages in this namespace.

Note: Due to miser mode, using adruser and adrnamespace together may result in fewer than adrlimit results returned before continuing; in extreme cases, zero results may be returned.

Values (separate with | or alternative): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 250, 251, 252, 253, 274, 275, 460, 461, 470, 471, 482, 483, 710, 711, 828, 829, 2300, 2301, 2302, 2303
To specify all values, use *.

The timestamp to start enumerating from.

May only be used with adruser.
Type: timestamp (allowed formats)

The timestamp to stop enumerating at.

May only be used with adruser.
Type: timestamp (allowed formats)

In which direction to enumerate:

List oldest first. Note: adrstart has to be before adrend.
older
List newest first (default). Note: adrstart has to be later than adrend.
One of the following values: newer, older
Default: older

Start listing at this title.

Cannot be used with adruser.

Stop listing at this title.

Cannot be used with adruser.

Search for all page titles that begin with this value.

Cannot be used with adruser.

Don't list revisions by this user.

Cannot be used with adruser.
Type: user name