Hi,
I think that the API is returning bad results when I try to retrieve a list of revisions. Consider the following call to retrieve all revisions from the Wikipedia article:
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop...
The rvstartid and rvendid parameters are respectively set with the latest revision made to the article and the first. I know that this article has more than > 30000 revisions, however with this call I am only getting 363 results.
Can anyone please check this ?
Thanks in advance, -- Sérgio Nunes
Hi,
that's because revision ids aren't always increasing with time, because of things such as importing from nostalgia Wikipedia. And that's what happened to that page: 19:36, 14 December 2009 Secret (talk | contribs) transwikied Wikipedia (6 revisions from nost:Wikipedia). The oldest revision has the id you claim (331655534), but the sixth oldest has the id 13435822.
Petr Onderka (User:Svick)
On Sat, Jun 19, 2010 at 15:58, S. Nunes snunes@gmail.com wrote:
Hi,
I think that the API is returning bad results when I try to retrieve a list of revisions. Consider the following call to retrieve all revisions from the Wikipedia article:
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop...
The rvstartid and rvendid parameters are respectively set with the latest revision made to the article and the first. I know that this article has more than > 30000 revisions, however with this call I am only getting 363 results.
Can anyone please check this ?
Thanks in advance,
Sérgio Nunes
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/6/19 S. Nunes snunes@gmail.com:
Hi,
I think that the API is returning bad results when I try to retrieve a list of revisions. Consider the following call to retrieve all revisions from the Wikipedia article:
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop...
The rvstartid and rvendid parameters are respectively set with the latest revision made to the article and the first. I know that this article has more than > 30000 revisions, however with this call I am only getting 363 results.
Can anyone please check this ?
Dropping rvstartid and rvendid yields all revisions.
You need to keep in mind that the earliest revision is the one with the lowest *timestamp*, but that doesn't necessarily correspond to the lowest *revision ID*.
Roan Kattouw (Catrope)
Thanks for the feedback.
With this particular API call I would expect to get all revisions of an article that occurred between two specific revisions (identified by ids). I didn't assume that revids would be ordered.
So, given two revids of an article - can I get all the revisions in between with the API?
-- Sérgio Nunes
On 19 June 2010 17:37, Roan Kattouw roan.kattouw@gmail.com wrote:
2010/6/19 S. Nunes snunes@gmail.com:
Hi,
I think that the API is returning bad results when I try to retrieve a list of revisions. Consider the following call to retrieve all revisions from the Wikipedia article:
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop...
The rvstartid and rvendid parameters are respectively set with the latest revision made to the article and the first. I know that this article has more than > 30000 revisions, however with this call I am only getting 363 results.
Can anyone please check this ?
Dropping rvstartid and rvendid yields all revisions.
You need to keep in mind that the earliest revision is the one with the lowest *timestamp*, but that doesn't necessarily correspond to the lowest *revision ID*.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/6/19 S. Nunes snunes@gmail.com:
Thanks for the feedback.
With this particular API call I would expect to get all revisions of an article that occurred between two specific revisions (identified by ids). I didn't assume that revids would be ordered.
So, given two revids of an article - can I get all the revisions in between with the API?
You can use rvstart and rvend to get all revisions between two timestamps, so if you really wanted to you could look up the timestamps of your revisions with prop=revisions&revids=123|456 , then plug those into rvstart and rvend.
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org