API:Blocks

Prefix: bk Required Rights: None POST Only? No  List all blocked users and IP addresses

Parameters

 * dir – The direction in which to enumerate.
 * Type: one of newer, older

Cannot be used together with bkusers. CIDR ranges broader than /16 are not accepted. Type: string id        - Adds the id of the block user      - Adds the username of the blocked user by        - Adds the username of the blocking admin 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 IPs affected by the block flags     - Tags the ban with (autoblock, anononly, etc).
 * end – The timestamp to stop enumerating at . Type: timestamp
 * ids – Pipe-separated list of block IDs to list (optional) . Type: integer
 * ip – Get all blocks applying to this IP or CIDR range, including range blocks.
 * limit – The maximum amount of blocks to list . Type: limit
 * prop – Which properties to get
 * Type: one of id, user, by, timestamp, expiry, reason, range</tt>, flags</tt>


 * start – The timestamp to start enumerating from . Type: timestamp
 * users – Pipe-separated list of users to search for (optional).

Errors Codes

 * cidrtoobroad – CIDR ranges broader than /16 are not accepted.
 * invalidtitle – Bad title ``key''.
 * invalidtitle – Bad title ``title''.
 * param_user – User name user is not valid.
 * param_user – User parameter may not be empty.
 * readapidenied – You need read permission to use this module.
 * usersandip – bkusers and bkip cannot be used together.