MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
list=users (us)
- This module requires read rights.
Get information about a list of users.
Parameters:
- usprop
Which pieces of information to include:
- blockinfo
- Tags if the user is blocked, by whom, and for what reason.
- groups
- Lists all the groups each user belongs to.
- implicitgroups
- Lists all the groups a user is automatically a member of.
- rights
- Lists all the rights each user has.
- editcount
- Adds the user's edit count.
- registration
- Adds the user's registration timestamp.
- emailable
- Tags if the user can and wants to receive email through Special:Emailuser.
- gender
- Tags the gender of the user. Returns "male", "female", or "unknown".
- Values (separate with |): blockinfo, groups, implicitgroups, rights, editcount, registration, emailable, gender
- ususers
A list of users to obtain information for.
- Separate values with |. Maximum number of values is 50 (500 for bots).
- ustoken
- Deprecated.
Use action=query&meta=tokens instead.
- Values (separate with |): userrights
Example:
- Return information for user Example.
- api.php?action=query&list=users&ususers=Example&usprop=groups|editcount|gender