Hello ,
I have a problem with API. I want to get the diff between one revision and its previous revision. I use api like this:
" https://en.wikipedia.org/w/api.php?action=query&format=json&prop=rev... "
But the results only return the "diff" of the first two revisions, the others are “notcatched": { "revid": 715123287, "parentid": 714799929, "user": "SnoozeKing", "timestamp": "2016-04-13T21:07:34Z", "comment": "", "diff": { "notcached": "" } }, { "revid": 714799929, "parentid": 712263801, "minor": "", "user": "Smithderek2000", "timestamp": "2016-04-11T22:43:14Z", "comment": "Removed unclear pronoun", "diff": { "notcached": "" } },
Why? If someone know, please reply me, I really need your help!!! Thanks a lot!!!
On Fri, May 6, 2016 at 3:21 AM, Shiyue Zhang byryuer@gmail.com wrote:
But the results only return the "diff" of the first two revisions, the others are “notcatched":
[...]
Why? If someone know, please reply me, I really need your help!!! Thanks a lot!!!
Because generating diffs is expensive, it only allows the generation of a limited number of not-already-cached diffs per request. The solution is to request diffs for fewer old revisions per request (e.g. lower your rvlimit).
mediawiki-api@lists.wikimedia.org