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=listwikis (sw)
- This module requires read rights.
- Source: ShoutWiki API
- License: CC0-1.0
List all available wikis on ShoutWiki
Parameters:
- swwid
Unique, wiki-specific ID number; use this when you want to get info about a specific wiki and you know its ID number
- Type: integer
- swdeleted
Also list deleted wikis (optional)
- Type: integer
- The value must be between 0 and 1.
- swfrom
Get all wikis with ID that is equal to or greater than this value
- Type: integer
- The value must be no less than 1.
- swto
Get all wikis with ID that is equal to or lower than this value
- Type: integer
- The value must be no less than 1.
- swcountonly
Return only the amount of wikis
- Type: integer
- The value must be no less than 1.
- swlang
Wiki language code (i.e. en for English, fi for Finnish, etc.)
- swlimit
Get information about this many wikis at once
- Type: integer or max
- The value must be between 1 and 500.
- Default: 100
- swstart
The timestamp to start enumerating from
- Type: timestamp (allowed formats)
- swend
The timestamp to end enumerating
- Type: timestamp (allowed formats)
- swdir
In which direction to enumerate:
- newer
- List oldest first. Note: swstart has to be before swend.
- older
- List newest first (default). Note: swstart has to be later than swend.
- One of the following values: newer, older
- Default: older
Examples:
- Get all active wikis
- api.php?action=query&list=listwikis [open in sandbox]
- Also include deleted wikis in the listing
- api.php?action=query&list=listwikis&swdeleted=1 [open in sandbox]
- Get information about the wiki whose ID is #177
- api.php?action=query&list=listwikis&swwid=177 [open in sandbox]
- Get all (active) wikis with IDs ranging from 100 to 150
- api.php?action=query&list=listwikis&swfrom=100&swto=150 [open in sandbox]
- Show all Finnish (fi) wikis whose IDs range between 10 to 50
- api.php?action=query&list=listwikis&swfrom=10&swto=50&swlang=fi [open in sandbox]
- Show the total amount of active wikis
- api.php?action=query&list=listwikis&swcountonly=1 [open in sandbox]
- Show the total amount of all wikis ever, including deleted ones
- api.php?action=query&list=listwikis&swactive=1&swcountonly=1 [open in sandbox]