MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=categories (cl)
- This module requires read rights.
 - This module can be used as a generator.
 - Source: MediaWiki
 - License: GPL-2.0-or-later
 
List all categories the pages belong to.
Specific parameters:
Other general parameters are available.
- clprop
 Millised lisaatribuudid iga kategooria kohta hankida:
- sortkey
 - Adds the sortkey (hexadecimal string) and sortkey prefix (human-readable part) for the category.
 - timestamp
 - Adds timestamp of when the category was added.
 - hidden
 - Tags categories that are hidden with 
__HIDDENCAT__. 
- Values (separate with | or alternative): hidden, sortkey, timestamp
 - clshow
 Milliseid kategooriaid näidata.
- Values (separate with | or alternative): !hidden, hidden
 - cllimit
 Kui palju kategooriaid tagastada.
- Type: integer or max
 - The value must be between 1 and 500.
 - Default: 10
 - clcontinue
 Kui saadaval on rohkem tulemusi, kasuta seda jätkamiseks. Täpsema teabe päringute jätkamise kohta leiad mediawiki.org-ist
- clcategories
 Loetle ainult need kategooriad. Kasulik, kui vaja kontrollida, kas teatud lehekülg on teatud kategoorias.
- Separate values with | or alternative.
 - Maximum number of values is 50 (500 for clients that are allowed higher limits).
 - cldir
 Järjestuse suund.
- One of the following values: ascending, descending
 - Default: ascending
 
Examples:
- Get a list of categories the page Albert Einstein belongs to.
 - api.php?action=query&prop=categories&titles=Albert%20Einstein [open in sandbox]
 - Get information about all categories used in the page Albert Einstein.
 - api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info [open in sandbox]