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=logevents (le)
- This module requires read rights.
- Source: MediaWiki
- License: GPL-2.0-or-later
Get events from logs.
- leprop
Which properties to get:
- ids
- Adds the ID of the log event.
- title
- Adds the title of the page for the log event.
- type
- Adds the type of log event.
- user
- Adds the user responsible for the log event. If the user has been revision deleted, a userhidden property will be returned.
- userid
- Adds the user ID who was responsible for the log event. If the user has been revision deleted, a userhidden property will be returned.
- timestamp
- Adds the timestamp for the log event.
- comment
- Adds the comment of the log event. If the comment has been revision deleted, a commenthidden property will be returned.
- parsedcomment
- Adds the parsed comment of the log event. If the comment has been revision deleted, a commenthidden property will be returned.
- details
- Lists additional details about the log event. If the log event has been revision deleted, an actionhidden property will be returned.
- tags
- Lists tags for the log event.
- Values (separate with | or alternative): comment i details i ids i parsedcomment i tags i timestamp i title i type i user i userid
- Default: ids|title|type|user|timestamp|comment|details
- letype
Filter log entries to only this type.
- One of the following values: Can be empty, or block i contentmodel i create i delete i import i interwiki i managetags i merge i move i newusers i patrol i protect i renameuser i rights i suppress i tag i upload
- leaction
Filter log actions to only this action. Overrides letype. In the list of possible values, values with the asterisk wildcard such as action/* can have different strings after the slash (/).
- One of the following values: block/block i block/reblock i block/unblock i contentmodel/change i contentmodel/new i create/create i delete/delete i delete/delete_redir i delete/delete_redir2 i delete/event i delete/restore i delete/revision i import/interwiki i import/upload i interwiki/iw_add i interwiki/iw_delete i interwiki/iw_edit i managetags/activate i managetags/create i managetags/deactivate i managetags/delete i merge/merge i merge/merge-into i move/move i move/move_redir i newusers/autocreate i newusers/byemail i newusers/create i newusers/create2 i newusers/newusers i patrol/autopatrol i patrol/patrol i protect/modify i protect/move_prot i protect/protect i protect/unprotect i renameuser/renameuser i rights/autopromote i rights/rights i suppress/block i suppress/delete i suppress/event i suppress/reblock i suppress/revision i tag/update i upload/overwrite i upload/revert i upload/upload
- lestart
The timestamp to start enumerating from.
- Type: timestamp (allowed formats)
- leend
The timestamp to end enumerating.
- Type: timestamp (allowed formats)
- ledir
In which direction to enumerate:
- newer
- List oldest first. Note: lestart has to be before leend.
- older
- List newest first (default). Note: lestart has to be later than leend.
- One of the following values: newer i older
- Default: older
- leuser
Filter entries to those made by the given user.
- Type: user, by any of username i IP i Temporary user i interwiki name (e.g. "prefix>ExampleName") user ID (e.g. "#12345")
- letitle
Filter entries to those related to a page.
- lenamespace
Filter entries to those in the given namespace.
- One of the following values: -1 i -2 i 0 i 1 i 2 i 3 i 4 i 5 i 6 i 7 i 8 i 9 i 10 i 11 i 12 i 13 i 14 i 15
- leprefix
Filter entries that start with this prefix.
- letag
Only list event entries tagged with this tag.
- lelimit
How many total event entries to return.
- Type: integer or max
- The value must be between 1 and 500.
- Default: 10
- lecontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- List recent log events.
- api.php?action=query&list=logevents [open in sandbox]