Every page of a community’s wiki, flattened from the page tree: path (the wiki_page of /subreddit/wiki), title, parent page, depth and exists. A community without a readable wiki answers items: []. Billed 1 request per call.
HTTP Request
GET /subreddit/wiki-pages
Cost (in requests): 1. Every successful answer reports its cost in data.billed_requests.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
subreddit | string | Yes | - | Subreddit name (case-insensitive, with or without r/) or its t5_ id. |
Response
Real response to GET /subreddit/wiki-pages?subreddit=python (arrays trimmed to 2 items, long texts cut with …).
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | true when the request succeeded |
request_id | string | Unique request identifier |
data | object | Page list; null with error.code = not_found. |
data.subreddit | string | Subreddit name. |
data.items | array of objects | Wiki page tree, flattened. |
data.items[].wiki_page | string | Page path usable as wiki_page. |
data.items[].name | string | Last path segment. |
data.items[].parent | string / null | Parent page path for nested pages. |
data.items[].depth | integer | Nesting depth (0 = top). |
data.items[].exists | boolean | The page exists (the tree also lists parent paths that have no page). |
data.items[].visibility_status | string | Page visibility as Reddit reports it, lower case (e.g. visible). |
data.billed_requests | integer | Requests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1). |
request_params | object | Echo of the parameters you sent |
Error Responses
Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:
| |
| Status Code | Cause | Description |
|---|---|---|
| 400 | Invalid or missing parameter | Plain-English message per field. Not billed |
200 with status: false | Item not available | error.code is not_found, banned, private, quarantined. data is null. Billed 1 request |
| 503 | Reddit temporarily unreachable | "error": "Service temporarily unavailable". Not billed, retry later |
Code Examples
| |
| |
| |
Related Endpoints
- Subreddit Highlights : Posts the moderators highlighted in a subreddit
- Subreddit Wiki : A subreddit wiki page (HTML, markdown, latest revision)
- Subreddit Wiki Export : A subreddit’s whole wiki in one call