# Wikipedia Category Members API

Get Wikipedia Category Members data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Wikimedia, pass parameters such as action, cmlimit, cmtitle, and retrieve structured data including member page identifier, member namespace, member page title, category-member continuation token, and general continuation value to build category navigation, collect topic references, and browse larger categories.

Documentation: https://openany.si/market/apis/wikipedia/wikipedia-category-members/
API ID: 8e1b8625-6d88-453f-8eeb-0feddaeeb7c0
Provider: wikimedia
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/category-members
Page update time: 2026-12-03T02:37:01.364Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:37:01.364Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Wikipedia Category Members API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "action": {
          "type": "string",
          "description": "Set to query.",
          "enum": [
            "query"
          ]
        },
        "list": {
          "type": "string",
          "description": "Set to categorymembers.",
          "enum": [
            "categorymembers"
          ]
        },
        "cmtitle": {
          "type": "string",
          "description": "Category title including the Category: prefix.",
          "minLength": 1,
          "maxLength": 255
        },
        "cmlimit": {
          "type": "integer",
          "description": "Maximum number of category members per request.",
          "minimum": 1,
          "maximum": 20
        },
        "format": {
          "type": "string",
          "description": "Set to json.",
          "enum": [
            "json"
          ]
        },
        "formatversion": {
          "type": "string",
          "description": "Set to 2.",
          "enum": [
            "2"
          ]
        },
        "continue": {
          "type": "string",
          "description": "Pass the continue value from the previous response to retrieve the next page."
        },
        "cmcontinue": {
          "type": "string",
          "description": "Pass the cmcontinue value from the previous response to retrieve the next page."
        }
      },
      "required": [
        "action",
        "list",
        "cmtitle",
        "cmlimit",
        "format",
        "formatversion"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "batchcomplete": {
      "type": "boolean"
    },
    "continue": {
      "type": "object",
      "properties": {
        "cmcontinue": {
          "type": "string"
        },
        "continue": {
          "type": "string"
        }
      }
    },
    "query": {
      "type": "object",
      "properties": {
        "categorymembers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "ns": {
                "type": "integer"
              },
              "pageid": {
                "type": "integer"
              },
              "title": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/wikimedia/category-members?action=query&cmlimit=3&cmtitle=Category%3APlanets+of+the+Solar+System&format=json&formatversion=2&list=categorymembers' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "batchcomplete": true,
  "continue": {
    "cmcontinue": "page|0a9403063a4434324c3a464c042a4430044e5248324c3a464c0448402a4432504e012301c4dc20|243441",
    "continue": "-||"
  },
  "query": {
    "categorymembers": [
      {
        "ns": 0,
        "pageid": 71736882,
        "title": "Planets of the Solar System"
      },
      {
        "ns": 0,
        "pageid": 587247,
        "title": "Classical planet"
      },
      {
        "ns": 0,
        "pageid": 899973,
        "title": "Definition of planet"
      }
    ]
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
