API:Categoryinfo

From MediaWiki.org
Jump to: navigation, search

Other languages:
aragonés • ‎български • ‎Deutsch • ‎Ελληνικά • ‎English • ‎español • ‎français • ‎Հայերեն • ‎italiano • ‎日本語 • ‎română • ‎русский • ‎sicilianu • ‎سنڌي • ‎Türkçe • ‎中文

Gets information about categories

Note
If the category page exists, but the category has no members, a "categoryinfo" field will not be included in the API response.

Parameters[edit]

  • cicontinue: When more results are available, use this to continue.

Example[edit]

Get info about a few categories

Possible errors[edit]

None.




prop=categoryinfo (ci)

(main | query | categoryinfo)
  • This module requires read rights.
  • Source: MediaWiki
  • License: GPL-2.0+

Returns information about the given categories.

Parameter:
cicontinue

When more results are available, use this to continue.

Example:
Get information about Category:Foo and Category:Bar.
api.php?action=query&prop=categoryinfo&titles=Category:Foo|Category:Bar [open in sandbox]