API talk:Blocks

API sandbox displays two more properties not listed here: userid and byid. Bináristalk 15:58, 30 January 2012 (UTC)

Bug
It seems that omitting "timestamp" from bkprop makes one unable to enumerate more than bklimit items in the list. The timestamp returned in the result for the "bkstart" parameter is just the current time and date. Keφr 17:12, 28 January 2014 (UTC)

Output format for partial blocks
Hi, what would the output format of “restrictions” (for partial blocks) look like? Has anyone so far made use of the partial blocks feature so that a request can give an example of that? All requests I have tested so far returned an empty JSON array for “restrictions”. --77.10.136.210 14:09, 17 February 2019 (UTC)

Only current blocks?
Does this API list only current blocks?

For instance, requesting https://de.wikipedia.org/w/api.php?action=query&list=blocks&bkusers=Anidaat&bklimit=max&format=json I get an empty output, although the user in question has plenty of past blocks on German Wikipedia ( https://de.wikipedia.org/w/index.php?title=Spezial:Logbuch/block&page=Benutzer%3AAnidaat ).

If this API feature is supposed to list only current blocks, how can I obtain a list of past blocks? --77.0.148.205 11:41, 8 August 2019 (UTC)