MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=coderevisions (cr)
- This module requires read rights.
- Source: CodeReview
- License: GPL-2.0-or-later
List revisions in CodeReview.
Parameters:
- crrepo
Name of the repository.
- This parameter is required.
- crlimit
How many revisions to return.
- Type: integer or max
- The value must be between 1 and 500.
- Default: 10
- crpath
Only show revisions in these paths.
- crstart
Timestamp to start listing at.
- Type: integer
- crrevs
List of revisions to get information about. Overrides crstart.
- Type: list of integers
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients allowed higher limits).
- The values must be no less than 1.
- crprop
Which properties to return.
- Values (separate with | or alternative): author, commentcount, followedup, followups, message, path, revid, status, tags, timestamp
- Default: revid|status|author|timestamp
Examples:
- List revisions in MediaWiki
- api.php?action=query&list=coderevisions&crrepo=MediaWiki [open in sandbox]
- Fetch info for revisions in MediaWiki
- api.php?action=query&list=coderevisions&crrepo=MediaWiki&crprop=revid|author|status|timestamp|tags [open in sandbox]