Mediawiki API:如何列出一个类别的所有页面,并为每个页面显示所有页面';哪些类别?

Mediawiki API:如何列出一个类别的所有页面,并为每个页面显示所有页面';哪些类别?,mediawiki,wikipedia,wikipedia-api,mediawiki-api,Mediawiki,Wikipedia,Wikipedia Api,Mediawiki Api,我使用以下wikimedia API列出特定类别的所有页面: 例如 这给了我一个带有标题和id的页面列表,但我也希望看到每个页面的所有类别。然而,似乎没有针对这一点的cmprop cmprop: Which properties to get. (Default: ids|title) ids: Page ID title: Page title sortkey: The sortkey used for sorting in the category (hexadec

我使用以下wikimedia API列出特定类别的所有页面:

例如

这给了我一个带有标题和id的页面列表,但我也希望看到每个页面的所有类别。然而,似乎没有针对这一点的cmprop

cmprop: Which properties to get. (Default: ids|title)

    ids: Page ID
    title: Page title
    sortkey: The sortkey used for sorting in the category (hexadecimal string)
    sortkeyprefix: The sortkey prefix used for sorting in the category (human-readable part of the sortkey) 1.17+
    type: Type that the page has been categorised as (page, subcat or file) 1.17+
    timestamp: Time and date the article was added to the category

我曾考虑过查询每个页面,并使用prop=categories来获取每个页面的类别,但这意味着需要进行大量的查询。有更好的方法吗?

您可以使用
类别成员作为一个整体。如果这样做,则可以应用
prop=categories