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
| Name | Type | Required | Description |
|---|---|---|---|
post_url | string | Yes | Post URL or ID (e.g. https://www.reddit.com/r/sub/comments/abc123/ or t3_abc123 or abc123) |
comment_mode | string | No | Mode: custom (limited), top_level (depth-0 only), all (exhaustive fetch). Default: custom |
comments_num | number | No | Max comments to return (1-5000, default: 100) |
comment_sort | string | No | Sort order: best, top, new, controversial, old, qa (default: top) |
Authentication
| Header | Value |
|---|---|
X-RapidAPI-Key | Your RapidAPI key |
X-RapidAPI-Host | red-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"
}