I would guess that this is a newbie question. When I query for a category with something like:
http://en.wikipedia.org/w/api.php?cmtitle=Category:Culture&action=query&... =categorymembers&cmlimit=500
is there a way for me to also get the categories that this category belongs to without doing a second query?
Thanks,
Robert
Robert Crowe wrote:
I would guess that this is a newbie question. When I query for a category with something like:
http://en.wikipedia.org/w/api.php?cmtitle=Category:Culture&action=query&...
is there a way for me to also get the categories that this category belongs to without doing a second query?
Thanks,
Robert
http://en.wikipedia.org/w/api.php?cmtitle=Category:Culture&action=query&...
You're welcome.
Thanks Platonides! I had tried similar queries, but there must some subtle difference between what I tried and your correct answer.
Robert
-----Original Message----- From: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] On Behalf Of Platonides Sent: Friday, February 11, 2011 7:29 PM To: MediaWiki API announcements & discussion Subject: Re: [Mediawiki-api] Newbie question?
Robert Crowe wrote:
I would guess that this is a newbie question. When I query for a category with something like:
http://en.wikipedia.org/w/api.php?cmtitle=Category:Culture&action=query&... =categorymembers&cmlimit=500
is there a way for me to also get the categories that this category belongs to without doing a second query?
Thanks,
Robert
http://en.wikipedia.org/w/api.php?cmtitle=Category:Culture&action=query&... =categorymembers&titles=Category:Culture&prop=categories&cmlimit=500
You're welcome.
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org