API:Meta

Meta queries return information which is not associated with pages.

siteinfo / si
Siteinfo returns overall site information. The code for the siteinfo function is located at ApiQuerySiteinfo.php.

Parameters

 * : Which properties to get
 * : General site information (default)
 * : Site statistics in Special:Statistics, plus job queue (MW 1.11+)
 * : Provides a list of all namespaces.
 * Each namespace is given within it's own element, which contains several attributes:
 * an integer identification number which is unique for each namespace.
 * Either "first-letter" or "case-sensitive". If the first letter of the namespace name is capitalized (the default), then the value of this attribute will be "first-letter". Otherwise, the value will be "case-sensitive" in order to indicate that the namespace name in question intentionally does not use a capital first letter. Note: "case-sensitive" is reserved for future use (MW 1.17+)
 * if present, will always be a null attribute (subpages=""). This attribute indicates that subpages are allowed within the namespace. For example, all wikis have a "Project:" namespace, but the actual namespace name is normally changed to the name of the wiki (on Wikipedia for example, the "Project:" namespace is "Wikipedia:").
 * if present, will always be a null attribute (content=""). This attribute indicates that pages within this namespace should be treated as the main content of the wiki. Pages within namespaces with the content value set are counted for statistical purposes, among other things.
 * Provides the canonical namespace name of the namespace, which may or may not be the same as the actual namespace name.
 * : A list of all namespace aliases (MW 1.13+)
 * : If  is not set, provides information about the database server with the highest replication lag. If   is set, shows replication lag for each database server. (MW 1.11+)
 * : A list of each interwiki prefix, provided within it's own element. (MW 1.11+)
 * The attributes provided in each  element include:
 * Is the prefix of the interwiki link; this is used the same way as a namespace is used when editing.
 * (if true) A boolean value indicating whether the wiki is in this project.
 * (if defined) The name of the language used by the wiki.
 * The URL of the wiki, with "$1" as a placeholder for an article name.
 * (MW 1.18+) The internal name of the database.
 * (MW 1.18+) The URL of the file api.php.
 * : A list of all special page aliases (MW 1.13+)
 * : A list of all user groups and their permissions (MW 1.13+)
 * : A list of extensions installed on the wiki (MW 1.14+)
 * : A list of magic words and their aliases (MW 1.14+)
 * : A list of file extensions allowed to be uploaded (MW 1.15+)
 * : Get information about the license governing the wiki's content (MW 1.15+)
 * : Get available languages as seen in preferences (MW 1.16+)
 * : Criteria to filter the interwiki map by (ignored if  isn't set)
 * : Only list local interwiki prefixes
 * : Only list non-local interwiki prefixes
 * : Show information about all DB servers (ignored if  isn't set)
 * : When set to true and  includes   the numbers of users in each usergroup are included

Possible errors

 * code: includeAllDenied
 * info: Cannot view all servers info unless $wgShowHostnames is true

userinfo / ui
Returns information about the currently logged-in user. The code for the userinfo function is located at ApiQueryUserInfo.php.

Parameters

 * : Which properties to get
 * : Whether the current user is blocked, by whom, and why
 * : Whether the current user has new messages on their user talk page
 * : Which groups the current user belongs to
 * : Which rights the current user has
 * : Which groups the current user can add/remove
 * : Which preferences the current user has
 * : The number of edits the current user has made
 * : Rate limits applying to the current user
 * : User's realname [1.18+]
 * : Email address and authentication timestamp in ISO 8601 format [1.15+]

Possible errors
None.

allmessages / am
Lists the contents of all (or a few) interface messages.

Parameters

 * : Which messages to output. "*" (default) means all messages
 * : Which properties to get, the only (default) prop is "default"
 * : Set to enable parser, will preprocess the wikitext of message. Will substitute magic words, handle templates etc.
 * : Arguments to be substituted into message
 * : Return only messages that contain this string
 * : Return messages in this language
 * : Return messages starting at this message
 * : Return messages ending at this message

Possible errors
None.