Jump to content
MediaWiki

API talk:Users

Add topic
From mediawiki.org
Latest comment: 2 years ago by Jules* in topic User editcount returned by API is wrong

userid

[edit ]
Latest comment: 14 years ago 1 comment1 person in discussion

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

[edit ]
Latest comment: 4 years ago 4 comments3 people in discussion

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

<username="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

[edit ]
Latest comment: 4 years ago 1 comment1 person in discussion

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?

[edit ]
Latest comment: 3 years ago 1 comment1 person in discussion

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

[edit ]
Latest comment: 2 years ago 1 comment1 person in discussion

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

AltStyle によって変換されたページ (->オリジナル) /