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=checkuser (cu)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: CheckUser
- License: GPL-2.0-or-later
Check which IP addresses are used by a given username or which usernames are used by a given IP address.
Specific parameters:
Other general parameters are available.
- curequest
Type of CheckUser request:
- userips
- Get IP address of target user.
- edits
- Deprecated. Get actions performed by target IP address or range.
- actions
- Get actions performed by target IP address or range.
- ipusers
- Get users from target IP address or range.
- This parameter is required.
- One of the following values: actions, ipusers, userips, edits
- cutarget
Username, IP address, or CIDR range to check.
- This parameter is required.
- Type: user, by any of username, IP, Temporary user and IP range
- cureason
Reason to check.
- Default: (empty)
- culimit
Limit of rows.
- Type: integer or max
- The value must be between 1 and 500.
- Default: 500
- cutimecond
Time limit of user data (like "-2 weeks" or "2 weeks ago").
- Default: -2 weeks
- cuxff
Use XFF data instead of IP address.
- cutoken
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Examples:
- Get IP addresses for User:Example
- api.php?action=query&list=checkuser&curequest=userips&cutarget=Jimbo_Wales [open in sandbox]
- Get actions performed by 192.0.2.0/24
- api.php?action=query&list=checkuser&curequest=actions&cutarget=127.0.0.1/16&xff=1&cureason=Some_check [open in sandbox]