MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=sitematrix (sm)

(main | sitematrix)
  • This module requires read rights.
  • Source: SiteMatrix
  • License: GPL-2.0+

Get Wikimedia sites list.

The code (technically dbname/wikiid) is either the language code + project code for content projects or the subdomain + main domain for all the others.

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): special, language
Default: special|language
smstate

Filter the Site Matrix by wiki state:

Values (separate with | or alternative): all, closed, private, fishbowl, nonglobal
Default: all
smlangprop

Which information about a language to return.

Values (separate with | or alternative): code, name, site, localname
Default: code|name|site|localname
smsiteprop

Which information about a site to return.

Values (separate with | or alternative): url, dbname, code, sitename
Default: url|dbname|code|sitename
smlimit

Maximum number of results.

No more than 5,000 (5,000 for bots) allowed.
Type: integer or max
Default: 5000
smcontinue

When more results are available, use this to continue.

Example:
Show the site matrix
api.php?action=sitematrix [open in sandbox]
Vojna Enciklopedija - Glavni i odgovorni urednik Branislav Kapetanović