Should be able to generate watchlist like results for a generator
Open, Needs TriagePublic

Description

I can request a list of recent changes for items from my watchlist:
https://en.m.wikipedia.org/wiki/Special:ApiSandbox?useformat=desktop#action=query&list=watchlist&format=json
generated from articles in my raw watchlist - https://en.m.wikipedia.org/wiki/Special:ApiSandbox?useformat=desktop#action=query&list=watchlistraw&format=json

Logically it seems that you might be able to use a generator to swap out the pages used to generate the watchlist e.g. rather than watchlistraw pass in a list of pages in a given category (for example https://en.m.wikipedia.org/wiki/Special:ApiSandbox?useformat=desktop#action=query&list=categorymembers&format=json&cmtitle=Category%3ABirds) to show edits across them.

This would be extremely useful to get delivered in a single API request allowing us to build all sorts of web apps and explore multiple watchlist type functionality.

Jdlrobson updated the task description. (Show Details)
Jdlrobson raised the priority of this task from to Needs Triage.
Jdlrobson added a project: MediaWiki-API.
Jdlrobson added subscribers: Jdlrobson, Tgr.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptDec 15 2015, 12:42 AM
Tgr added a comment.Dec 15 2015, 12:52 AM

In other words, it would be nice to have a prop-type watchlist API instead of / next to the current list-type one. One thing that could be implemented with it that's currently available via the web UI but not via the API is linked recent changes / category recent changes.

Tgr added a comment.Dec 15 2015, 12:56 AM

One thing that could be implemented with it that's currently available via the web UI but not via the API is linked recent changes / category recent changes.

See also T17552 (which would be a less generic solution for that).

Anomie added a subscriber: Anomie.Dec 15 2015, 1:43 AM

This seems like this is close to a duplicate of T57377: API: Implement rctitles parameter in query=recentchanges, unless you really insist on sticking with the "rctitle" there instead of being able to use a generator.

Anomie moved this task from Unsorted to Needs Code on the MediaWiki-API board.Dec 15 2015, 1:43 AM
Tgr added a comment.Dec 15 2015, 2:04 AM

This seems like this is close to a duplicate of T57377: API: Implement rctitles parameter in query=recentchanges, unless you really insist on sticking with the "rctitle" there instead of being able to use a generator.

I don't. Krinkle might :)