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
action=sitematrix (sm)
(main | sitematrix)
- This module requires read rights.
- Source: SiteMatrix
- License: See link
Parameters:
- smtype
Filter the Site Matrix by type:
- special
- One off and multilingual Wikimedia projects.
- language
- Wikimedia projects under this language code.
- Values (separate with | or alternative): language, special
- Default: special|language
- smstate
Filter the Site Matrix by wiki state:
- closed
- No write access, full read access.
- private
- Read and write restricted.
- fishbowl
- Restricted write access, full read access.
- Values (separate with | or alternative): all, closed, fishbowl, private
- Default: all
- smlangprop
Which information about a language to return.
- Values (separate with | or alternative): code, localname, name, site
- Default: code|name|site|localname
- smsiteprop
Which information about a site to return.
- Values (separate with | or alternative): code, dbname, sitename, url
- Default: url|dbname|code|sitename
- smlimit
Maximum number of results.
- Type: integer or max
- The value must be between 1 and 5,000.
- Default: 5000
- smcontinue
When more results are available, use this to continue.
Example:
- Show the site matrix
- api.php?action=sitematrix [open in sandbox]