GET /subreddit/comments

Subreddit Comments

Newest comments across a subreddit. Reddit Scraper API endpoint /subreddit/comments: parameters, JSON response fields and code examples.

The newest comments anywhere in a community, newest first: id, author, exact score, created and edit time, flair, controversial flag, body and the post each belongs to. 1–100 per page (default 25); continue with next_page_token. Billed 1 request.

HTTP Request

GET /subreddit/comments

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

Parameters

ParameterTypeRequiredDefaultDescription
subredditstringYes-Subreddit name (case-insensitive, with or without r/) or its t5_ id.
page_tokenstringNo-Opaque page token from a previous response’s next_page_token. Omit for the first page.
per_pageintegerNo25Comments per page, 1–100 (default 25), newest first.
include_nsfwbooleanNotrueDefault true: adult content included; pass false to exclude it (comments on NSFW posts or in 18+ communities are dropped from the page, so a page can hold fewer rows).
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 /subreddit/comments?subreddit=python (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
80
81
82
83
84
85
86
87
{
  "status": true,
  "request_id": "7a66883f-226b-85e8-1ad9-fa7cdf7c",
  "data": {
    "items": [
      {
        "comment_id": "t1_19t4wpnn7hkbk",
        "permalink": "/r/Python/comments/1y4iysc/ive_started_treating_the_output_of_my_little/19t4wpnn7hkbk/",
        "post_url": "https://www.reddit.com/r/Python/comments/1y4iysc/ive_started_treating_the_output_of_my_little/19t4wpnn7hkbk/",
        "post_id": "t3_1y4iysc",
        "subreddit": "Python",
        "subreddit_id": "t5_2qh0y",
        "author": "RandomGgames",
        "author_id": "t2_11eb25",
        "author_flair": null,
        "score": null,
        "is_score_hidden": true,
        "awards_count": 0,
        "created_at": "2026-11-24T20:43:18.000000+00:00",
        "edited_at": null,
        "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": "Over the years I’ve made myself a base script I build all new scripts from. It’s not crazy complicated, but sets up logging and as configurable, so I can customize it per script as I want. Might be something to look into?",
        "body_media": [],
        "post_title": "I've started treating the output of my little Python scripts as a user interface",
        "post_permalink": "/r/Python/comments/1y4iysc/ive_started_treating_the_output_of_my_little/",
        "post_link_url": "https://www.reddit.com/r/Python/comments/1y4iysc/ive_started_treating_the_output_of_my_little/",
        "post_author": "Pharaoh_Bellhop8",
        "post_comments_count": 21,
        "is_controversial": false
      },
      {
        "comment_id": "t1_19t4wi7rdhts4",
        "permalink": "/r/Python/comments/1y4o5gv/hocon_for_python_oh_here_we_go_again/19t4wi7rdhts4/",
        "post_url": "https://www.reddit.com/r/Python/comments/1y4o5gv/hocon_for_python_oh_here_we_go_again/19t4wi7rdhts4/",
        "post_id": "t3_1y4o5gv",
        "subreddit": "Python",
        "subreddit_id": "t5_2qh0y",
        "author": "AutoModerator",
        "author_id": "t2_6l4z3",
        "author_flair": null,
        "score": null,
        "is_score_hidden": true,
        "awards_count": 0,
        "created_at": "2026-11-24T20:38:40.000000+00:00",
        "edited_at": null,
        "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": "Hi there, from the r/Python mods.\n\nYour post has been removed because we are no longer accepting standalone posts that primarily link to or showcase a repository.\n\nWe have seen a significant increase in low-effort AI-generated project submi…",
        "body_media": [],
        "post_title": "HOCON for Python (oh ..., here we go again)",
        "post_permalink": "/r/Python/comments/1y4o5gv/hocon_for_python_oh_here_we_go_again/",
        "post_link_url": "https://www.reddit.com/r/Python/comments/1y4o5gv/hocon_for_python_oh_here_we_go_again/",
        "post_author": null,
        "post_comments_count": 1,
        "is_controversial": false
      }
    ],
    "has_next_page": true,
    "next_page_token": "eyJ2IjoxLCJraW5kIjoicjJfYWZ0ZXIiLCJhZnRlciI6InQxXzE5dDRudTFub3V0ZDAiLCJzdGFydCI6MjUsImZwIjoicHl0aG9uIn0",
    "resolved_filters": {
      "subreddit": {
        "input": "python",
        "resolved": "Python",
        "source": "param"
      }
    },
    "billed_requests": 1
  },
  "request_params": {
    "subreddit": "python"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectComment feed page; null with error.code not_found / banned / quarantined / private.
data.itemsarray of objectsNewest comments of the community, newest first.
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[].authorstringUsername; [deleted] is reported as null with is_author_deleted true.
data.items[].author_idstringAuthor account id (t2_…).
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[].scoreinteger / nullNet 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[].awards_countintegerAward count; left out when Reddit shows none.
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[].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.
data.items[].post_titlestringTitle of the post the comment was made on.
data.items[].post_permalinkstringReddit path of that post.
data.items[].post_link_urlstringWhere that post points (its url: the outside page for link posts). Left out on /monitor/mentions. This comment’s own link is post_url.
data.items[].post_authorstringAuthor of that post. Left out on /monitor/mentions.
data.items[].post_comments_countintegerComment count of that post as shown by Reddit.
data.items[].is_controversialbooleanReddit’s controversial flag (/subreddit/comments).
data.has_next_pagebooleanMore comments available.
data.next_page_tokenstringToken for the next page; null at the end.
data.resolved_filtersobjectCommunity as applied.
data.resolved_filters.subredditobjectCommunity as applied (Reddit’s spelling in resolved).
data.resolved_filters.subreddit.inputstringWhat the caller sent.
data.resolved_filters.subreddit.resolvedstringWhat was applied on Reddit (null when not applied).
data.resolved_filters.subreddit.sourcestringparam (applied as given), default, not_found (the value does not exist on Reddit), private / banned / quarantined (a community in the scope that cannot be read: skipped), or not_available (translate_to only: Reddit had no translated listing, the rows are served in their original language).
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).
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, banned, private, quarantined. data is null. Billed 1 request
503Reddit temporarily unreachable"error": "Service temporarily unavailable". Not billed, retry later
200 with status: falseBad page tokenerror.code is invalid_page_token: pass next_page_token from the previous answer unchanged

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/subreddit/comments"

params = {
    "subreddit": "python",
}

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/subreddit/comments";

const params = new URLSearchParams({
  subreddit: "python",
});

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/subreddit/comments" \
  --data-urlencode "subreddit=python" \
  -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