Ajuda API da MediaWiki

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

list=blocks (bk)

(main | query | blocks)
  • This module requires read rights.
  • Source: MediaWiki
  • Licença: GPL-2.0+

List all blocked users and IP addresses.

Parâmetros:
bkstart

The timestamp to start enumerating from.

Type: timestamp (allowed formats)
bkend

The timestamp to stop enumerating at.

Type: timestamp (allowed formats)
bkdir

In which direction to enumerate:

newer
List oldest first. Note: bkstart has to be before bkend.
older
List newest first (default). Note: bkstart has to be later than bkend.
Um dos seguintes valores: newer, older
Padrão: older
bkids

List of block IDs to list (optional).

Type: list of integers
Separe os valores com |. Maximum number of values is 50 (500 for bots).
bkusers

List of users to search for (optional).

Separe os valores com |. Maximum number of values is 50 (500 for bots).
bkip

Obtém todos os blocos aplicando a este IP ou intervalos CIDR, incluindo intervalos de blocos. Não pode ser usado em conjunto com bkusers. Intervalos CIDR mais largos do que IPv4/16 ou IPv6/19 não são aceitos.

bklimit

O número máximo de bloqueios a listar.

No more than 500 (5 000 for bots) allowed.
Type: integer or max
Padrão: 10
bkprop

Which properties to get:

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.).
Valores (separar com |): id, user, userid, by, byid, timestamp, expiry, reason, range, flags
Padrão: id|user|by|timestamp|expiry|reason|flags
bkshow

Show only items that meet these criteria. For example, to see only indefinite blocks on IP addresses, set bkshow=ip|!temp.

Valores (separar com |): account, !account, temp, !temp, ip, !ip, range, !range
bkcontinue

When more results are available, use this to continue.

Exemplos:
List blocks.
api.php?action=query&list=blocks
List blocks of users Alice and Bob.
api.php?action=query&list=blocks&bkusers=Alice|Bob