MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
list=blocks (bk)
- Questo modulo richiede i diritti di lettura.
 - Fonte: MediaWiki
 - Licenza: GPL-2.0+
 
List all blocked users and IP addresses.
- bkstart
 Il timestamp da cui iniziare l'elenco.
- Tipo: timestamp (formati consentiti)
 - bkend
 Il timestamp al quale interrompere l'elenco.
- Tipo: timestamp (formati consentiti)
 - 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 dei seguenti valori: newer, older
 - Predefinito: older
 - bkids
 List of block IDs to list (optional).
- Tipo: elenco di interi
 - Separa i valori con | o alternativa. Il numero massimo di valori è 50 (500 per i bot).
 - bkusers
 List of users to search for (optional).
- Tipo: elenco di nomi utente
 - Separa i valori con | o alternativa. Il numero massimo di valori è 50 (500 per i bot).
 - 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
 Il numero massimo di blocchi da elencare.
- Non più di 500 (5 000 per bot) consentito.
 - Tipo: intero o max
 - Predefinito: 10
 - bkprop
 Quali proprietà ottenere:
- id
 - Aggiunge l'ID del blocco.
 - user
 - Aggiunge il nome utente dell'utente bloccato.
 - userid
 - Aggiunge l'ID utente dell'utente bloccato.
 - by
 - Aggiunge il nome utente dell'utente che ha effettuato il blocco.
 - byid
 - Aggiunge l'ID utente dell'utente che ha effettuato il blocco.
 - 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.).
 
- Valori (separati da | o alternativa): id, user, userid, by, byid, timestamp, expiry, reason, range, flags
 - Predefinito: 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.
- Valori (separati da | o alternativa): account, !account, temp, !temp, ip, !ip, range, !range
 - bkcontinue
 Quando più risultati sono disponibili, usa questo per continuare.
- Elenca i blocchi.
 - api.php?action=query&list=blocks [apri in una sandbox]
 - List blocks of users Alice and Bob.
 - api.php?action=query&list=blocks&bkusers=Alice|Bob [apri in una sandbox]