GET /comment/details

Comment Details

Comment details by id or URL. Reddit Scraper API endpoint /comment/details: parameters, JSON response fields and code examples.

One comment: author, score, upvote ratio, exact replies_count, awards, body, parent id, edit time, flags and the post it belongs to. Give comment_id or a comment url. Billed 1 request per call.

HTTP Request

GET /comment/details

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

Parameters

ParameterTypeRequiredDefaultDescription
comment_idstringNo-Comment id, with or without the t1_ prefix (e.g. c60o0iw). Give this or url.
urlstringNo-A Reddit post or comment URL (https://www.reddit.com/r/IAmA/comments/z1c9z/..., redd.it/z1c9z), or the permalink path returned by this API. Alternative to the id.
with_markdownbooleanNofalseAdds body_markdown: the author’s original Markdown source, as written.
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/details?comment_id=t1_19rve4jkai9b4 (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
{
  "status": true,
  "request_id": "67945cbe-c54b-bbca-d2bd-fc987079",
  "data": {
    "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",
    "depth": 0,
    "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": [],
    "upvote_ratio": 0.9898,
    "billed_requests": 1,
    "replies_count": 21,
    "awards": [],
    "body_markdown": null,
    "post": {
      "post_id": "t3_1xj9fse",
      "title": "PEP 851 – Add list.discard()",
      "permalink": "/r/Python/comments/1xj9fse/pep_851_add_listdiscard/",
      "post_url": "https://www.reddit.com/r/Python/comments/1xj9fse/pep_851_add_listdiscard/",
      "subreddit": "Python",
      "subreddit_weekly_visitors": 89865
    }
  },
  "request_params": {
    "comment_id": "t1_19rve4jkai9b4"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectThe comment; null with error.code = not_found / deleted.
data.comment_idstringComment fullname, e.g. t1_c60o0iw.
data.permalinkstringComment path, e.g. /r/IAmA/comments/z1c9z/comment/c60o0iw/.
data.post_urlstringAbsolute link of the comment on Reddit (https://www.reddit.com + permalink), ready to open.
data.post_idstringPost fullname (t3_…).
data.subredditstringSubreddit name without r/; null when this endpoint does not carry it (comment trees: see the post).
data.subreddit_idstringSubreddit id (t5_…); null when this endpoint does not carry it. Left out on /user/activity.
data.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.depthintegerNesting level (0 = top-level; negative for ancestors on a context page). Left out on the flat comment lists except /comment/details.
data.authorstringUsername; [deleted] is reported as null with is_author_deleted true.
data.author_idstringAuthor account id (t2_…).
data.author_avatar_urlstringAuthor avatar URL. Left out on /user/activity.
data.author_badgestring / nullAchievement badge shown next to the name, e.g. Top 1% Commenter. Left out on /user/activity.
data.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.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.scoreintegerNet upvotes; null when Reddit hides the score.
data.is_score_hiddenbooleanReddit hides the score (new comment in a sub that delays scores).
data.created_atstringISO-8601 UTC creation time.
data.edited_atstring / nullISO-8601 UTC last edit; null when never edited or unknown. Only with with_details=true on /user/activity.
data.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.is_opbooleanWritten by the post author.
data.distinguishedstring / nullmoderator or admin when distinguished; else null.
data.is_stickiedbooleanPinned at the top of the thread.
data.is_lockedbooleanReplies locked. Only with with_details=true on /user/activity.
data.is_collapsedbooleanCollapsed by default in Reddit’s UI.
data.is_archivedbooleanThread archived.
data.is_deletedbooleanDeleted by its author (body gone).
data.is_author_deletedbooleanThe author’s account is deleted (body may remain).
data.is_removedbooleanRemoved by a moderator (body replaced by Reddit’s notice).
data.body_textstringComment as plain text.
data.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.
data.upvote_ratiofloatUpvote share 0–1, 4 decimals.
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.replies_countintegerExact number of replies below the comment, all levels.
data.awardsarrayAwards received, one row per award type.
data.body_markdownstring / nullMarkdown source (only with with_markdown=true).
data.postobjectThe post the comment belongs to.
data.post.post_idstringPost fullname.
data.post.titlestringPost title; null when Reddit shows only its removal placeholder.
data.post.permalinkstringPost path.
data.post.post_urlstringAbsolute link of the post’s Reddit thread (https://www.reddit.com + permalink), ready to open.
data.post.subredditstringSubreddit name.
data.post.subreddit_weekly_visitorsintegerWeekly visitors of the subreddit (Reddit’s periodic count, not live).
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/details"

params = {
    "comment_id": "t1_19rve4jkai9b4",
}

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"]

print(data["comment_id"])
print(data["permalink"])
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/details";

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

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();
console.log(data.comment_id, data.permalink);
1
2
3
4
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/comment/details" \
  --data-urlencode "comment_id=t1_19rve4jkai9b4" \
  -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