API talk:RecentChanges

What is the rationale for why you need the patrol right to request the patrolled flag? Shouldn't it be public knowledge what has or hasn't been patrolled? Leucosticte (talk) 07:54, 6 November 2012 (UTC)

The article appears to have fixed that, but now I don't understand something else: How should an API client go about determining the value of $wgRCMaxAge on a particular wiki without access to its LocalSettings.php? I don't see anything in API:Meta about it. And on English Wikipedia, calls appear not to return any indication of error when rcstart is older. --Damian Yerrick (talk) 15:34, 28 June 2014 (UTC)

It seems that the `rctitles` parameter has been removed.[1] I get "Unrecognized parameter: 'rctitles'" warning when trying to fetch specific titles using this module. -- Dalba 10 Mehr 1393/ 12:19, 2 October 2014 (UTC)

You're right. It was apparently removed the version after it was added, so it appears in 1.14 only. – RobinHood70talk 21:50, 2 October 2014 (UTC)

I was going to get all unpatrolled edits of an article using API. To do so I first got all needed revisions (action=query&prop=revisions&titles=...) and then compared the results with patrolled logs. (action=query&list=logevents&leprop=details&letype=patrol&letitle= ...)

But because of bugzilla:40624 I was not able to detect edits that are patrolled by rollback.

Now knowing that rctitles does not exist anymore, do you know a better way to do this? Dalba 23 Aban 1393/ 08:00, 14 November 2014 (UTC)

There really are no good ways to do that, at least not that I can find, though there are a few bad ways that come to mind. :)

Query all recent changes in the correct namespace, then just filter out any that aren't the title you're looking for. On something the size of Wikipedia, though, that could be a lot of data to sift through.

Using your prop=revisions query, get the timestamps of all the revisions, then send a whole bunch of recentchanges queries using rcstart and rcend to narrow the results down to those specific timestamps. You'd still have to filter out titles you're not interested in (for cases where edits were made with the same timestamp, but on a different page), but there'd be a lot less to filter out unless the wiki you're dealing with is very inactive.

You might also be able to get there by watching the page and then using API:Watchlist feed, but that's a real hack of a way to do it and would probably be hard to work with. – RobinHood70talk 22:13, 14 November 2014 (UTC)

Since from time to time the http://dumps.wikimedia.org/ does not provide dumps for over 30 days the value of $wgRCMaxAge must be at least synchronized with the last dump. I think at least with pages-meta-current dump. Even better do not purge changes until we have a new complete dump. And allow to set rcstart to that value. --85.72.40.33 17:25, 20 June 2015 (UTC)