Topic on Project:Support desk

API for "related changes"

9
Summary by Ciencia Al Poder
Silas Ropac (talkcontribs)

I'm looking at the related changes feature and wondering if there is an API to access it. I see API's for the watchlist and for recent changes, both of which are similar. I'm completely new to mediawiki related programming. I'm interesting in getting related changes on Wikipedia.

MarkAHershberger (talkcontribs)

This is information that you can get from the API, but I don't see a single "related changes" call. From the page you linked to:

The "Related changes" feature lists all recent changes (before MediaWiki 1.5: only the last) in each page linked to from the specified page, or all recent changes in each page with a link to the specified page.

I looked at this for a bit, though, and didn't see a way to get a list of changes on a page or list of pages. I thought something like the following would work:

 https://www.mediawiki.org/w/api.php?action=query&titles=API|MediaWiki&list=recentchanges

But apparently it doesn't. If I'm right (and not simply ignorant) then this looks worthy of a bug report.

Ciencia Al Poder (talkcontribs)
Silas Ropac (talkcontribs)

Thanks for looking at this. I can't say I quite understand the issue enough to file a bug report. I haven't even used the API yet at all, was just going to experiment. I think I will just use the watchlist API for starters, it is the same idea but for one fixed "page". If later I really want to use "get related changes" I will circle back and pursue this. But if someone else wants to file the bug report in the meantime, that would great also. Thanks.

Silas Ropac (talkcontribs)

I believe this is the feature request for what I wanted to do: bug 15552

Amfufutm (talkcontribs)

Hi! any update regarding this issue? been trying also to get the related changes of a certain page. Like what is the output in this sample: Help:Related changes

Tried some bunch of queries but still no avail. One close enough is to get all the links that are associated with that page and get their revisions, problem is that there's too many of the returned links and all i want is the related changes that are recently updated of a certain page.

Ciencia Al Poder (talkcontribs)
Amfufutm (talkcontribs)

Thanks, will subscribe to that task.

This post was hidden by Amfufutm (history)
Reply to "API for "related changes""