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.

Siteinfo: Parameters

 * : Which properties to get
 * : General site information (default)
 * : Provides a list of all namespaces.
 * Each namespace is given within its own element, which contains several attributes:
 * an integer identification number which is unique for each namespace.
 * if present, will always be a null attribute (subpages=""). This attribute indicates that subpages are allowed within the namespace.
 * Provides the canonical namespace name of the namespace, which may or may not be the same as the actual namespace name. 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.
 * 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
 * : Site statistics in Special:Statistics, plus job queue
 * : 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.
 * : A list of each interwiki prefix, provided within its own element.
 * 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.
 * The URL of the wiki, with "$1" as a placeholder for an article name.
 * (if defined) The name of the language used by the wiki.
 * The internal name of the database.
 * The URL of the file api.php.
 * : A list of all namespace aliases
 * : A list of all special page aliases
 * : A list of all user groups and their permissions
 * : A list of extensions installed on the wiki
 * : A list of magic words and their aliases
 * : A list of file extensions allowed to be uploaded
 * : Get information about the license governing the wiki's content
 * : Get available languages as seen in preferences
 * : 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 number of users in each usergroup and the groups it can add/remove are included

Siteinfo: 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"
 * When the default is identical to the (custom) message, the prop is not added
 * : 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.