MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
list=blocks (bk)
- Este módulo requiere permisos de lectura.
- Fuente: MediaWiki
- Licencia: GPL-2.0+
Listar todos los usuarios y direcciones IP bloqueadas.
- bkstart
- The timestamp to start enumerating from. 
- Tipo: timestamp (formatos permitidos)
- bkend
- The timestamp to stop enumerating at. 
- Tipo: timestamp (formatos permitidos)
- 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.
 
- Uno de los siguientes valores: newer, older
- Predeterminado: older
- bkids
- List of block IDs to list (optional). 
- Tipo: lista de enteros
- Separar los valores con |. El número máximo de los valores es 50 (500 para los bots).
- bkusers
- Lista de usuarios a buscar (opcional). 
- Tipo: lista de nombres de usuarios
- Separar los valores con |. El número máximo de los valores es 50 (500 para los bots).
- bkip
- Obtiene todos los bloqueos que se aplican a esta dirección IP o intervalo CIDR, incluyendo bloqueos de intervalos. No se puede usar en conjunto con bkusers. No se aceptan intervalos CIDR mayores que IPv4/16 o IPv6/19. 
- bklimit
- The maximum number of blocks to list. 
- No se permite más de 500 (5000 para los bots).
- Tipo: entero o max
- Predeterminado: 10
- bkprop
- Qué propiedades se obtendrán: - id
- Adds the ID of the block.
- user
- Adds the username of the blocked user.
- userid
- Añade el identificador del usuario bloqueado.
- by
- Adds the username of the blocking user.
- byid
- Adds the user ID of the blocking user.
- timestamp
- Añade la fecha y hora de cuando se aplicó el bloque.
- 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 (separados por |): id, user, userid, by, byid, timestamp, expiry, reason, range, flags
- Predeterminado: 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 (separados por |): account, !account, temp, !temp, ip, !ip, range, !range
- bkcontinue
- Cuando haya más resultados disponibles, utiliza esto para continuar. 
- Listar bloques.
- 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]