The edit history of a community wiki page, newest first: revision id, date, editor and edit reason, plus a revision_cursor that opens that revision with /reddit/v1/subreddit/wiki. content=1 adds each revision's text, HTML and table of contents. Pass next_cursor back as cursor for older revisions; null at the first revision. Every response includes credits_used: the credits this call cost.
Parameters
name
type
description
subredditrequired
string
Community name (Python), r/Python, or a reddit.com link to the community or to a wiki page. Example: Python
page
string
Wiki page name (index by default) or its link. Example: index
limit
integer
Revisions per page, 1 to 10 (default 3). Default: 3
content
0 | 1
1 to include each revision's text, HTML and table of contents.
cursor
string
Cursor from next_cursor on the previous response; next_cursor is null on the last page.
import os, requests
res = requests.get(
"https://api.api.sh/reddit/v1/subreddit/wiki/revisions",
params={"subreddit": "Python"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json()
const url = new URL("https://api.api.sh/reddit/v1/subreddit/wiki/revisions");
url.searchParams.set("subreddit", "Python");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json();
Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.