GET /post/comments

Post Comments

Full comment tree of a post. Reddit Scraper API endpoint /post/comments: parameters, JSON response fields and code examples.

The post card plus its comment tree, nested by reply, with author, score, timestamps, body and flags per comment. Expands hidden replies up to max_comments per call; continue with next_page_token. Billed 1 request per 100 comments returned (minimum 1). The answer already carries the full post card (post): use /post/batch only for a metadata or status refresh of many posts, /comment/replies for one deep conversation.

HTTP Request

GET /post/comments

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

Parameters

ParameterTypeRequiredDefaultDescription
post_idstringNo-Post id, with or without the t3_ prefix (e.g. z1c9z or t3_z1c9z). 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.
page_tokenstringNo-Opaque page token from a previous response’s next_page_token. Omit for the first page.
max_commentsintegerNo500Most comments to return in this call (default 500, max 2000); may return fewer when time runs out: truncated / next_page_token tell you to continue (pass it as page_token).
sortstringNobestComment order: best (default), top, new, controversial, old, qa. Allowed: best, top, new, controversial, old, qa.
depthintegerNo-Deepest nesting level to expand (0 = top-level only). Default: no limit (within max_comments).
include_htmlbooleanNofalseAdds body_html (the rendered HTML body) to every post and comment. Default: left out; body_text carries the same text.
translate_tostringNononeReddit’s own machine translation of the comment bodies into this language (default none: original language). Availability varies by post and page: check is_translated on each row. See the allowed values in the API overview .

Response

Real response to GET /post/comments?max_comments=20&post_id=t3_1xj9fse (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
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
{
  "status": true,
  "request_id": "3ea411e2-7aeb-7912-1ef6-b89e39c3",
  "data": {
    "total_comments": 56,
    "returned_comments": 20,
    "truncated": true,
    "has_next_page": true,
    "next_page_token": "eyJ2IjoxLCJraW5kIjoiY29tbWVudF90cmVlIiwicCI6InQzXzF4ajlmc2UiLCJzIjoiY29uZmlkZW5jZSIsImQiOm51bGwsImsiOiJfOGVOWm1MeEctZFBnaWZfRmF0Ykl5aWgifQ",
    "billed_requests": 1,
    "post": {
      "post_id": "t3_1xj9fse",
      "title": "PEP 851 – Add list.discard()",
      "type": "text",
      "permalink": "/r/Python/comments/1xj9fse/pep_851_add_listdiscard/",
      "post_url": "https://www.reddit.com/r/Python/comments/1xj9fse/pep_851_add_listdiscard/",
      "url": "https://www.reddit.com/r/Python/comments/1xj9fse/pep_851_add_listdiscard/",
      "domain": "self.Python",
      "subreddit": "Python",
      "subreddit_id": "t5_2qh0y",
      "subreddit_type": "public",
      "subreddit_icon_url": "https://styles.redditmedia.com/t5_2qh0y/styles/communityIcon_lctik80p96tg1.png?width=64&frame=1&auto=webp&s=92baaacc951d52b5071629852df033d53cafa5ec",
      "is_subreddit_nsfw": false,
      "is_subreddit_quarantined": false,
      "author": "kirara0048",
      "is_author_deleted": false,
      "author_id": "t2_4uu8u9p7",
      "author_avatar_url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_3.png",
      "author_type": "user",
      "is_author_nsfw": false,
      "author_flair": null,
      "flair": {
        "text": "News",
        "rich_text": [
          {
            "type": "text",
            "text": "News",
            "url": null
          }
        ],
        "background_color": "#7193FF",
        "text_color": "light",
        "flair_id": "0ad780a0-1c5e-11ea-978c-0ee7bacb2bff"
      },
      "language": null,
      "is_translated": null,
      "translated_to": null,
      "score": 216,
      "upvote_ratio": 0.9737,
      "comments_count": 56,
      "shares_count": 3,
      "crossposts_count": null,
      "created_at": "2026-10-30T08:05:21.804000+00:00",
      "is_nsfw": false,
      "is_spoiler": false,
      "is_stickied": false,
      "is_locked": false,
      "is_archived": false,
      "is_crosspost": false,
      "crosspost_parent_id": null,
      "crosspost_parent_subreddit": null,
      "is_brand_affiliate": false,
      "distinguished": null,
      "removed_by": null,
      "removal_category": null,
      "position": null,
      "thumbnail_url": "https://external-preview.redd.it/pep-851-add-list-discard-v0-qsyApzksUdlxqY7z2ubJCNmhQilhXIOl25dSHcQQLB4.png?width=108&crop=smart&auto=webp&s=47770d6b68eb1f776c7d2788912186555f3d08a4",
      "thumbnail_width": 108,
      "thumbnail_height": 108,
      "body_text": "PEP 851 – Add list.discard()\n\nhttps://peps.python.org/pep-0851/\n\nDiscussions-To: Discourse thread\n\nAbstract\n\nAdd list.discard(x), which removes the first item equal to x if one is present and does nothing otherwise, returning whether an ite…",
      "body_media": [],
      "poll": null,
      "media": {
        "type": null,
        "preview_url": "https://external-preview.redd.it/pep-851-add-list-discard-v0-qsyApzksUdlxqY7z2ubJCNmhQilhXIOl25dSHcQQLB4.png?auto=webp&s=a805df47873c9a330535ca66222f010b3deba9ac",
        "preview_width": 200,
        "preview_height": 200,
        "preview_variants": [
          {
            "size": "thumbnail",
            "url": "https://external-preview.redd.it/pep-851-add-list-discard-v0-qsyApzksUdlxqY7z2ubJCNmhQilhXIOl25dSHcQQLB4.png?width=108&crop=smart&auto=webp&s=47770d6b68eb1f776c7d2788912186555f3d08a4",
            "width": 108,
            "height": 108
          },
          {
            "size": "full",
            "url": "https://external-preview.redd.it/pep-851-add-list-discard-v0-qsyApzksUdlxqY7z2ubJCNmhQilhXIOl25dSHcQQLB4.png?auto=webp&s=a805df47873c9a330535ca66222f010b3deba9ac",
            "width": 200,
            "height": 200
          }
        ],
        "alt_text": null,
        "hls_url": null,
        "video_url": null,
        "poster_url": null,
        "captions_url": null,
        "duration_seconds": null,
        "width": null,
        "height": null,
        "renditions": [],
        "embed_html": null,
        "embed_provider": null,
        "gallery": []
      }
    },
    "comments": [
      {
        "comment_id": "t1_19rve4jkai9b4",
        "permalink": "/r/Python/comments/1xj9fse/comment/19rve4jkai9b4/",
        "post_url": "https://www.reddit.com/r/Python/comments/1xj9fse/comment/19rve4jkai9b4/",
        "post_id": "t3_1xj9fse",
        "subreddit": "Python",
        "subreddit_id": "t5_2qh0y",
        "parent_id": "t3_1xj9fse",
        "depth": 0,
        "position": 1,
        "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,
        "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": [],
        "parent_positions": [],
        "more_replies_count": null,
        "replies": [
          {
            "comment_id": "t1_19rvhm63rkdr4",
            "permalink": "/r/Python/comments/1xj9fse/comment/19rvhm63rkdr4/",
            "post_url": "https://www.reddit.com/r/Python/comments/1xj9fse/comment/19rvhm63rkdr4/",
            "post_id": "t3_1xj9fse",
            "subreddit": "Python",
            "subreddit_id": "t5_2qh0y",
            "parent_id": "t1_19rve4jkai9b4",
            "depth": 1,
            "position": 1,
            "author": "JambaJuiceIsAverage",
            "author_id": "t2_mcp3o3",
            "author_avatar_url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_3.png",
            "author_badge": 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": [],
            "parent_positions": [
              1
            ],
            "more_replies_count": null,
            "replies": [
              {
                "comment_id": "t1_19rvsnkrf97l0",
                "permalink": "/r/Python/comments/1xj9fse/comment/19rvsnkrf97l0/",
                "post_url": "https://www.reddit.com/r/Python/comments/1xj9fse/comment/19rvsnkrf97l0/",
                "post_id": "t3_1xj9fse",
                "subreddit": "Python",
                "subreddit_id": "t5_2qh0y",
                "parent_id": "t1_19rvhm63rkdr4",
                "depth": 2,
                "position": 1,
                "author": "EgZvor",
                "author_id": "t2_ihy74",
                "author_avatar_url": "https://styles.redditmedia.com/t5_dpzru/styles/profileIcon_snoo9dd943af-7d86-4624-a7a1-989e1220629a-headshot.png?width=64&height=64&frame=1&auto=webp&crop=64%3A64%2Csmart&s=29ef0e03e462823bd5c9063b9d52f2e05b5803db",
                "author_badge": null,
                "score": 11,
                "is_score_hidden": false,
                "created_at": "2026-10-30T13:51:39.935000+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": "A.k.a. boolean parameters are a smell",
                "body_media": [],
                "parent_positions": [
                  1,
                  1
                ],
                "more_replies_count": null,
                "replies": []
              }
            ]
          },
          {
            "comment_id": "t1_19rvzi4gfi205",
            "permalink": "/r/Python/comments/1xj9fse/comment/19rvzi4gfi205/",
            "post_url": "https://www.reddit.com/r/Python/comments/1xj9fse/comment/19rvzi4gfi205/",
            "post_id": "t3_1xj9fse",
            "subreddit": "Python",
            "subreddit_id": "t5_2qh0y",
            "parent_id": "t1_19rve4jkai9b4",
            "depth": 1,
            "position": 2,
            "author": "Henry_the_Butler",
            "author_id": "t2_52tqd",
            "author_avatar_url": "https://styles.redditmedia.com/t5_207xpi/styles/profileIcon_mdwwozh46mo41.png?width=64&height=64&frame=1&auto=webp&crop=64%3A64%2Csmart&s=c945fb3d7bb98c2dec1de394a5232cbb33294258",
            "author_badge": null,
            "score": 2,
            "is_score_hidden": false,
            "created_at": "2026-10-30T16:25:12.645000+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": "a flag that's always passed as a literal is usually a sign it should be its own method\n\nI think I agree, but can you share an example here? I'm wondering how you'd refactor the missing_ok argument to be its own method.",
            "body_media": [],
            "parent_positions": [
              1
            ],
            "more_replies_count": null,
            "replies": [
              {
                "comment_id": "t1_19rw7qjo480ps",
                "permalink": "/r/Python/comments/1xj9fse/comment/19rw7qjo480ps/",
                "post_url": "https://www.reddit.com/r/Python/comments/1xj9fse/comment/19rw7qjo480ps/",
                "post_id": "t3_1xj9fse",
                "subreddit": "Python",
                "subreddit_id": "t5_2qh0y",
                "parent_id": "t1_19rvzi4gfi205",
                "depth": 2,
                "position": 1,
                "author": "dnswblzo",
                "author_id": "t2_3mf3uipm",
                "author_avatar_url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_2.png",
                "author_badge": null,
                "score": 3,
                "is_score_hidden": false,
                "created_at": "2026-10-30T19:29:49.053000+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": "The example is exactly what is being discussed here, creating a discard() method as opposed to adding the missing_ok flag to remove().",
                "body_media": [],
                "parent_positions": [
                  1,
                  2
                ],
                "more_replies_count": null,
                "replies": []
              }
            ]
          }
        ]
      },
      {
        "comment_id": "t1_19rvgbp4rran4",
        "permalink": "/r/Python/comments/1xj9fse/comment/19rvgbp4rran4/",
        "post_url": "https://www.reddit.com/r/Python/comments/1xj9fse/comment/19rvgbp4rran4/",
        "post_id": "t3_1xj9fse",
        "subreddit": "Python",
        "subreddit_id": "t5_2qh0y",
        "parent_id": "t3_1xj9fse",
        "depth": 0,
        "position": 2,
        "author": "chaz6",
        "author_id": "t2_36u9v",
        "author_avatar_url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_3.png",
        "author_badge": null,
        "score": 20,
        "is_score_hidden": false,
        "created_at": "2026-10-30T09:15:13.548000+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 idea of def discard(self, x, all=False) which has the option to remove all instances rather than one. Alternatively this could be implemented as def discardall(self, x).",
        "body_media": [],
        "parent_positions": [],
        "more_replies_count": null,
        "replies": [
          {
            "comment_id": "t1_19rvjlnfvssdh",
            "permalink": "/r/Python/comments/1xj9fse/comment/19rvjlnfvssdh/",
            "post_url": "https://www.reddit.com/r/Python/comments/1xj9fse/comment/19rvjlnfvssdh/",
            "post_id": "t3_1xj9fse",
            "subreddit": "Python",
            "subreddit_id": "t5_2qh0y",
            "parent_id": "t1_19rvgbp4rran4",
            "depth": 1,
            "position": 1,
            "author": "droans",
            "author_id": "t2_t7g6h",
            "author_avatar_url": "https://styles.redditmedia.com/t5_3lpd2/styles/profileIcon_snoo155f2f69-785d-496c-a35e-cd6463f33fbc-headshot.png?width=64&height=64&frame=1&auto=webp&crop=64%3A64%2Csmart&s=f4b27070d159dc1e17ee55b2fc87d88f1f137d6d",
            "author_badge": null,
            "score": 13,
            "is_score_hidden": false,
            "created_at": "2026-10-30T10:28:41.091000+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": "discardall probably would make more sense.\n\ndiscard would return a bool if the item was present but discardall could return an int representing the number of items discarded.",
            "body_media": [],
            "parent_positions": [
              2
            ],
            "more_replies_count": null,
            "replies": [
              {
                "comment_id": "t1_19rvlno8hy0td",
                "permalink": "/r/Python/comments/1xj9fse/comment/19rvlno8hy0td/",
                "post_url": "https://www.reddit.com/r/Python/comments/1xj9fse/comment/19rvlno8hy0td/",
                "post_id": "t3_1xj9fse",
                "subreddit": "Python",
                "subreddit_id": "t5_2qh0y",
                "parent_id": "t1_19rvjlnfvssdh",
                "depth": 2,
                "position": 1,
                "author": "yvrelna",
                "author_id": "t2_13kvhl",
                "author_avatar_url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_1.png",
                "author_badge": null,
                "score": 7,
                "is_score_hidden": false,
                "created_at": "2026-10-30T11:14:47.070000+00:00",
                "edited_at": "2026-10-31T23:15:58.381000+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": "Since we're bike shedding this, personally my preference would be list.discard(item[, start[, stop]], /, count=1, start=0, stop=) (and likewise with list.remove()).\n\nWhere if you pass a sentinel like -1 or None or maybe a special constant l…",
                "body_media": [],
                "parent_positions": [
                  2,
                  1
                ],
                "more_replies_count": null,
                "replies": []
              }
            ]
          }
        ]
      }
    ]
  },
  "request_params": {
    "max_comments": "20",
    "post_id": "t3_1xj9fse"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectTree payload; null with error.code = not_found.
data.total_commentsintegerComment count reported by Reddit (includes deleted and unreachable).
data.returned_commentsintegerComments in this response (all levels).
data.truncatedbooleanmax_comments or depth stopped the expansion.
data.has_next_pagebooleanMore comments can be fetched with next_page_token.
data.next_page_tokenstringToken to continue the expansion; null when the thread is exhausted.
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.postobjectThe post card.
data.post.post_idstringPost fullname, e.g. t3_z1c9z.
data.post.titlestringPost title; null when Reddit shows only its removal placeholder ([ Removed by moderator ]…).
data.post.typestringtext, link, image, gif, gallery, video, poll, crosspost, embed, game. A text post with inline images is text (its images in body_media). Only with with_details=true on /post/batch and /answers.
data.post.permalinkstringReddit path, e.g. /r/IAmA/comments/z1c9z/i_am_barack_obama/ (Reddit’s relative value; post_url is the same thread as a full link). Either form can be passed back as url.
data.post.post_urlstringAbsolute link of the post’s Reddit thread (https://www.reddit.com + permalink), ready to open.
data.post.urlstringWhere the post points (Reddit’s own url): the outside page for link posts, the image or video file for media posts (https://i.redd.it/…, https://v.redd.it/…), the original post for crossposts, the thread itself for text posts. The post’s own thread is post_url.
data.post.domainstringLink domain (arstechnica.com). For a text post Reddit fills the placeholder self.{subreddit}, which is not a link domain: /domain/posts refuses it; list text posts with /subreddit/posts?post_type=text.
data.post.subredditstringSubreddit name without r/.
data.post.subreddit_idstringSubreddit id (t5_…).
data.post.subreddit_typestringCommunity type: public, restricted, private, user (a post on a profile)…; null when this endpoint does not carry it. Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity and /user/insights.
data.post.subreddit_icon_urlstringCommunity icon URL; null when this endpoint does not carry it. Only with with_details=true on /post/batch, /domain/posts and /answers. Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity, /user/insights and /subreddit/multi-posts.
data.post.is_subreddit_nsfwbooleanThe community is 18+ (a post can be safe for work in an 18+ community); null when this endpoint does not carry it. Only with with_details=true on /post/batch, /domain/posts and /answers. Left out on /subreddit/multi-posts.
data.post.is_subreddit_quarantinedbooleanThe community is quarantined; null when this endpoint does not carry it. Only with with_details=true on /post/batch, /domain/posts and /answers. Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity, /user/insights and /subreddit/multi-posts.
data.post.authorstringAuthor username; [deleted] is reported as null with is_author_deleted true. Only with with_details=true on /post/batch and /answers.
data.post.is_author_deletedbooleanThe author’s account is deleted (the post may remain).
data.post.author_idstringAuthor account id (t2_…). Only with with_details=true on /post/batch and /answers.
data.post.author_avatar_urlstringAuthor avatar URL. Only with with_details=true on the routes that have it; left out on /media/search and /subreddit/multi-posts.
data.post.author_typestringuser or app (an app account that posts games or bot content); null when this endpoint does not carry it. Only with with_details=true on the routes that have it. Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity, /user/insights and /subreddit/multi-posts.
data.post.is_author_nsfwbooleanThe author’s profile is marked 18+; null when this endpoint does not carry it. Only with with_details=true on the routes that have it. Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity, /user/insights and /subreddit/multi-posts.
data.post.author_flairobject / nullAuthor’s flair in this subreddit; null when this endpoint does not carry it. Only with with_details=true on the routes that have it. Left out on /subreddit/multi-posts and the listing-card routes (/subreddit/posts, /feed/best, /feed/popular, /content/stories, /content/viral-media, /user/activity, /user/insights).
data.post.flairobjectPost flair. Only with with_details=true on /post/batch and /answers (always on /post/search). On the listing-card routes (/subreddit/posts, the feeds, /content/*, /user/activity and /user/insights posts) it holds text and background_color only.
data.post.flair.textstringFlair text (emoji shortcodes kept, e.g. :phx-2: Suns).
data.post.flair.rich_textarray of objectsRich-text flair as parts in display order (text, and emoji with their image URL); null for a plain-text flair or when this endpoint does not carry it.
data.post.flair.rich_text[].typestringtext or emoji.
data.post.flair.rich_text[].textstringThe text, or the emoji’s short code (e.g. :nba-1:).
data.post.flair.rich_text[].urlstring / nullEmoji image URL (emoji parts only).
data.post.flair.background_colorstringHex background colour (#0079D3) or null when the flair has no colour.
data.post.flair.text_colorstringlight or dark text on the flair pill.
data.post.flair.flair_idstringFlair template id, the same as flair_id on /subreddit/flairs. A reference id, not an input of this API; null when this endpoint does not carry it.
data.post.languagestring / nullPost language code (listings only). Left out on the routes without a translate_to parameter.
data.post.is_translatedboolean / nullReddit machine-translated the title and body (asked with translate_to); null when this endpoint does not report it. Left out on the routes without a translate_to parameter.
data.post.translated_tostring / nullLanguage code of the translation when is_translated; else null. language stays the original language. Left out on the routes without a translate_to parameter.
data.post.scoreintegerNet upvotes at fetch time.
data.post.upvote_ratiofloatUpvote share 0–1, 4 decimals (e.g. 0.8218). Only with with_details=true on the routes that have it. Left out on /subreddit/multi-posts. Left out on /media/search.
data.post.comments_countintegerComment count reported by Reddit.
data.post.shares_countintegerTimes the post was shared, as Reddit counts it; null when this endpoint does not carry it. Only with with_details=true on the routes that have it. Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity, /user/insights and /subreddit/multi-posts.
data.post.crossposts_countinteger / nullNumber of crossposts; null when Reddit sends no count (it sends none, not 0, for most posts never crossposted) or this endpoint does not carry it. Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity and /user/insights. On the /post/crossposts source_post: Reddit’s total of crossposts of the post.
data.post.created_atstringISO-8601 UTC creation time, microsecond precision. Left out on /media/search and on /answers without with_details.
data.post.is_nsfwbooleanMarked NSFW.
data.post.is_spoilerbooleanMarked spoiler. Only with with_details=true on /post/batch and /answers.
data.post.is_stickiedbooleanPinned in the feed (feeds and listings only). Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /media/search.
data.post.is_lockedbooleanComments locked. Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /media/search.
data.post.is_archivedbooleanArchived (no new votes or comments). Only with with_details=true on the routes that have it (always on /post/search). Left out on /media/search.
data.post.is_crosspostbooleanThe post is a crosspost. Only with with_details=true on the routes that have it. Left out on /media/search.
data.post.crosspost_parent_idstring / nullId of the original post (t3_…) this crosspost shares; null unless is_crosspost and the endpoint carries it. Pass it to /post/details. Only with with_details=true on /post/batch and /answers (always on /post/search).
data.post.crosspost_parent_subredditstring / nullSubreddit of the original post, without r/; null unless is_crosspost. Only with with_details=true on /post/batch and /answers (always on /post/search).
data.post.is_brand_affiliatebooleanReddit’s paid-partnership disclosure is set on the post; null when this endpoint does not carry it. Only with with_details=true on the routes that have it. Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity, /user/insights and /subreddit/multi-posts.
data.post.distinguishedstring / nullmoderator or admin when the post is distinguished; else null. Only with with_details=true on the routes that have it.
data.post.removed_bystring / nullWho removed the post: moderator, author, automod, spam, reddit or other; null when live or when this endpoint does not carry it. Only with with_details=true on the routes that have it.
data.post.removal_categorystring / nullReddit’s removal reason as sent, e.g. moderator or automod_filtered; null when live. Only with with_details=true on the routes that have it.
data.post.positioninteger / nullRank in the feed or the search results, 1-based and counted across pages (feeds keep Reddit’s gaps where ads were).
data.post.thumbnail_urlstringThumbnail URL.
data.post.thumbnail_widthintegerThumbnail pixel width; null when this endpoint does not carry it. Only with with_details=true on the routes that have it.
data.post.thumbnail_heightintegerThumbnail pixel height; null when this endpoint does not carry it. Only with with_details=true on the routes that have it.
data.post.body_textstringSelf text as plain text. Only with with_details=true on the routes that have it. Left out on /post/crossposts, /post/by-url and /subreddit/multi-posts. Left out on /media/search.
data.post.body_mediaarrayImages and videos embedded in the text body, in order; empty when none or when this endpoint does not carry them. Only with with_details=true on the routes that have it.
data.post.pollobject / nullPoll options and totals (poll posts only). Only with with_details=true on the routes that have it.
data.post.mediaobjectImages, video renditions, gallery, embed. Only with with_details=true on the routes that have it (always on /post/search).
data.post.media.typestring / nullMedia kind: image, video, gif, gallery, embed or null.
data.post.media.preview_urlstringLargest still preview URL.
data.post.media.preview_widthintegerPreview pixel width.
data.post.media.preview_heightintegerPreview pixel height.
data.post.media.preview_variantsarray of objectsEvery size Reddit renders of the preview image, smallest first; empty when this endpoint does not carry them.
data.post.media.preview_variants[].sizestringthumbnail (108 px wide), compact, medium (320), large (640), extra_large (1080) or full (the original size).
data.post.media.preview_variants[].urlstringImage URL at that size.
data.post.media.preview_variants[].widthintegerPixel width.
data.post.media.preview_variants[].heightintegerPixel height.
data.post.media.alt_textstring / nullImage description the author set for screen readers; null when none.
data.post.media.hls_urlstring / nullHLS playlist (.m3u8) for hosted video.
data.post.media.video_urlstring / nullPlayer URL of a third-party embed (YouTube, Streamable…), or the downloadable MP4 of a Reddit-hosted video (signed, expires within about a day). Null when the source of the route does not carry it (a hosted video on a listing card: use renditions).
data.post.media.poster_urlstring / nullVideo poster image.
data.post.media.captions_urlstring / nullWebVTT captions URL when available.
data.post.media.duration_secondsinteger / nullVideo duration in seconds.
data.post.media.widthinteger / nullVideo pixel width (a hosted video’s full size, or the embed player’s size).
data.post.media.heightinteger / nullVideo pixel height (a hosted video’s full size, or the embed player’s size).
data.post.media.renditionsarrayMP4 renditions with bitrate and size (hosted video only).
data.post.media.embed_htmlstring / nulloEmbed iframe HTML for third-party embeds (YouTube, Streamable…).
data.post.media.embed_providerstring / nullEmbed provider name, e.g. YouTube or Streamable; null on Reddit-hosted media.
data.post.media.galleryarrayGallery images in page order.
data.commentsarray of objectsNested comment tree in sibling order.
data.comments[].comment_idstringComment fullname, e.g. t1_c60o0iw.
data.comments[].permalinkstringComment path, e.g. /r/IAmA/comments/z1c9z/comment/c60o0iw/.
data.comments[].post_urlstringAbsolute link of the comment on Reddit (https://www.reddit.com + permalink), ready to open.
data.comments[].post_idstringPost fullname (t3_…).
data.comments[].subredditstringSubreddit name without r/; null when this endpoint does not carry it (comment trees: see the post).
data.comments[].subreddit_idstringSubreddit id (t5_…); null when this endpoint does not carry it. Left out on /user/activity.
data.comments[].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.comments[].depthintegerNesting level (0 = top-level; negative for ancestors on a context page). Left out on the flat comment lists except /comment/details.
data.comments[].positionintegerSibling order among its parent’s children, 1-based. Left out on the flat comment lists (/subreddit/comments, /comment/batch, /comment/details, /user/activity, /monitor/mentions).
data.comments[].authorstringUsername; [deleted] is reported as null with is_author_deleted true.
data.comments[].author_idstringAuthor account id (t2_…).
data.comments[].author_avatar_urlstringAuthor avatar URL. Left out on /user/activity.
data.comments[].author_badgestring / nullAchievement badge shown next to the name, e.g. Top 1% Commenter. Left out on /user/activity.
data.comments[].scoreintegerNet upvotes; null when Reddit hides the score.
data.comments[].is_score_hiddenbooleanReddit hides the score (new comment in a sub that delays scores).
data.comments[].created_atstringISO-8601 UTC creation time.
data.comments[].edited_atstring / nullISO-8601 UTC last edit; null when never edited or unknown. Only with with_details=true on /user/activity.
data.comments[].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.comments[].is_opbooleanWritten by the post author.
data.comments[].distinguishedstring / nullmoderator or admin when distinguished; else null.
data.comments[].is_stickiedbooleanPinned at the top of the thread.
data.comments[].is_lockedbooleanReplies locked. Only with with_details=true on /user/activity.
data.comments[].is_collapsedbooleanCollapsed by default in Reddit’s UI.
data.comments[].is_archivedbooleanThread archived.
data.comments[].is_deletedbooleanDeleted by its author (body gone).
data.comments[].is_author_deletedbooleanThe author’s account is deleted (body may remain).
data.comments[].is_removedbooleanRemoved by a moderator (body replaced by Reddit’s notice).
data.comments[].body_textstringComment as plain text.
data.comments[].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.comments[].parent_positionsarrayposition of every ancestor, root first (1-based). Left out on the flat comment lists (/subreddit/comments, /comment/batch, /comment/details, /user/activity, /monitor/mentions).
data.comments[].more_replies_countinteger / nullReplies Reddit did not render under this node (expand with /comment/replies). Left out on the flat comment lists (/subreddit/comments, /comment/batch, /comment/details, /user/activity, /monitor/mentions).
data.comments[].repliesarray of objectsNested replies in sibling order. Left out on the flat comment lists (/subreddit/comments, /comment/batch, /comment/details, /user/activity, /monitor/mentions).
data.comments[].replies[].comment_idstringComment fullname, e.g. t1_c60o0iw.
data.comments[].replies[].permalinkstringComment path, e.g. /r/IAmA/comments/z1c9z/comment/c60o0iw/.
data.comments[].replies[].post_urlstringAbsolute link of the comment on Reddit (https://www.reddit.com + permalink), ready to open.
data.comments[].replies[].post_idstringPost fullname (t3_…).
data.comments[].replies[].subredditstringSubreddit name without r/; null when this endpoint does not carry it (comment trees: see the post).
data.comments[].replies[].subreddit_idstringSubreddit id (t5_…); null when this endpoint does not carry it. Left out on /user/activity.
data.comments[].replies[].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.comments[].replies[].depthintegerNesting level (0 = top-level; negative for ancestors on a context page). Left out on the flat comment lists except /comment/details.
data.comments[].replies[].positionintegerSibling order among its parent’s children, 1-based. Left out on the flat comment lists (/subreddit/comments, /comment/batch, /comment/details, /user/activity, /monitor/mentions).
data.comments[].replies[].authorstringUsername; [deleted] is reported as null with is_author_deleted true.
data.comments[].replies[].author_idstringAuthor account id (t2_…).
data.comments[].replies[].author_avatar_urlstringAuthor avatar URL. Left out on /user/activity.
data.comments[].replies[].author_badgestring / nullAchievement badge shown next to the name, e.g. Top 1% Commenter. Left out on /user/activity.
data.comments[].replies[].scoreintegerNet upvotes; null when Reddit hides the score.
data.comments[].replies[].is_score_hiddenbooleanReddit hides the score (new comment in a sub that delays scores).
data.comments[].replies[].created_atstringISO-8601 UTC creation time.
data.comments[].replies[].edited_atstringISO-8601 UTC last edit; null when never edited or unknown. Only with with_details=true on /user/activity.
data.comments[].replies[].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.comments[].replies[].is_opbooleanWritten by the post author.
data.comments[].replies[].distinguishedstring / nullmoderator or admin when distinguished; else null.
data.comments[].replies[].is_stickiedbooleanPinned at the top of the thread.
data.comments[].replies[].is_lockedbooleanReplies locked. Only with with_details=true on /user/activity.
data.comments[].replies[].is_collapsedbooleanCollapsed by default in Reddit’s UI.
data.comments[].replies[].is_archivedbooleanThread archived.
data.comments[].replies[].is_deletedbooleanDeleted by its author (body gone).
data.comments[].replies[].is_author_deletedbooleanThe author’s account is deleted (body may remain).
data.comments[].replies[].is_removedbooleanRemoved by a moderator (body replaced by Reddit’s notice).
data.comments[].replies[].body_textstringComment as plain text.
data.comments[].replies[].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.comments[].replies[].parent_positionsarray of integerposition of every ancestor, root first (1-based). Left out on the flat comment lists (/subreddit/comments, /comment/batch, /comment/details, /user/activity, /monitor/mentions).
data.comments[].replies[].more_replies_countinteger / nullReplies Reddit did not render under this node (expand with /comment/replies). Left out on the flat comment lists (/subreddit/comments, /comment/batch, /comment/details, /user/activity, /monitor/mentions).
data.comments[].replies[].repliesarray of objectsNested replies in sibling order. Left out on the flat comment lists (/subreddit/comments, /comment/batch, /comment/details, /user/activity, /monitor/mentions).
data.comments[].replies[].replies[].comment_idstringComment fullname, e.g. t1_c60o0iw.
data.comments[].replies[].replies[].permalinkstringComment path, e.g. /r/IAmA/comments/z1c9z/comment/c60o0iw/.
data.comments[].replies[].replies[].post_urlstringAbsolute link of the comment on Reddit (https://www.reddit.com + permalink), ready to open.
data.comments[].replies[].replies[].post_idstringPost fullname (t3_…).
data.comments[].replies[].replies[].subredditstringSubreddit name without r/; null when this endpoint does not carry it (comment trees: see the post).
data.comments[].replies[].replies[].subreddit_idstringSubreddit id (t5_…); null when this endpoint does not carry it. Left out on /user/activity.
data.comments[].replies[].replies[].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.comments[].replies[].replies[].depthintegerNesting level (0 = top-level; negative for ancestors on a context page). Left out on the flat comment lists except /comment/details.
data.comments[].replies[].replies[].positionintegerSibling order among its parent’s children, 1-based. Left out on the flat comment lists (/subreddit/comments, /comment/batch, /comment/details, /user/activity, /monitor/mentions).
data.comments[].replies[].replies[].authorstringUsername; [deleted] is reported as null with is_author_deleted true.
data.comments[].replies[].replies[].author_idstringAuthor account id (t2_…).
data.comments[].replies[].replies[].author_avatar_urlstringAuthor avatar URL. Left out on /user/activity.
data.comments[].replies[].replies[].author_badgestring / nullAchievement badge shown next to the name, e.g. Top 1% Commenter. Left out on /user/activity.
data.comments[].replies[].replies[].scoreintegerNet upvotes; null when Reddit hides the score.
data.comments[].replies[].replies[].is_score_hiddenbooleanReddit hides the score (new comment in a sub that delays scores).
data.comments[].replies[].replies[].created_atstringISO-8601 UTC creation time.
data.comments[].replies[].replies[].edited_atstring / nullISO-8601 UTC last edit; null when never edited or unknown. Only with with_details=true on /user/activity.
data.comments[].replies[].replies[].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.comments[].replies[].replies[].is_opbooleanWritten by the post author.
data.comments[].replies[].replies[].distinguishedstring / nullmoderator or admin when distinguished; else null.
data.comments[].replies[].replies[].is_stickiedbooleanPinned at the top of the thread.
data.comments[].replies[].replies[].is_lockedbooleanReplies locked. Only with with_details=true on /user/activity.
data.comments[].replies[].replies[].is_collapsedbooleanCollapsed by default in Reddit’s UI.
data.comments[].replies[].replies[].is_archivedbooleanThread archived.
data.comments[].replies[].replies[].is_deletedbooleanDeleted by its author (body gone).
data.comments[].replies[].replies[].is_author_deletedbooleanThe author’s account is deleted (body may remain).
data.comments[].replies[].replies[].is_removedbooleanRemoved by a moderator (body replaced by Reddit’s notice).
data.comments[].replies[].replies[].body_textstringComment as plain text.
data.comments[].replies[].replies[].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.comments[].replies[].replies[].parent_positionsarray of integerposition of every ancestor, root first (1-based). Left out on the flat comment lists (/subreddit/comments, /comment/batch, /comment/details, /user/activity, /monitor/mentions).
data.comments[].replies[].replies[].more_replies_countinteger / nullReplies Reddit did not render under this node (expand with /comment/replies). Left out on the flat comment lists (/subreddit/comments, /comment/batch, /comment/details, /user/activity, /monitor/mentions).
data.comments[].replies[].replies[].repliesarrayNested replies in sibling order. Left out on the flat comment lists (/subreddit/comments, /comment/batch, /comment/details, /user/activity, /monitor/mentions).
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 (post removed or deleted). 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
20
import requests

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

params = {
    "max_comments": "20",
    "post_id": "t3_1xj9fse",
}

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["comments"]:
    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
16
const url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/post/comments";

const params = new URLSearchParams({
  max_comments: "20",
  post_id: "t3_1xj9fse",
});

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.comments.forEach((item) => console.log(item.subreddit, item.body_text));
1
2
3
4
5
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/post/comments" \
  --data-urlencode "max_comments=20" \
  --data-urlencode "post_id=t3_1xj9fse" \
  -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