GET /comment/batch

Comment Batch

Look up to 50 comments in one request. Reddit Scraper API endpoint /comment/batch: parameters, JSON response fields and code examples.

Up to 50 comments at once by id, in the order sent: author, score, text, timestamps, parent comment, the author’s flair in the comment’s community and the comment’s flags. A deleted comment comes back as a row with is_deleted true; ids Reddit has no comment for are listed in missing_ids, ids not looked up in time in not_attempted. Billed 1 request per comment returned (minimum 1).

HTTP Request

GET /comment/batch

Cost (in requests): 1 per comment returned. Every successful answer reports its cost in data.billed_requests.

Parameters

ParameterTypeRequiredDefaultDescription
comment_idsstringYes-Comment ids, with or without t1_, 1–50. Comma-separated, duplicates removed, request order kept in the answer.
include_htmlbooleanNofalseAdds body_html (the rendered HTML body) to every post and comment. Default: left out; body_text carries the same text.

Response

Real response to GET /comment/batch?comment_ids=t1_19rve4jkai9b4,t1_19rvhm63rkdr4 (arrays trimmed to 2 items, long texts cut with …).

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
  "status": true,
  "request_id": "4a5e027a-c9ce-8da6-d3e8-fa9f244e",
  "data": {
    "requested_count": 2,
    "found_count": 2,
    "missing_ids": [],
    "truncated": false,
    "not_attempted": [],
    "billed_requests": 2,
    "items": [
      {
        "comment_id": "t1_19rve4jkai9b4",
        "permalink": "/r/Python/comments/1xj9fse/pep_851_add_listdiscard/19rve4jkai9b4/",
        "post_url": "https://www.reddit.com/r/Python/comments/1xj9fse/pep_851_add_listdiscard/19rve4jkai9b4/",
        "post_id": "t3_1xj9fse",
        "subreddit": "Python",
        "subreddit_id": "t5_2qh0y",
        "parent_id": "t3_1xj9fse",
        "author": "Brilliant_Cut_8780",
        "author_id": "t2_cjjh7aut",
        "author_avatar_url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_5.png",
        "author_badge": null,
        "is_author_nsfw": false,
        "author_flair": null,
        "score": 96,
        "is_score_hidden": false,
        "created_at": "2026-10-30T08:25:55.778000+00:00",
        "edited_at": null,
        "type": "text",
        "is_op": false,
        "distinguished": null,
        "is_stickied": false,
        "is_locked": false,
        "is_collapsed": false,
        "is_archived": false,
        "is_deleted": false,
        "is_author_deleted": false,
        "is_removed": false,
        "body_text": "I like the proposal and checked the full pep and wondered about remove(x, missing_ok=True), but the PEP covers it under Rejected Ideas. After reading it, I think the separate method is the better choice, mostly because of the return value. …",
        "body_media": []
      },
      {
        "comment_id": "t1_19rvhm63rkdr4",
        "permalink": "/r/Python/comments/1xj9fse/pep_851_add_listdiscard/19rvhm63rkdr4/",
        "post_url": "https://www.reddit.com/r/Python/comments/1xj9fse/pep_851_add_listdiscard/19rvhm63rkdr4/",
        "post_id": "t3_1xj9fse",
        "subreddit": "Python",
        "subreddit_id": "t5_2qh0y",
        "parent_id": "t1_19rve4jkai9b4",
        "author": "JambaJuiceIsAverage",
        "author_id": "t2_mcp3o3",
        "author_avatar_url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_3.png",
        "author_badge": null,
        "is_author_nsfw": false,
        "author_flair": null,
        "score": 48,
        "is_score_hidden": false,
        "created_at": "2026-10-30T09:44:10.043000+00:00",
        "edited_at": "2026-10-30T11:52:45.777000+00:00",
        "type": "text",
        "is_op": false,
        "distinguished": null,
        "is_stickied": false,
        "is_locked": false,
        "is_collapsed": false,
        "is_archived": false,
        "is_deleted": false,
        "is_author_deleted": false,
        "is_removed": false,
        "body_text": "\"A flag that's always passed as a literal is usually a sign it should be its own method\" is a wonderful rule to code by. I love that.",
        "body_media": []
      }
    ]
  },
  "request_params": {
    "comment_ids": "t1_19rve4jkai9b4,t1_19rvhm63rkdr4"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectBatch result.
data.requested_countintegerIds requested after de-duplication.
data.found_countintegerComments returned (deleted ones included); the billing unit.
data.missing_idsarrayRequested ids Reddit has no comment for. A deleted comment is not here: it comes back as a row with is_deleted true.
data.truncatedbooleanTrue when some ids could not be looked up in this request (time ran out, or Reddit did not answer for them); they are listed in not_attempted, not billed. Send them again.
data.not_attemptedarrayRequested ids with no answer in this request (empty unless truncated): ids not looked up before time ran out, and ids that were tried but where neither source answered. Send them again.
data.billed_requestsintegerRequests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1).
data.itemsarray of objectsFound comments in request order, with parent_id, edited_at, the author’s flair in the comment’s own community and the comment’s flags. A deleted comment keeps created_at, post_id, parent_id and its community, with is_deleted true.
data.items[].comment_idstringComment fullname, e.g. t1_c60o0iw.
data.items[].permalinkstringComment path, e.g. /r/IAmA/comments/z1c9z/comment/c60o0iw/.
data.items[].post_urlstringAbsolute link of the comment on Reddit (https://www.reddit.com + permalink), ready to open.
data.items[].post_idstringPost fullname (t3_…).
data.items[].subredditstringSubreddit name without r/; null when this endpoint does not carry it (comment trees: see the post).
data.items[].subreddit_idstringSubreddit id (t5_…); null when this endpoint does not carry it. Left out on /user/activity.
data.items[].parent_idstringParent fullname: the parent comment (t1_…), or the post (t3_…) for a top-level comment; null when this endpoint does not carry it. Only with with_details=true on /user/activity.
data.items[].authorstringUsername; [deleted] is reported as null with is_author_deleted true.
data.items[].author_idstringAuthor account id (t2_…).
data.items[].author_avatar_urlstringAuthor avatar URL. Left out on /user/activity.
data.items[].author_badgestring / nullAchievement badge shown next to the name, e.g. Top 1% Commenter. Left out on /user/activity.
data.items[].is_author_nsfwbooleanThe author’s profile is marked 18+; null when this endpoint does not carry it. Left out on the comment trees (/post/comments, /comment/replies) and /user/activity.
data.items[].author_flairobject / nullAuthor’s flair in the comment’s community. Left out on the comment trees (/post/comments, /comment/replies); only with with_details=true on /user/activity.
data.items[].scoreintegerNet upvotes; null when Reddit hides the score.
data.items[].is_score_hiddenbooleanReddit hides the score (new comment in a sub that delays scores).
data.items[].created_atstringISO-8601 UTC creation time.
data.items[].edited_atstring / nullISO-8601 UTC last edit; null when never edited or unknown. Only with with_details=true on /user/activity.
data.items[].typestringKind of comment body: text, image or gif; null when it cannot be told (a GIF or video in a /user/activity comment without with_details).
data.items[].is_opbooleanWritten by the post author.
data.items[].distinguishedstring / nullmoderator or admin when distinguished; else null.
data.items[].is_stickiedbooleanPinned at the top of the thread.
data.items[].is_lockedbooleanReplies locked. Only with with_details=true on /user/activity.
data.items[].is_collapsedbooleanCollapsed by default in Reddit’s UI.
data.items[].is_archivedbooleanThread archived.
data.items[].is_deletedbooleanDeleted by its author (body gone).
data.items[].is_author_deletedbooleanThe author’s account is deleted (body may remain).
data.items[].is_removedbooleanRemoved by a moderator (body replaced by Reddit’s notice).
data.items[].body_textstringComment as plain text.
data.items[].body_mediaarrayImages and videos embedded in the comment, in order; empty when none or when this endpoint does not carry them. Only with with_details=true on /user/activity.
request_paramsobjectEcho of the parameters you sent

Error Responses

Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:

1
{ "status": false, "request_id": "99a1e6cd-2e57-9e8f-4e44-2dea7f6d", "error": "Invalid parameter 'post_id': must be a post id such as z1c9z or t3_z1c9z", "request_params": { "post_id": "!!" } }
Status CodeCauseDescription
400Invalid or missing parameterPlain-English message per field. Not billed
200 with status: falseItem not availableerror.code is not_found, deleted. data is null. Billed 1 request
503Reddit temporarily unreachable"error": "Service temporarily unavailable". Not billed, retry later

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
import requests

url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/comment/batch"

params = {
    "comment_ids": "t1_19rve4jkai9b4,t1_19rvhm63rkdr4",
}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=params)
data = response.json()["data"]

for item in data["items"]:
    print(item["subreddit"], item["body_text"])
print("Billed requests:", data["billed_requests"])
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
const url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/comment/batch";

const params = new URLSearchParams({
  comment_ids: "t1_19rve4jkai9b4,t1_19rvhm63rkdr4",
});

const response = await fetch(`${url}?${params}`, {
  headers: {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  }
});

const { data } = await response.json();
data.items.forEach((item) => console.log(item.subreddit, item.body_text));
1
2
3
4
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/comment/batch" \
  --data-urlencode "comment_ids=t1_19rve4jkai9b4,t1_19rvhm63rkdr4" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
Start building today

Get your API key and make your first request in under a minute.

Get Your API Key on RapidAPI