# MediaWiki on Onekey > 9 endpoints for MediaWiki (9 stable, 0 beta), 1 to 5 credits each. Category: Knowledge & reference. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/mediawiki Reference (Markdown): https://onekey.dev/docs/api/mediawiki.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 9 mapped MediaWiki endpoints return each: - `content.id` (string): 7 - `content.title` (string): 6 - `content.text` (string): 4 - `content.createdAt` (ISO 8601 date): 3 - `author.username` (string): 2 - `entity.name` (string): 2 - `entity.type` (string): 2 - `content.language` (string): 1 - `content.url` (URL): 1 - `entity.updatedAt` (ISO 8601 date): 1 - `entity.url` (URL): 1 - `media.url` (URL): 1 - `package.version` (string): 1 - plus 10 platform-specific fields under `ext.` ## Endpoints ### mediawiki.all_categories Categories (with member counts) of an allowlisted game wiki. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/mediawiki/all_categories?wiki=minecraft.wiki` with header `x-api-key: YOUR_API_KEY` - Parameters: - `wiki` (string, required): Allowlisted wiki host, e.g. minecraft.wiki - Fields returned: `entity.name`, `ext.pages`, `ext.fileCount`, `ext.subcategories` - Reference: https://onekey.dev/docs/api/mediawiki/all_categories.md ### mediawiki.all_pages Pages whose title starts with a prefix on an allowlisted game wiki. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/mediawiki/all_pages?wiki=minecraft.wiki&prefix=Cre` with header `x-api-key: YOUR_API_KEY` - Parameters: - `wiki` (string, required): Allowlisted wiki host, e.g. minecraft.wiki - `prefix` (string, required): Title prefix - Fields returned: `content.id`, `content.title` - Reference: https://onekey.dev/docs/api/mediawiki/all_pages.md ### mediawiki.category_members Pages in a category of an allowlisted game wiki. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/mediawiki/category_members?wiki=minecraft.wiki&category=Mobs` with header `x-api-key: YOUR_API_KEY` - Parameters: - `wiki` (string, required): Allowlisted wiki host, e.g. minecraft.wiki - `category` (string, required): Category name without the Category: prefix - Fields returned: `content.id`, `content.title`, `entity.type` - Reference: https://onekey.dev/docs/api/mediawiki/category_members.md ### mediawiki.page Summary, image and metadata of a page on an allowlisted game wiki. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/mediawiki/page?wiki=minecraft.wiki&title=Creeper` with header `x-api-key: YOUR_API_KEY` - Parameters: - `wiki` (string, required): Allowlisted wiki host, e.g. minecraft.wiki - `title` (string, required): Page title - Fields returned: `content.id`, `content.title`, `content.url`, `content.text`, `media.url`, `entity.updatedAt`, `content.language`, `ext.bytes`, `ext.lastRevisionId` - Reference: https://onekey.dev/docs/api/mediawiki/page.md ### mediawiki.page_history Latest revisions of a page on an allowlisted game wiki. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/mediawiki/page_history?wiki=minecraft.wiki&title=Creeper` with header `x-api-key: YOUR_API_KEY` - Parameters: - `wiki` (string, required): Allowlisted wiki host, e.g. minecraft.wiki - `title` (string, required): Page title - Fields returned: `content.id`, `author.username`, `content.text`, `content.createdAt`, `ext.bytes` - Reference: https://onekey.dev/docs/api/mediawiki/page_history.md ### mediawiki.random_pages Random articles from an allowlisted game wiki. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/mediawiki/random_pages?wiki=minecraft.wiki` with header `x-api-key: YOUR_API_KEY` - Parameters: - `wiki` (string, required): Allowlisted wiki host, e.g. minecraft.wiki - Fields returned: `content.id`, `content.title` - Reference: https://onekey.dev/docs/api/mediawiki/random_pages.md ### mediawiki.recent_changes Recent edits on an allowlisted game wiki. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/mediawiki/recent_changes?wiki=minecraft.wiki` with header `x-api-key: YOUR_API_KEY` - Parameters: - `wiki` (string, required): Allowlisted wiki host, e.g. minecraft.wiki - Fields returned: `content.id`, `content.title`, `author.username`, `content.text`, `content.createdAt`, `entity.type`, `ext.bytes` - Reference: https://onekey.dev/docs/api/mediawiki/recent_changes.md ### mediawiki.search Full-text search on an allowlisted game wiki. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/mediawiki/search?wiki=minecraft.wiki&q=creeper` with header `x-api-key: YOUR_API_KEY` - Parameters: - `wiki` (string, required): Allowlisted wiki host, e.g. minecraft.wiki - `q` (string, required): Search text - Fields returned: `content.id`, `content.title`, `content.text`, `content.createdAt`, `ext.wordCount` - Reference: https://onekey.dev/docs/api/mediawiki/search.md ### mediawiki.site_stats Site name and article/edit/user statistics of an allowlisted wiki. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/mediawiki/site_stats?wiki=minecraft.wiki` with header `x-api-key: YOUR_API_KEY` - Parameters: - `wiki` (string, required): Allowlisted wiki host, e.g. minecraft.wiki - Fields returned: `entity.name`, `entity.url`, `package.version`, `ext.articles`, `ext.pages`, `ext.edits`, `ext.users`, `ext.activeUsers`, `ext.fileCount` - Reference: https://onekey.dev/docs/api/mediawiki/site_stats.md ## Sample request ```bash curl "https://api.onekey.dev/v1/mediawiki/page?wiki=minecraft.wiki&title=Creeper" \ -H "x-api-key: YOUR_API_KEY" ```