Data
List members of a Wikipedia category (paginated) API
Lists pages and subcategories belonging to a Wikipedia category, namespace-filtered and paginated via a cursor. Subcategory names are de-prefixed and each member gets a resolved URL. Answers 'what articles are in category X', 'enumerate a topic taxonomy', 'walk a category tree'.
Price$0.01per request
MethodPOST
Route/v1/data/wiki-category-members
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache86400s public
datawikipediacategorytaxonomymembersenumerationpaginationwikimedia
API URL
Integration docshttps://x402.hexl.dev/v1/data/wiki-category-membersExample request
{
"category": "Physics",
"limit": 5
}Example response
{
"category": "Category:Physics",
"count": 5,
"members": [
{
"title": "Physics",
"pageId": 22939,
"type": "page",
"url": "https://en.wikipedia.org/wiki/Physics"
},
{
"title": "Portal:Physics",
"pageId": 1653925,
"type": "page",
"url": "https://en.wikipedia.org/wiki/Portal%3APhysics"
},
{
"title": "AIC Judd Award",
"pageId": 82429008,
"type": "page",
"url": "https://en.wikipedia.org/wiki/AIC_Judd_Award"
},
{
"title": "Atominstitute",
"pageId": 80358385,
"type": "page",
"url": "https://en.wikipedia.org/wiki/Atominstitute"
},
{
"title": "Edge states",
"pageId": 74985603,
"type": "page",
"url": "https://en.wikipedia.org/wiki/Edge_states"
}
],
"nextCursor": "page|3240322e504c464e502a503a2e044e46403a502a4c5a04562a5432011f01dc1e|78147827"
}Input schema
{
"type": "object",
"required": [
"category"
],
"properties": {
"category": {
"type": "string",
"description": "Category name, with or without the 'Category:' prefix."
},
"limit": {
"type": "number",
"description": "Max members 1-50 (default 20)."
},
"cursor": {
"type": "string",
"description": "Pagination cursor (nextCursor from a prior call)."
},
"type": {
"type": "string",
"description": "Comma list of member types: page,subcat,file (default 'page,subcat')."
},
"project": {
"type": "string",
"description": "Wikimedia project host (default 'en.wikipedia')."
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}