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

(main | query | whosonline)

Get the list of users currently online

Specific parameters:
Other general parameters are available.
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]