RedCrawler API
Scrape V1

Post Comments by Post ID V1

Get all comments on a post. Supports sorting, limiting depth, and 3 modes: custom (limited), top_level (depth-0 only), all (exhaustive).

GET /api/v1/replies/tree

Get all comments on a post. Supports sorting, limiting depth, and 3 modes: custom (limited), top_level (depth-0 only), all (exhaustive).

Query parameters

NameTypeRequiredDescription
post_urlstringYesPost URL or ID (e.g. https://www.reddit.com/r/sub/comments/abc123/ or t3_abc123 or abc123)
comment_modestringNoMode: custom (limited), top_level (depth-0 only), all (exhaustive fetch). Default: custom
comments_numnumberNoMax comments to return (1-5000, default: 100)
comment_sortstringNoSort order: best, top, new, controversial, old, qa (default: top)

Authentication

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

Example request

cURL

curl -X GET "https://red-crawler1.p.rapidapi.com/api/v1/replies/tree?post_url=https://www.reddit.com/r/test/comments/1sys4r2/image_post/&comment_mode=custom&comments_num=100&comment_sort=top" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: red-crawler1.p.rapidapi.com"

JavaScript

const res = await fetch("https://red-crawler1.p.rapidapi.com/api/v1/replies/tree?post_url=https://www.reddit.com/r/test/comments/1sys4r2/image_post/&comment_mode=custom&comments_num=100&comment_sort=top", {
  method: "GET",
  headers: {
      "X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
    "X-RapidAPI-Host": "red-crawler1.p.rapidapi.com"
    }
});
const data = await res.json();
console.log(data);

Python

import requests

url = "https://red-crawler1.p.rapidapi.com/api/v1/replies/tree?post_url=https://www.reddit.com/r/test/comments/1sys4r2/image_post/&comment_mode=custom&comments_num=100&comment_sort=top"
headers = {
    "X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
    "X-RapidAPI-Host": "red-crawler1.p.rapidapi.com"
}
resp = requests.get(url, headers=headers)
print(resp.json())

Example response

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

{
  "success": true,
  "data": {
    "comments": [],
    "count": 0
  },
  "error": null,
  "timestamp": "2026-04-29T08:58:41.490428+00:00"
}

On this page