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=whosonline
- This module requires read rights.
- Source: WhosOnline
- License: GPL-2.0-or-later
Get the list of users currently online
Parameters:
- limit
Limit the number of returned users
- Type: integer
- offset
Offset of returned list of users
- Type: integer
Examples:
- List all registered users who are currently online
- api.php?action=query&list=whosonline [open in sandbox]
- List 5 registered users who are currently online
- api.php?action=query&list=whosonline&limit=5 [open in sandbox]
- List 5 registered users who are currently online, skipping the first 15 entries
- api.php?action=query&list=whosonline&limit=5&offset=15 [open in sandbox]