API:Blocks

List all blocks, à la Special:Ipblocklist. This module cannot be used as a generator.

Parameters

 * : The timestamp to start listing from
 * : The timestamp to end listing at
 * : Direction to list in.
 * : List newest blocks first (default). Note: bkstart has to be later than bkend.
 * : List oldest blocks first. Note: bkstart has to be before bkend.
 * : Only list blocks with these IDs
 * : Only list blocks of these users
 * : List all blocks, including range blocks, that apply to this IP address. You can also specify a CIDR range here, in which case only blocks applying to the entire range will be listed. Cannot be used together with . CIDR ranges broader than /16 are not allowed, as range blocks cannot cross /16 boundaries
 * : Maximum number of blocks to list (10 by default)
 * : A pipe-separated list of properties to get. They appear as keys of returned dictionary. The default value is id|user|by|timestamp|expiry|reason|flags
 * : The ID of the block (default)
 * : The IP address or username that was blocked (default)
 * Will not be present as key on autoblock.
 * : The id of user who was blocked
 * Will not be present as key on autoblock.
 * : The user who applied the block (default)
 * : The id of user who applied the block
 * : When the block was applied (default)
 * : When the block will expire (default)
 * : The reason for the block (default)
 * : If an IP range was blocked, the first and last IP the block applies to
 * Will appear as  and   in the answer, both 0.0.0.0 for registered users. Same as   for standalone IPs.
 * : Flags that apply to the block (default)
 * The appropriate flags will appear as keys of returned dictionary with an empty value. No key if the flag is not valid for the block.
 * : Automatically blocked because of an autoblock (see also action=block)
 * : Only anonymous edits are blocked
 * : Account creation is disabled
 * : Automatic blocking is enabled for this block
 * : Sending e-mail through the wiki is disabled for the blocked user
 * : The user is allowed to edit his/her own talk page
 * : This block is hidden from Special:Ipblocklist. Only users with oversight permissions can see these blocks.

Error Codes
None.