Hi,
I am using the API to get the list of Wikidata contributions of particular users.
I am using "https://www.wikidata.org/w/api.php?action=feedcontributions&user=xxx&..." for that. But I have seen that I can only get a maximum number of edits (50) this way, so the response is leaving many of the edits out.
Is there a way to get all the edits of a contributor in a period of time (e.g. one particular day), even if they are more than 50?
Thanks. Cristina
Hi Cristina,
unfortunately, the limit is fixed[1] and set by a configuration variable, $wgFeedLimit, which has a default value of 50[2]. You could try opening a task in Phabricator and discuss, if it should be possible to set the limit in the request or not. Another "solution" would be, to set a higher value for wikidata for wgFeedLimit, but I assume, that this configuration variable is used in other cases, too, where a limit of 50 rows is reasonable, so this won't be a good idea and wouldn't be done for wikidata or any other wmf wiki :)
I hope that helps!
[1] https://github.com/wikimedia/mediawiki/blob/master/includes/api/ApiFeedContr... [2] https://github.com/wikimedia/mediawiki/blob/master/includes/DefaultSettings....
Greetings from Wolfsburg :) Florian
-----Ursprüngliche Nachricht----- Von: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] Im Auftrag von csarasua Gesendet: Mittwoch, 8. Juli 2015 14:24 An: mediawiki-api@lists.wikimedia.org Betreff: [Mediawiki-api] Wikidata API: feedcontributions size>50?
Hi,
I am using the API to get the list of Wikidata contributions of particular users.
I am using "https://www.wikidata.org/w/api.php?action=feedcontributions&user=xxx&..." for that. But I have seen that I can only get a maximum number of edits (50) this way, so the response is leaving many of the edits out.
Is there a way to get all the edits of a contributor in a period of time (e.g. one particular day), even if they are more than 50?
Thanks. Cristina
-- Cristina Sarasua
Institute for Web Science and Technologies (WeST)
Universität Koblenz-Landau Universitätsstraße 1 56070 Koblenz Germany
e: csarasua@uni-koblenz.de p: +49 261 287 2772 f: +49 261 287 100 2772 w: http://west.uni-koblenz.de
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Hi Cristina,
you probably want to look into the action=query&list=usercontribs api: https://www.wikidata.org/w/api.php?action=help&modules=query%2Busercont ribs
That allows getting up to 500 (or 5000 for bots) edits at once and allows continuation.
Cheers,
Marius
On Wed, 2015-07-08 at 14:23 +0200, csarasua wrote:
Hi,
I am using the API to get the list of Wikidata contributions of particular users.
I am using "https://www.wikidata.org/w/api.php?action=feedcontributions&user=xxx &toponly=false" for that. But I have seen that I can only get a maximum number of edits (50) this way, so the response is leaving many of the edits out.
Is there a way to get all the edits of a contributor in a period of time (e.g. one particular day), even if they are more than 50?
Thanks. Cristina
That is very useful, thanks!
Cristina
Am 08.07.2015 um 15:59 schrieb hoo:
Hi Cristina,
you probably want to look into the action=query&list=usercontribs api: https://www.wikidata.org/w/api.php?action=help&modules=query%2Busercont ribs
That allows getting up to 500 (or 5000 for bots) edits at once and allows continuation.
Cheers,
Marius
On Wed, 2015-07-08 at 14:23 +0200, csarasua wrote:
Hi,
I am using the API to get the list of Wikidata contributions of particular users.
I am using "https://www.wikidata.org/w/api.php?action=feedcontributions&user=xxx &toponly=false" for that. But I have seen that I can only get a maximum number of edits (50) this way, so the response is leaving many of the edits out.
Is there a way to get all the edits of a contributor in a period of time (e.g. one particular day), even if they are more than 50?
Thanks. Cristina
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org