RedCrawler API
Wiki V1

Wiki Edit V1

Edit a wiki page's content. Creates the page if it doesn't exist. Requires wiki editing permissions.

POST /api/v1/knowledge/edit

Edit a wiki page's content. Creates the page if it doesn't exist. Requires wiki editing permissions.

Body parameters

NameTypeRequiredDescription
subredditstringYesSubreddit name (e.g. python).
contentstringYesWiki page content — plain text or Reddit markdown both work.
pagestringYesWiki page name (e.g. index, config/sidebar, faq).
reasonstringNoEdit reason (shown in revision history).
bearerstringNoBearer token. Optional if stored in Token Vault.
proxystringNoProxy. Optional if stored in Token Vault.

Authentication

HeaderValue
X-RapidAPI-KeyYour RapidAPI key
X-RapidAPI-Hostred-crawler1.p.rapidapi.com

Example request

cURL

curl -X POST "https://red-crawler1.p.rapidapi.com/api/v1/knowledge/edit" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: red-crawler1.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  --data '{"subreddit": "python", "content": "<content>", "page": "index", "reason": "<reason>", "bearer": "<bearer>", "proxy": "<proxy>"}'

JavaScript

const res = await fetch("https://red-crawler1.p.rapidapi.com/api/v1/knowledge/edit", {
  method: "POST",
  headers: {
      "X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
    "X-RapidAPI-Host": "red-crawler1.p.rapidapi.com"
    },
    body: JSON.stringify({
  "subreddit": "python",
  "content": "<content>",
  "page": "index",
  "reason": "<reason>",
  "bearer": "<bearer>",
  "proxy": "<proxy>"
})
});
const data = await res.json();
console.log(data);

Python

import requests

url = "https://red-crawler1.p.rapidapi.com/api/v1/knowledge/edit"
headers = {
    "X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
    "X-RapidAPI-Host": "red-crawler1.p.rapidapi.com",
    "Content-Type": "application/json"
}
payload = {
  "subreddit": "python",
  "content": "<content>",
  "page": "index",
  "reason": "<reason>",
  "bearer": "<bearer>",
  "proxy": "<proxy>"
}
resp = requests.post(url, headers=headers, json=payload)
print(resp.json())

Example response

HTTP 200 — captured from a live call to the gateway.

{
  "success": true,
  "data": {},
  "error": null,
  "timestamp": "2026-04-29T18:28:22.270399+00:00"
}

On this page