API talk:RecentChanges

Latest comment: 3 months ago by Aphfug in topic How to group recentChanges ?

Untitled

edit

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)Reply

shouldn't Excludeuser be a list?

edit

Hi, I think that rcexcludeuser must be a list or other wise I don't see what's its meaning Katkov Yury (talk) 16:13, 6 September 2013 (UTC)Reply

I use it to exclude my edits. Kaligula (talk) 17:23, 7 September 2013 (UTC)Reply

rcstart

edit

I don't understand sth – McZusatz wrote it cannot be > 30 days and added 2 links: one saying 13 weeks (MediaWiki manual) and another saying 30 days (github). Kaligula (talk) 15:36, 22 December 2013 (UTC)Reply

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)Reply

rctitles removed?

edit

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)Reply

You're right. It was apparently removed the version after it was added, so it appears in 1.14 only. – RobinHood70 talk 21:50, 2 October 2014 (UTC)Reply
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)Reply
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. – RobinHood70 talk 22:13, 14 November 2014 (UTC)Reply

rcnamespace

edit

Can rcnamespace take more than one value? The wording ("Only list changes in these namespaces") suggests it can, but how can you enter more than one value? Cumbril (talk) 05:13, 8 April 2015 (UTC)Reply

Answering my own question: yes, it can take multiple values, separated by | character. Cumbril (talk) 05:27, 8 April 2015 (UTC)Reply

rcstart ($wgRCMaxAge value) and dumps

edit

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)Reply

Agreed. 30 days is pretty tight anyway. -- Green Cardamom (talk) 18:50, 19 March 2017 (UTC)Reply

rctag

edit

How can I provide rctag multiple values i.e both mw-undo and mw-rollback in the same query request? I tried rctag=mw-rollback|mw-undo but failed. Nokib Sarkar (talk) 14:46, 21 May 2020 (UTC)Reply

Now, it's not possible either. Plantaest (talk) 16:58, 1 May 2024 (UTC)Reply

Question about rcprop

edit

Hello API RecentChanges maintainers, I have a question about the rcprop parameter. Why is it that on English Wikipedia, this parameter accepts the value 'orescores', but on Vietnamese Wikipedia it does not, even though Vietnamese Wikipedia still has the ORES reverted model? Plantaest (talk) 23:28, 8 May 2024 (UTC)Reply

How to group recentChanges ?

edit

I want to display the changes of the last 3 days and order them by size of Change. But there are problems :

- If I use rctoponly, it'll only fetch the last one and the rcprop:sizes won't be the whole size on the 3 days span. It'll only be the size of the latest change.

- If I don't use rctoponly, it'll fetch the same page multiple times and there will be the sane page displayed mutliple times.


So I'm looking for a way to group the changes by page on the last 3 days. Is there any way to do it ?

I know the page Special:RecentChanges managed to do it with the url parameter enhanced=1 or with the checkbox "Group results by page" and I want to do the same.

Basically, I'm making a reskin of Special:RecentChanges to make it more user friendly for the user on the website I'm working on. Here's how it looks like in dev (remove Dev in url to see stable version) Aphfug (talk) 01:15, 7 August 2024 (UTC)Reply

Return to "RecentChanges" page.