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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
comment_ids | string | Yes | - | Comment ids, with or without t1_, 1–50. Comma-separated, duplicates removed, request order kept in the answer. |
include_html | boolean | No | false | Adds 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 …).
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | true when the request succeeded |
request_id | string | Unique request identifier |
data | object | Batch result. |
data.requested_count | integer | Ids requested after de-duplication. |
data.found_count | integer | Comments returned (deleted ones included); the billing unit. |
data.missing_ids | array | Requested ids Reddit has no comment for. A deleted comment is not here: it comes back as a row with is_deleted true. |
data.truncated | boolean | True 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_attempted | array | Requested 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_requests | integer | Requests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1). |
data.items | array of objects | Found 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_id | string | Comment fullname, e.g. t1_c60o0iw. |
data.items[].permalink | string | Comment path, e.g. /r/IAmA/comments/z1c9z/comment/c60o0iw/. |
data.items[].post_url | string | Absolute link of the comment on Reddit (https://www.reddit.com + permalink), ready to open. |
data.items[].post_id | string | Post fullname (t3_…). |
data.items[].subreddit | string | Subreddit name without r/; null when this endpoint does not carry it (comment trees: see the post). |
data.items[].subreddit_id | string | Subreddit id (t5_…); null when this endpoint does not carry it. Left out on /user/activity. |
data.items[].parent_id | string | Parent 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[].author | string | Username; [deleted] is reported as null with is_author_deleted true. |
data.items[].author_id | string | Author account id (t2_…). |
data.items[].author_avatar_url | string | Author avatar URL. Left out on /user/activity. |
data.items[].author_badge | string / null | Achievement badge shown next to the name, e.g. Top 1% Commenter. Left out on /user/activity. |
data.items[].is_author_nsfw | boolean | The 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_flair | object / null | Author’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[].score | integer | Net upvotes; null when Reddit hides the score. |
data.items[].is_score_hidden | boolean | Reddit hides the score (new comment in a sub that delays scores). |
data.items[].created_at | string | ISO-8601 UTC creation time. |
data.items[].edited_at | string / null | ISO-8601 UTC last edit; null when never edited or unknown. Only with with_details=true on /user/activity. |
data.items[].type | string | Kind 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_op | boolean | Written by the post author. |
data.items[].distinguished | string / null | moderator or admin when distinguished; else null. |
data.items[].is_stickied | boolean | Pinned at the top of the thread. |
data.items[].is_locked | boolean | Replies locked. Only with with_details=true on /user/activity. |
data.items[].is_collapsed | boolean | Collapsed by default in Reddit’s UI. |
data.items[].is_archived | boolean | Thread archived. |
data.items[].is_deleted | boolean | Deleted by its author (body gone). |
data.items[].is_author_deleted | boolean | The author’s account is deleted (body may remain). |
data.items[].is_removed | boolean | Removed by a moderator (body replaced by Reddit’s notice). |
data.items[].body_text | string | Comment as plain text. |
data.items[].body_media | array | Images 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_params | object | Echo of the parameters you sent |
Error Responses
Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:
| |
| Status Code | Cause | Description |
|---|---|---|
| 400 | Invalid or missing parameter | Plain-English message per field. Not billed |
200 with status: false | Item not available | error.code is not_found, deleted. data is null. Billed 1 request |
| 503 | Reddit temporarily unreachable | "error": "Service temporarily unavailable". Not billed, retry later |
Code Examples
| |
| |
| |
Related Endpoints
- Comment Replies : Replies under one comment
- Comment Parents : Parent chain of a comment