MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
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+
Check which IP addresses are used by a given username or which usernames are used by a given IP address.
Parameters:
- curequest
Type of CheckUser request:
- userips
- Get IP address of target user.
- edits
- Get changes from target IP address or range.
- ipusers
- Get users from target IP address or range.
- This parameter is required.
- One of the following values: userips, edits, ipusers
- cutarget
Username, IP address, or CIDR range to check.
- This parameter is required.
- cureason
Reason to check.
- culimit
Limit of rows.
- No more than 500 (5,000 for bots) allowed.
- Type: integer or max
- Default: 1000
- cutimecond
Time limit of user data (like "2 weeks").
- 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:
- Check IP addresses for User:Example
- api.php?action=query&list=checkuser&curequest=userips&cutarget=Jimbo_Wales
- Check edits from 192.0.2.0/24
- api.php?action=query&list=checkuser&curequest=edits&cutarget=127.0.0.1/16&xff=1&cureason=Some_check