Jump to content

API talk:Users

Add topic
From mediawiki.org
Latest comment: 3 years ago by Jules* in topic User editcount returned by API is wrong
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

userid

There is a "userid" field in the return result that is not mentioned in the doc and should be. Is there a way to put it into a query, e.g. if I want to know who user #3 is? #1 and #2 are presumably Jimbo and Larry. tx 75.57.242.120 03:32, 9 April 2011 (UTC)Reply

Getting the edit count of an IP

Hello,

is there an API request to see the editcount of an IP adress ? I see this is not the good method, because the result is

<user name="1.2.3.4" invalid="" />

Thanks in advance for your answers

--193.57.67.241 08:43, 14 September 2011 (UTC)Reply

I'm experiencing the same problem. How can i query information about IP users? --Mikima (talk) 16:44, 17 March 2014 (UTC)Reply

Seven years have gone and I have the same problem. How can I query information about IP users? --Kuebi (talk) 16:06, 11 November 2021 (UTC)Reply
Found a solution: api.php?action=query&list=blocks&bkusers=<IP Address> --Kuebi (talk) 16:34, 11 November 2021 (UTC)Reply

blockpartial seems not to work properly

I case of selectivly blocked users I get blockpartial="" as for any other full blocked user. --2003:C3:F731:4254:D8E2:C411:815A:97C 21:11, 15 December 2021 (UTC)Reply

How to read a block log from one user?

How can I get a list of all (past) blocks a user had, like [1]? --Kuebi (talk) 12:18, 5 September 2022 (UTC)Reply

User editcount returned by API is wrong

I did test with several usernames, the editcount returned by API:Users (usprop:editcount) is wrong. For example:

  • for myself on this wiki, API returns 72, but I do have 74 edits;
  • for user 0x010C on this wiki, API returns 920, but this did 1025 edits.

I don't get why the figure returned by the API is wrong, and always under the real number of edits. Any idea? Jules* (talk) 12:42, 7 February 2023 (UTC)Reply