RedCrawler API
Commenting V1

Create Comment V1

Create a comment on a post. Supports inline images via image_url or image_base64.

POST /api/v1/discussion/create

Create a comment on a post. Supports inline images via image_url or image_base64.

Body parameters

NameTypeRequiredDescription
textstringYesComment text — plain text or Reddit markdown both work.
post_urlstringYesPost URL, ID, or t3_ prefixed ID.
richtext_jsonstringNoRich text JSON (alternative to text). Reddit internal format.
bearerstringNoBearer token. Optional if stored in Token Vault.
image_base64stringNoBase64-encoded image to embed inline (optional).
image_urlstringNoImage URL to embed inline (optional).
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/discussion/create" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: red-crawler1.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  --data '{"text": "<text>", "post_url": "<post_url>", "richtext_json": "<richtext_json>", "bearer": "<bearer>", "image_base64": "<image_base64>", "image_url": "<image_url>", "proxy": "<proxy>"}'

JavaScript

const res = await fetch("https://red-crawler1.p.rapidapi.com/api/v1/discussion/create", {
  method: "POST",
  headers: {
      "X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
    "X-RapidAPI-Host": "red-crawler1.p.rapidapi.com"
    },
    body: JSON.stringify({
  "text": "<text>",
  "post_url": "<post_url>",
  "richtext_json": "<richtext_json>",
  "bearer": "<bearer>",
  "image_base64": "<image_base64>",
  "image_url": "<image_url>",
  "proxy": "<proxy>"
})
});
const data = await res.json();
console.log(data);

Python

import requests

url = "https://red-crawler1.p.rapidapi.com/api/v1/discussion/create"
headers = {
    "X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
    "X-RapidAPI-Host": "red-crawler1.p.rapidapi.com",
    "Content-Type": "application/json"
}
payload = {
  "text": "<text>",
  "post_url": "<post_url>",
  "richtext_json": "<richtext_json>",
  "bearer": "<bearer>",
  "image_base64": "<image_base64>",
  "image_url": "<image_url>",
  "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": {
    "approved_at_utc": null,
    "comment_type": null,
    "banned_by": null,
    "author_flair_type": "text",
    "subreddit_id": "t5_2qh23",
    "subreddit": "test",
    "likes": null,
    "replies": "",
    "user_reports": [],
    "saved": false,
    "banned_at_utc": null,
    "mod_reason_title": null,
    "gilded": 0,
    "archived": false,
    "no_follow": false,
    "parent_id": "t3_1syt6xi",
    "subreddit_name_prefixed": "r/test",
    "all_awardings": [],
    "awarders": [],
    "collapsed": false,
    "can_gild": false,
    "top_awarded_type": null,
    "score_hidden": false,
    "media_metadata": {
      "9cogk14fr3yg1": {
        "status": "unprocessed"
      }
    },
    "locked": false,
    "name": "t1_oiwsrqj",
    "author_flair_text": null,
    "treatment_tags": [],
    "rte_mode": "richtext",
    "controversiality": 0,
    "author_flair_background_color": null,
    "collapsed_because_crowd_control": null,
    "mod_note": null,
    "distinguished": null,
    "total_awards_received": 0,
    "author_is_blocked": false,
    "mod_reason_by": null,
    "removal_reason": null,
    "link_id": "t3_1syt6xi",
    "author_flair_template_id": null,
    "author_fullname": "t2_29onm7dc32",
    "id": "oiwsrqj",
    "collapsed_reason": null,
    "collapsed_reason_code": null,
    "report_reasons": null,
    "author": "Motor_Tip8865",
    "can_mod_post": false,
    "send_replies": true,
    "score": 1,
    "approved_by": null,
    "author_premium": false,
    "downs": 0,
    "body": "test comment\n\n*Processing img 9cogk14fr3yg1...*",
    "edited": false,
    "author_flair_css_class": null,
    "is_submitter": true,
    "author_flair_richtext": [],
    "author_patreon_flair": false,
    "body_html": "<div class=\"md\"><p>test comment</p>\n\n<p><em>Processing img 9cogk14fr3yg1...</em></p>\n</div>",
    "gildings": {},
    "associated_award": null,
    "subreddit_type": "public",
    "unrepliable_reason": null,
    "author_flair_text_color": null,
    "permalink": "/r/test/comments/1syt6xi/text_post/oiwsrqj/",
    "num_reports": null,
    "stickied": false,
    "created": 1777456726,
    "created_utc": 1777456726,
    "ups": 1,
    "mod_reports": []
  },
  "error": null,
  "timestamp": "2026-04-29T09:58:46.554672+00:00"
}

On this page