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
list=blocks (bk)
- This module requires read rights.
 - Source: MediaWiki
 - License: GPL-2.0-or-later
 
List all blocked users and IP addresses.
- bkstart
 Ajatempel, millest alates loetleda.
- Type: timestamp (allowed formats)
 - bkend
 Ajatempel, milleni loetleda.
- Type: timestamp (allowed formats)
 - bkdir
 Loetlemise suund:
- newer
 - Vanemad enne. Märkus: element bkstart peab olema enne elementi bkend.
 - older
 - Uuemad enne (vaikimisi). Märkus: element bkstart peab olema pärast elementi bkend.
 
- One of the following values: newer, older
 - Default: older
 - bkids
 List of block IDs to list (optional).
- Type: list of integers
 - Separate values with | or alternative.
 - Maximum number of values is 50 (500 for clients that are allowed higher limits).
 - bkusers
 List of users to search for (optional).
- Tüüp: kasutajate loend, määramisviisid: kasutajanimi, IP-aadress, Ajutine kasutaja ja IP-vahemik
 - Separate values with | or alternative.
 - Maximum number of values is 50 (500 for clients that are allowed higher limits).
 - bkip
 Get all blocks applying to this IP address or CIDR range, including range blocks. Cannot be used together with bkusers. CIDR ranges broader than IPv4/16 or IPv6/19 are not accepted.
- bklimit
 The maximum number of blocks to list.
- Type: integer or max
 - The value must be between 1 and 500.
 - Default: 10
 - bkprop
 Millised atribuudid hankida:
- id
 - Adds the ID of the block.
 - user
 - Adds the username of the blocked user.
 - userid
 - Adds the user ID of the blocked user.
 - by
 - Adds the username of the blocking user.
 - byid
 - Adds the user ID of the blocking user.
 - timestamp
 - Adds the timestamp of when the block was given.
 - expiry
 - Adds the timestamp of when the block expires.
 - reason
 - Adds the reason given for the block.
 - range
 - Adds the range of IP addresses affected by the block.
 - flags
 - Tags the ban with (autoblock, anononly, etc.).
 - restrictions
 - Adds the partial block restrictions if the block is not sitewide.
 
- Values (separate with | or alternative): by, byid, expiry, flags, id, range, reason, restrictions, timestamp, user, userid
 - Default: id|user|by|timestamp|expiry|reason|flags
 - bkshow
 Näita ainult üksusi, mis vastavad neile kriteeriumitele. Näiteks, et näidata ainult IP-aadresside vastu rakendatud tähtajatuid blokeeringuid, määra bkshow=ip|!temp.
- Values (separate with | or alternative): !account, !ip, !range, !temp, account, ip, range, temp
 - bkcontinue
 Kui saadaval on rohkem tulemusi, kasuta seda jätkamiseks. Täpsema teabe päringute jätkamise kohta leiad mediawiki.org-ist
- List blocks.
 - api.php?action=query&list=blocks [open in sandbox]
 - List blocks of users Alice and Bob.
 - api.php?action=query&list=blocks&bkusers=Alice|Bob [open in sandbox]