Skip to content

Post Comments

GET /v1/reddit/post/comments

Retrieves comments and post details from a Reddit post by URL. Returns the post with title, author, score, ups, upvote_ratio, num_comments, and created_utc, plus a comments array where each comment includes author, body, body_html, score, created_utc, parent_id, permalink, and nested replies. Supports cursor-based pagination for loading more comments and a trim parameter for lighter responses.

Authentication

All requests require the x-api-key header. Get your key at scrapecreators.com.

Query Parameters

NameTypeRequiredDescriptionExample
urlstringyesReddit post URLhttps://www.reddit.com/r/AskReddit/comments/ablzuq/people_who_havent_pooped_in_2019_yet_why_are_you/
cursorstringnoCursor to get more comments, or replies.ed1lvsa,ed3fnpq,ed25l2w
trimbooleannoSet to true for a trimmed down version of the responsefalse

Example Request

curl

bash
curl 'https://api.scrapecreators.com/v1/reddit/post/comments?url=https://www.reddit.com/r/AskReddit/comments/ablzuq/people_who_havent_pooped_in_2019_yet_why_are_you/' \
  -H 'x-api-key: $SCRAPECREATORS_API_KEY'

Node / TypeScript

js
const params = new URLSearchParams({ url: 'https://www.reddit.com/r/AskReddit/comments/ablzuq/people_who_havent_pooped_in_2019_yet_why_are_you/' });
const res = await fetch(`https://api.scrapecreators.com/v1/reddit/post/comments?${params}`, {
  headers: { 'x-api-key': process.env.SCRAPECREATORS_API_KEY }
});
const data = await res.json();
console.log(data);

Python

python
import os, requests
r = requests.get(
    'https://api.scrapecreators.com/v1/reddit/post/comments',
    headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
    params={'url': 'https://www.reddit.com/r/AskReddit/comments/ablzuq/people_who_havent_pooped_in_2019_yet_why_are_you/'},
)
r.raise_for_status()
print(r.json())

CLI

bash
scrapecreators reddit post-comments --help

Example Response

json
{
  "comments": [
    {
      "id": "mymupxb",
      "author": "Background-Emu-2890",
      "author_fullname": "t2_efdlposp6",
      "body": "Black cat i have one and i love her so much !",
      "name": "t1_mymupxb",
      "created_utc": 1750342221,
      "created_at_iso": "2025-06-19T14:10:21.000Z",
      "parent_id": "t3_1lfbo7u",
      "url": "https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/mymupxb/",
      "replies": {
        "items": [
          {
            "url": "https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/mymxwde/",
            "created_utc": 1750343166,
            "created_at_iso": "2025-06-19T14:26:06.000Z",
            "subreddit_id": "t5_2qh1i",
            "approved_at_utc": null,
            "author_is_blocked": false,
            "comment_type": null,
            "awarders": [],
            "mod_reason_by": null,
            "banned_by": null,
            "author_flair_type": "text",
            "total_awards_received": 0,
            "subreddit": "AskReddit",
            "author_flair_template_id": null,
            "likes": null,
            "replies": {
              "items": [],
              "more": {
                "has_more": false,
                "next_cursor": null
              }
            },
            "user_reports": [],
            "saved": false,
            "id": "mymxwde",
            "banned_at_utc": null,
            "mod_reason_title": null,
            "gilded": 0,
            "archived": false,
            "collapsed_reason_code": null,
            "no_follow": false,
            "author": "doublestitch",
            "can_mod_post": false,
            "send_replies": true,
            "parent_id": "t1_mymupxb",
            "score": 19,
            "author_fullname": "t2_10py0g",
            "removal_reason": null,
            "approved_by": null,
            "mod_note": null,
            "all_awardings": [],
            "body": "House panthers for the win",
            "edited": false,
            "top_awarded_type": null,
            "author_flair_css_class": null,
            "name": "t1_mymxwde",
            "is_submitter": false,
            "downs": 0,
            "author_flair_richtext": [],
            "author_patreon_flair": false,
            "body_html": "<div class=\"md\"><p>House panthers for the win</p>\n</div>",
            "gildings": {},
            "collapsed_reason": null,
            "distinguished": null,
            "associated_award": null,
            "stickied": false,
            "author_premium": false,
            "can_gild": false,
            "link_id": "t3_1lfbo7u",
            "unrepliable_reason": null,
            "author_flair_text_color": null,
            "score_hidden": false,
            "permalink": "/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/mymxwde/",
            "subreddit_type": "public",

... (truncated)

Credits

Most ScrapeCreators endpoints consume 1 credit per successful response. Some heavier endpoints (transcripts, AI-driven enrichment, ad detail lookups) may cost more. Check GET /v1/credit-balance for your remaining balance.

Errors

StatusMeaningAction
200Success.Use the JSON payload.
400Invalid or missing parameter.Verify required parameters and value format.
401Missing or invalid x-api-key.Pass a valid API key in the header.
402Out of credits.Top up at scrapecreators.com or wait for plan reset.
404Resource not found or private.Confirm the handle, URL, or id and that the resource is public.
429Rate limited.Backoff and retry with exponential delay.
500Server error or upstream platform failure.Retry with backoff; report persistent errors to support.