Jump to content

API:Meta

From mediawiki.org

GET requestto fetch information which is not associated with pages (metadata).

API documentation

Metadata may include site information, information about the currently logged-in user and contents of interface messages, among others.

To make a meta query, addmetaas a parameter to your request, with its value being the submodule to fetch the information you need, i.eaction=query&meta=submodule.

To fetch information from several submodules in one request, use pipe-separated values like so: action=query&meta=submodule1|submodule2

See individual meta submodules below for examples on how to use meta:

Additional notes

  • In addition to meta submodules on MediaWiki core, there are also submodules from extensions that may help get more metadata. For a list which includes these submodules, seeSpecial:ApiHelp/query.
  • Meta submodules cannot be used as agenerator.

See also

  • API:Lists- Lists of pages that match certain criteria.
  • API:Properties- Properties of pages, including page revisions and content.
  • API:Query- Fetch data from and about MediaWiki.