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)
  • Denna modul kräver läsrättigheter.
  • Source: WhosOnline
  • License: GPL-2.0-or-later

Get the list of users currently online

Parametrar:
Other general parameters are available.
limit

Limit the number of returned users

Typ: heltal
offset

Offset of returned list of users

Typ: heltal
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]