API · Reddit
GET /reddit/subreddits/{name}/wiki
A page of a subreddit's wiki: rendered HTML, markdown source, last revision.
| |
|---|
| Request | GET /v1/reddit/subreddits/{name}/wiki |
| Operation id | reddit.subreddit.wiki |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A page of a subreddit's wiki: rendered HTML, markdown source, last revision.
| Name | Type | Required | Description |
|---|
name | string | yes | Subreddit name, with or without "r/". "all" and "popular" also work for posts. Example: typescript. |
| Name | Type | Required | Description |
|---|
page | string | no | Wiki page name. Default index. Example: index. |
source | "true" | "false" | no | true: the markdown source as written. Default false. One of true, false. |
| Status | Meaning | Schema |
|---|
200 | The wiki page. | WikiPage |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The subreddit, post or user does not exist. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Reddit is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
kind | "wikipage" | |
data | object | |
Errors use one shape everywhere; see Errors for every code and what to do.