One page of a community’s wiki (wiki_page, default index): rendered HTML, markdown source when Reddit serves it, title and latest revision; page_status tells readable, restricted, missing and disabled pages apart. List the pages with /subreddit/wiki-pages. Billed 1 request per call.
HTTP Request
GET /subreddit/wiki
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. |
wiki_page | string | No | index | Wiki page path (default index; e.g. config/sidebar, faq). |
Response
Real response to GET /subreddit/wiki?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 | Wiki page; page_status tells restricted pages apart from missing ones; null with error.code = not_found (subreddit). |
data.subreddit | string | Subreddit name. |
data.wiki_page | string | Wiki page path. |
data.page_status | string | valid, restricted (page readable by members or moderators only), page_not_found, wiki_disabled. |
data.revision | object | Latest revision. |
data.revision.revision_id | string | Revision id. For reference; not an input of this API. |
data.revision.author | string | Editor username. |
data.revision.revised_at | string | ISO-8601 UTC revision time. |
data.revision.reason | string | Edit reason given by the editor. |
data.content_html | string | Page rendered as HTML. |
data.content_markdown | string | Page as Markdown: Reddit’s source when it serves it, else converted from content_html; null when there is no content. |
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 Flairs : Post and user flair templates of a subreddit
- Subreddit Highlights : Posts the moderators highlighted in a subreddit
- Subreddit Wiki Pages : All wiki pages of a subreddit