https://tools.wmflabs.org/quick-intersection/index.php?lang=en&project=wikipedia&cats=Graduation_work%0D%0A2013&ns=0&depth=12&max=30000&start=0&format=html&redirects=&callback=&norun

(there don't appear to be any pages in both of these categories, though)

On Thu, Apr 2, 2015 at 11:05 AM andre <andrecastro@c-e-m.org> wrote:

Hello,

I have been using Mediawiki API on a few projects.
I now need to query the API for pages, members of 2 categories.
The pages have to be members of BOTH Category:Graduation_work and Category:2013

I've tried with:
api.php?format=json&action=query&list=categorymembers&cmlimit=500&cmtitle=Category:Graduation_work&cmtitle=Category:2013

but I realized that what the request is doing is asking only for the members of last category, that is Category:2013.

How could I request only the pages that are member of BOTH categories?


I have been searching, but found no answer.
Help would be very much appreciated :)
cheers
a


--
pinknoi.so
bibliotecha.info

--..,___.--,--'-,---..-.--+--.,,-,,...

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api