OpenAny
Get API keyAPI Key
APIDataSocial Media

reddit logo
Reddit Post ID Comments API

Get Reddit Post ID Comments data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by JustOneAPI, pass parameters such as postId, and retrieve structured data including post fullname, post-level comment count, more-page indicator, comment fullname, and comment Markdown content to build a thread reader, and review discussion content.

Selected price
$0.015385 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
7Selected implementation · last 30 days
Success rate · 30d
100.00%Selected implementation · last 30 days
USE THIS API

Reddit Post ID Comments API

Prepare your request, then continue with your agent.

Selected price

$0.015385 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Reddit Post ID Comments API

Reddit Post ID Comments API

Provide postId in the query string and optionally cursor. Comment nodes are nested under data.postInfoById.commentForest.trees; post-level and forest-level counts have separate locations.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required query: postId. Optional cursor.
Selected implementation justoneapi · Reddit Post Comments API (V1)
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Build a thread reader: Render comment nodes with source context.
  • Review discussion content: Keep author and comment identifiers with research notes.

Returned Data

Field Meaning
data.postInfoById.id Post fullname
data.postInfoById.commentCount Post-level comment count
data.postInfoById.commentForest.pageInfo.hasNextPage More-page indicator
data.postInfoById.commentForest.trees[].node.id Comment fullname
data.postInfoById.commentForest.trees[].node.content.markdown Comment Markdown content
data.postInfoById.commentForest.trees[].node.authorInfo.name Comment author name
data.postInfoById.commentForest.trees[].node.score Comment score

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/justoneapi/api/reddit/get-post-comments/v1 \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode postId=t3_1q4aqti

Request and Response Examples

The response is a historical documentation reference; the request is an independent calling template. Returned records and available content can differ.

Published Reddit Post ID Comments API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
The unique identifier of the Reddit post.
Pagination token for the next page of results.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
justoneapiCurrent
Reddit Post Comments API (V1) · GET · View API reference
$0.015385 / call7
100.00%successP501.82s
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · justoneapiUSD / call
Unit price
$0.015385

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

calls

Total $1.5385

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/justoneapi/api/reddit/get-post-comments/v1
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
postIdURL query parametersquerystringYes

The unique identifier of the Reddit post.

cursorURL query parametersquerystringNo

Pagination token for the next page of results.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • codeinteger
  • dataobject
    • postInfoByIdobject
      • __typenamestring
      • commentCountinteger
      • commentForestobject
        • __typenamestring
        • pageInfoobject
          • commentCountinteger
          • hasNextPageboolean
        • treesobject[]
          • childCountinteger
          • depthinteger
          • morenull | object
            • countinteger
            • cursorstring
            • isTooDeepForCountboolean
          • nodeobject | null
            • __typenamestring
            • authorCommunityBadgenull
            • authorFlairnull
            • authorInfoobject
              • __typenamestring
              • accountTypestring
              • iconSmallobject
                • __typenamestring
                • dimensionsobject
                  • heightinteger
                  • widthinteger
                • urlstring
              • idstring
              • isBlockedboolean
              • isCakeDayNowboolean
              • isPremiumAvatarTreatmentboolean
              • namestring
              • newIconobject
                • __typenamestring
                • dimensionsobject
                  • heightinteger
                  • widthinteger
                • urlstring
              • profileobject
                • isNsfwboolean
              • snoovatarIconnull | object
                • __typenamestring
                • dimensionsobject
                  • heightinteger
                  • widthinteger
                • urlstring
            • commentStatsnull
            • contentobject
              • __typenamestring
              • markdownstring
              • previewstring
              • richtextstring
              • richtextMediaunknown[]
              • translationInfoobject
                • isTranslatedboolean
                • translatedLanguagenull
              • typeHintstring
            • createdAtstring
            • distinguishedAsnull
            • editedAtnull
            • idstring
            • initiallyCollapsedReasonnull
            • isAdminTakedownboolean
            • isArchivedboolean
            • isCommercialCommunicationboolean
            • isGildableboolean
            • isInitiallyCollapsedboolean
            • isLockedboolean
            • isRemovedboolean
            • isSavedboolean
            • isScoreHiddenboolean
            • isStickiedboolean
            • isTranslatableboolean
            • languageCodestring
            • modContentDiscussionnull
            • moderationInfonull
            • permalinkstring
            • removedByCategorynull
            • scoreinteger
            • voteStatestring
          • parentIdnull
      • idstring
      • subredditobject
        • allowedMediaInCommentsstring[]
        • idstring
        • isQuarantinedboolean
        • moderationobject
          • isShowCommentRemovalReasonPromptboolean
        • namestring
        • prefixedNamestring
        • tippingStatusnull
      • titlestring
  • messagenull
  • recordTimenull

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Historical response; independent request temp

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 2

    Review these request fields before running. Keep the published provider and request method unchanged.

    postId
    The unique identifier of the Reddit post.
    cursor
    Pagination token for the next page of results.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/justoneapi/api/reddit/get-post-comments/v1?postId=%3CREPLACE_POSTID%3E' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "code": 0,
      "data": {
        "postInfoById": {
          "__typename": "SubredditPost",
          "commentCount": 714,
          "commentForest": {
            "__typename": "CommentForest",
            "pageInfo": {
              "commentCount": 646,
              "hasNextPage": true
            },
            "trees": [
              {
                "childCount": 0,
                "depth": 0,
                "more": null,
                "node": {
                  "__typename": "Comment",
                  "authorCommunityBadge": null,
                  "authorFlair": null,
                  "authorInfo": {
                    "__typename": "Redditor",
                    "accountType": "USER",
                    "iconSmall": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 256,
                        "width": 256
                      },
                      "url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_4.png"
                    },
                    "id": "t2_1oz1y7tyh0",
                    "isBlocked": false,
                    "isCakeDayNow": false,
                    "isPremiumAvatarTreatment": false,
                    "name": "Fair_Performance4834",
                    "newIcon": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 256,
                        "width": 256
                      },
                      "url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_4.png"
                    },
                    "profile": {
                      "isNsfw": false
                    },
                    "snoovatarIcon": null
                  },
                  "commentStats": null,
                  "content": {
                    "__typename": "Content",
                    "markdown": "Feeling like he did not think that entire situation through.",
                    "preview": "Feeling like he did not think that entire situation through.",
                    "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"Feeling like he did not think that entire situation through.\"}],\"e\":\"par\"}]}",
                    "richtextMedia": [],
                    "translationInfo": {
                      "isTranslated": false,
                      "translatedLanguage": null
                    },
                    "typeHint": "TEXT"
                  },
                  "createdAt": "2026-01-10T15:21:49.595000+0000",
                  "distinguishedAs": null,
                  "editedAt": null,
                  "id": "t1_nysqpur",
                  "initiallyCollapsedReason": null,
                  "isAdminTakedown": false,
                  "isArchived": false,
                  "isCommercialCommunication": false,
                  "isGildable": false,
                  "isInitiallyCollapsed": false,
                  "isLocked": false,
                  "isRemoved": false,
                  "isSaved": false,
                  "isScoreHidden": false,
                  "isStickied": false,
                  "isTranslatable": false,
                  "languageCode": "en",
                  "modContentDiscussion": null,
                  "moderationInfo": null,
                  "permalink": "/r/Whatcouldgowrong/comments/1q4aqti/removed_by_moderator/nysqpur/",
                  "removedByCategory": null,
                  "score": 1,
                  "voteState": "NONE"
                },
                "parentId": null
              },
              {
                "childCount": 0,
                "depth": 0,
                "more": null,
                "node": {
                  "__typename": "Comment",
                  "authorCommunityBadge": null,
                  "authorFlair": null,
                  "authorInfo": {
                    "__typename": "Redditor",
                    "accountType": "USER",
                    "iconSmall": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 256,
                        "width": 256
                      },
                      "url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_5.png"
                    },
                    "id": "t2_1few65j0j1",
                    "isBlocked": false,
                    "isCakeDayNow": false,
                    "isPremiumAvatarTreatment": false,
                    "name": "Well-It-Depends420",
                    "newIcon": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 256,
                        "width": 256
                      },
                      "url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_5.png"
                    },
                    "profile": {
                      "isNsfw": false
                    },
                    "snoovatarIcon": null
                  },
                  "commentStats": null,
                  "content": {
                    "__typename": "Content",
                    "markdown": "I would say he really fell for that trap.",
                    "preview": "I would say he really fell for that trap.",
                    "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"I would say he really fell for that trap.\"}],\"e\":\"par\"}]}",
                    "richtextMedia": [],
                    "translationInfo": {
                      "isTranslated": false,
                      "translatedLanguage": null
                    },
                    "typeHint": "TEXT"
                  },
                  "createdAt": "2026-01-09T10:55:10.240000+0000",
                  "distinguishedAs": null,
                  "editedAt": null,
                  "id": "t1_nykq3z9",
                  "initiallyCollapsedReason": null,
                  "isAdminTakedown": false,
                  "isArchived": false,
                  "isCommercialCommunication": false,
                  "isGildable": false,
                  "isInitiallyCollapsed": false,
                  "isLocked": false,
                  "isRemoved": false,
                  "isSaved": false,
                  "isScoreHidden": false,
                  "isStickied": false,
                  "isTranslatable": false,
                  "languageCode": "en",
                  "modContentDiscussion": null,
                  "moderationInfo": null,
                  "permalink": "/r/Whatcouldgowrong/comments/1q4aqti/removed_by_moderator/nykq3z9/",
                  "removedByCategory": null,
                  "score": 1,
                  "voteState": "NONE"
                },
                "parentId": null
              },
              {
                "childCount": 0,
                "depth": 0,
                "more": null,
                "node": {
                  "__typename": "Comment",
                  "authorCommunityBadge": null,
                  "authorFlair": null,
                  "authorInfo": {
                    "__typename": "Redditor",
                    "accountType": "USER",
                    "iconSmall": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 50,
                        "width": 50
                      },
                      "url": "https://styles.redditmedia.com/t5_xlk5v/styles/profileIcon_oa62tw51neg71.jpg?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=3b0d2c591c4a42aafe9d1a97de87c47368a65fee"
                    },
                    "id": "t2_3cgzl6vj",
                    "isBlocked": false,
                    "isCakeDayNow": false,
                    "isPremiumAvatarTreatment": false,
                    "name": "johnfogogin",
                    "newIcon": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 256,
                        "width": 256
                      },
                      "url": "https://styles.redditmedia.com/t5_xlk5v/styles/profileIcon_oa62tw51neg71.jpg?frame=1&auto=webp&crop=256%3A256%2Csmart&s=7d59ef78cf6dd5981474182a5bf54a7e57f9f7ee"
                    },
                    "profile": {
                      "isNsfw": false
                    },
                    "snoovatarIcon": null
                  },
                  "commentStats": null,
                  "content": {
                    "__typename": "Content",
                    "markdown": "Did he get the shot?",
                    "preview": "Did he get the shot?",
                    "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"Did he get the shot?\"}],\"e\":\"par\"}]}",
                    "richtextMedia": [],
                    "translationInfo": {
                      "isTranslated": false,
                      "translatedLanguage": null
                    },
                    "typeHint": "TEXT"
                  },
                  "createdAt": "2026-01-09T02:26:16.030000+0000",
                  "distinguishedAs": null,
                  "editedAt": null,
                  "id": "t1_nyit4ip",
                  "initiallyCollapsedReason": null,
                  "isAdminTakedown": false,
                  "isArchived": false,
                  "isCommercialCommunication": false,
                  "isGildable": false,
                  "isInitiallyCollapsed": false,
                  "isLocked": false,
                  "isRemoved": false,
                  "isSaved": false,
                  "isScoreHidden": false,
                  "isStickied": false,
                  "isTranslatable": false,
                  "languageCode": "en",
                  "modContentDiscussion": null,
                  "moderationInfo": null,
                  "permalink": "/r/Whatcouldgowrong/comments/1q4aqti/removed_by_moderator/nyit4ip/",
                  "removedByCategory": null,
                  "score": 1,
                  "voteState": "NONE"
                },
                "parentId": null
              },
              {
                "childCount": 0,
                "depth": 0,
                "more": null,
                "node": {
                  "__typename": "Comment",
                  "authorCommunityBadge": null,
                  "authorFlair": null,
                  "authorInfo": {
                    "__typename": "Redditor",
                    "accountType": "USER",
                    "iconSmall": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 50,
                        "width": 50
                      },
                      "url": "https://styles.redditmedia.com/t5_c53sg/styles/profileIcon_4pjdlauerb381.png?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=2d0889f7c315c165f3d1db3bc4d049cf7671f714"
                    },
                    "id": "t2_m7qcn",
                    "isBlocked": false,
                    "isCakeDayNow": false,
                    "isPremiumAvatarTreatment": false,
                    "name": "Jail-bot",
                    "newIcon": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 256,
                        "width": 256
                      },
                      "url": "https://styles.redditmedia.com/t5_c53sg/styles/profileIcon_4pjdlauerb381.png?frame=1&auto=webp&crop=256%3A256%2Csmart&s=e12fd417b5f9c52f4455ef0b3b3fcf4e5e2c6b75"
                    },
                    "profile": {
                      "isNsfw": false
                    },
                    "snoovatarIcon": null
                  },
                  "commentStats": null,
                  "content": {
                    "__typename": "Content",
                    "markdown": "Regardless of the moronic behaviour that is an awesome location",
                    "preview": "Regardless of the moronic behaviour that is an awesome location",
                    "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"Regardless of the moronic behaviour that is an awesome location\"}],\"e\":\"par\"}]}",
                    "richtextMedia": [],
                    "translationInfo": {
                      "isTranslated": false,
                      "translatedLanguage": null
                    },
                    "typeHint": "RTJSON"
                  },
                  "createdAt": "2026-01-09T00:00:39.823000+0000",
                  "distinguishedAs": null,
                  "editedAt": null,
                  "id": "t1_nyi1en1",
                  "initiallyCollapsedReason": null,
                  "isAdminTakedown": false,
                  "isArchived": false,
                  "isCommercialCommunication": false,
                  "isGildable": false,
                  "isInitiallyCollapsed": false,
                  "isLocked": false,
                  "isRemoved": false,
                  "isSaved": false,
                  "isScoreHidden": false,
                  "isStickied": false,
                  "isTranslatable": false,
                  "languageCode": "en",
                  "modContentDiscussion": null,
                  "moderationInfo": null,
                  "permalink": "/r/Whatcouldgowrong/comments/1q4aqti/removed_by_moderator/nyi1en1/",
                  "removedByCategory": null,
                  "score": 1,
                  "voteState": "NONE"
                },
                "parentId": null
              },
              {
                "childCount": 0,
                "depth": 0,
                "more": null,
                "node": {
                  "__typename": "Comment",
                  "authorCommunityBadge": null,
                  "authorFlair": null,
                  "authorInfo": {
                    "__typename": "Redditor",
                    "accountType": "USER",
                    "iconSmall": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 256,
                        "width": 256
                      },
                      "url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_2.png"
                    },
                    "id": "t2_3w27oea2",
                    "isBlocked": false,
                    "isCakeDayNow": false,
                    "isPremiumAvatarTreatment": false,
                    "name": "Periwinkleditor",
                    "newIcon": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 256,
                        "width": 256
                      },
                      "url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_2.png"
                    },
                    "profile": {
                      "isNsfw": false
                    },
                    "snoovatarIcon": null
                  },
                  "commentStats": null,
                  "content": {
                    "__typename": "Content",
                    "markdown": "Poseidon 1. Idiot 0.",
                    "preview": "Poseidon 1. Idiot 0.",
                    "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"Poseidon 1. Idiot 0.\"}],\"e\":\"par\"}]}",
                    "richtextMedia": [],
                    "translationInfo": {
                      "isTranslated": false,
                      "translatedLanguage": null
                    },
                    "typeHint": "RTJSON"
                  },
                  "createdAt": "2026-01-07T22:53:18.432000+0000",
                  "distinguishedAs": null,
                  "editedAt": null,
                  "id": "t1_nyai684",
                  "initiallyCollapsedReason": null,
                  "isAdminTakedown": false,
                  "isArchived": false,
                  "isCommercialCommunication": false,
                  "isGildable": false,
                  "isInitiallyCollapsed": false,
                  "isLocked": false,
                  "isRemoved": false,
                  "isSaved": false,
                  "isScoreHidden": false,
                  "isStickied": false,
                  "isTranslatable": false,
                  "languageCode": "und",
                  "modContentDiscussion": null,
                  "moderationInfo": null,
                  "permalink": "/r/Whatcouldgowrong/comments/1q4aqti/removed_by_moderator/nyai684/",
                  "removedByCategory": null,
                  "score": 1,
                  "voteState": "NONE"
                },
                "parentId": null
              },
              {
                "childCount": 0,
                "depth": 0,
                "more": null,
                "node": {
                  "__typename": "Comment",
                  "authorCommunityBadge": null,
                  "authorFlair": null,
                  "authorInfo": {
                    "__typename": "Redditor",
                    "accountType": "USER",
                    "iconSmall": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 50,
                        "width": 50
                      },
                      "url": "https://styles.redditmedia.com/t5_5g2s0/styles/profileIcon_wztttml9gtsh1.jpeg?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=7052375911aaf4ccdb5b05b41e5c2c35c13adc02"
                    },
                    "id": "t2_hnmwtit",
                    "isBlocked": false,
                    "isCakeDayNow": false,
                    "isPremiumAvatarTreatment": false,
                    "name": "M4sharman",
                    "newIcon": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 256,
                        "width": 256
                      },
                      "url": "https://styles.redditmedia.com/t5_5g2s0/styles/profileIcon_wztttml9gtsh1.jpeg?frame=1&auto=webp&crop=256%3A256%2Csmart&s=22ce40e22dff4cb2b92103320707c50df83dead9"
                    },
                    "profile": {
                      "isNsfw": false
                    },
                    "snoovatarIcon": null
                  },
                  "commentStats": null,
                  "content": {
                    "__typename": "Content",
                    "markdown": "Yeah, the North Atlantic is not forgiving in the slightest.",
                    "preview": "Yeah, the North Atlantic is not forgiving in the slightest.",
                    "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"Yeah, the North Atlantic is not forgiving in the slightest.\"}],\"e\":\"par\"}]}",
                    "richtextMedia": [],
                    "translationInfo": {
                      "isTranslated": false,
                      "translatedLanguage": null
                    },
                    "typeHint": "TEXT"
                  },
                  "createdAt": "2026-01-07T19:19:23.382000+0000",
                  "distinguishedAs": null,
                  "editedAt": null,
                  "id": "t1_ny95e7n",
                  "initiallyCollapsedReason": null,
                  "isAdminTakedown": false,
                  "isArchived": false,
                  "isCommercialCommunication": false,
                  "isGildable": false,
                  "isInitiallyCollapsed": false,
                  "isLocked": false,
                  "isRemoved": false,
                  "isSaved": false,
                  "isScoreHidden": false,
                  "isStickied": false,
                  "isTranslatable": false,
                  "languageCode": "en",
                  "modContentDiscussion": null,
                  "moderationInfo": null,
                  "permalink": "/r/Whatcouldgowrong/comments/1q4aqti/removed_by_moderator/ny95e7n/",
                  "removedByCategory": null,
                  "score": 1,
                  "voteState": "NONE"
                },
                "parentId": null
              },
              {
                "childCount": 0,
                "depth": 0,
                "more": null,
                "node": {
                  "__typename": "Comment",
                  "authorCommunityBadge": null,
                  "authorFlair": null,
                  "authorInfo": {
                    "__typename": "Redditor",
                    "accountType": "USER",
                    "iconSmall": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 50,
                        "width": 50
                      },
                      "url": "https://styles.redditmedia.com/t5_85qf2/styles/profileIcon_snood3fa1487-275e-4cc8-aa83-b9e2510e94c9-headshot.png?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=954633e4f3fdcbb35bb9ad47b1bb43447f533b2a"
                    },
                    "id": "t2_b75r5ka",
                    "isBlocked": false,
                    "isCakeDayNow": false,
                    "isPremiumAvatarTreatment": false,
                    "name": "Mattshark8614",
                    "newIcon": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 256,
                        "width": 256
                      },
                      "url": "https://styles.redditmedia.com/t5_85qf2/styles/profileIcon_snood3fa1487-275e-4cc8-aa83-b9e2510e94c9-headshot.png?frame=1&auto=webp&crop=256%3A256%2Csmart&s=da56548393621bc171903db04e926e1ae77c3163"
                    },
                    "profile": {
                      "isNsfw": true
                    },
                    "snoovatarIcon": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 600,
                        "width": 380
                      },
                      "url": "https://i.redd.it/snoovatar/avatars/d3fa1487-275e-4cc8-aa83-b9e2510e94c9.png"
                    }
                  },
                  "commentStats": null,
                  "content": {
                    "__typename": "Content",
                    "markdown": "My toxic trait is that I think I could probably out run it (probably not tho)",
                    "preview": "My toxic trait is that I think I could probably out run it (probably not tho)",
                    "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"My toxic trait is that I think I could probably out run it (probably not tho)\"}],\"e\":\"par\"}]}",
                    "richtextMedia": [],
                    "translationInfo": {
                      "isTranslated": false,
                      "translatedLanguage": null
                    },
                    "typeHint": "TEXT"
                  },
                  "createdAt": "2026-01-07T11:35:50.141000+0000",
                  "distinguishedAs": null,
                  "editedAt": null,
                  "id": "t1_ny6lnlz",
                  "initiallyCollapsedReason": null,
                  "isAdminTakedown": false,
                  "isArchived": false,
                  "isCommercialCommunication": false,
                  "isGildable": false,
                  "isInitiallyCollapsed": false,
                  "isLocked": false,
                  "isRemoved": false,
                  "isSaved": false,
                  "isScoreHidden": false,
                  "isStickied": false,
                  "isTranslatable": false,
                  "languageCode": "en",
                  "modContentDiscussion": null,
                  "moderationInfo": null,
                  "permalink": "/r/Whatcouldgowrong/comments/1q4aqti/removed_by_moderator/ny6lnlz/",
                  "removedByCategory": null,
                  "score": 1,
                  "voteState": "NONE"
                },
                "parentId": null
              },
              {
                "childCount": 0,
                "depth": 0,
                "more": null,
                "node": {
                  "__typename": "Comment",
                  "authorCommunityBadge": null,
                  "authorFlair": null,
                  "authorInfo": {
                    "__typename": "Redditor",
                    "accountType": "USER",
                    "iconSmall": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 50,
                        "width": 50
                      },
                      "url": "https://styles.redditmedia.com/t5_4i5r0k/styles/profileIcon_4ynjx3wd5xnh1.png?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=369d39e1ec72ffd04cc3b7cc4c087e711ba837b3"
                    },
                    "id": "t2_cep0womh",
                    "isBlocked": false,
                    "isCakeDayNow": false,
                    "isPremiumAvatarTreatment": false,
                    "name": "ant69onio",
                    "newIcon": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 256,
                        "width": 256
                      },
                      "url": "https://styles.redditmedia.com/t5_4i5r0k/styles/profileIcon_4ynjx3wd5xnh1.png?frame=1&auto=webp&crop=256%3A256%2Csmart&s=9642085c7028a0954904031a2ac2754604080e15"
                    },
                    "profile": {
                      "isNsfw": false
                    },
                    "snoovatarIcon": null
                  },
                  "commentStats": null,
                  "content": {
                    "__typename": "Content",
                    "markdown": "Ppl die every year in my coastal town trying to swim in heavy weather and seas, they never learn, just put rescue services at risk",
                    "preview": "Ppl die every year in my coastal town trying to swim in heavy weather and seas, they never learn, just put rescue services at risk",
                    "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"Ppl die every year in my coastal town trying to swim in heavy weather and seas, they never learn, just put rescue services at risk\"}],\"e\":\"par\"}]}",
                    "richtextMedia": [],
                    "translationInfo": {
                      "isTranslated": false,
                      "translatedLanguage": null
                    },
                    "typeHint": "TEXT"
                  },
                  "createdAt": "2026-01-07T07:25:20.568000+0000",
                  "distinguishedAs": null,
                  "editedAt": null,
                  "id": "t1_ny5ts6z",
                  "initiallyCollapsedReason": null,
                  "isAdminTakedown": false,
                  "isArchived": false,
                  "isCommercialCommunication": false,
                  "isGildable": false,
                  "isInitiallyCollapsed": false,
                  "isLocked": false,
                  "isRemoved": false,
                  "isSaved": false,
                  "isScoreHidden": false,
                  "isStickied": false,
                  "isTranslatable": false,
                  "languageCode": "en",
                  "modContentDiscussion": null,
                  "moderationInfo": null,
                  "permalink": "/r/Whatcouldgowrong/comments/1q4aqti/removed_by_moderator/ny5ts6z/",
                  "removedByCategory": null,
                  "score": 1,
                  "voteState": "NONE"
                },
                "parentId": null
              },
              {
                "childCount": 638,
                "depth": 0,
                "more": {
                  "count": 638,
                  "cursor": "commenttree:27cc6465,::0:ex:(OuV!r:&Rre:\"[C*&?sC#o,u0f-p\"ZRy%!-51fqy",
                  "isTooDeepForCount": false
                },
                "node": null,
                "parentId": null
              }
            ]
          },
          "id": "t3_1q4aqti",
          "subreddit": {
            "allowedMediaInComments": [
              "GIPHY",
              "STATIC",
              "ANIMATED",
              "EXPRESSION",
              "VIDEO"
            ],
            "id": "t5_2x2oy",
            "isQuarantined": false,
            "moderation": {
              "isShowCommentRemovalReasonPrompt": true
            },
            "name": "Whatcouldgowrong",
            "prefixedName": "r/Whatcouldgowrong",
            "tippingStatus": null
          },
          "title": "[ Removed by moderator ]"
        }
      },
      "message": null,
      "recordTime": null
    }

Common questions

Should I send a post URL?

This implementation requires postId. A URL-based comments implementation is a separate option.

Are comments a flat array?

They are represented in commentForest.trees with nested node records.

Is hasNextPage itself a cursor?

No. It is a boolean signal; use continuation data from the relevant response rather than inventing a token.

Do commentCount values equal the returned row count?

Not necessarily. Post-level and forest-level counts can describe different scopes; count actual returned records separately.

Does this guarantee every nested reply?

No completeness guarantee is declared. Preserve nesting and handle continuation where available.

Can Markdown be inserted as trusted HTML?

No. Apply your application's Markdown rendering and sanitization policy.

Use Reddit Post ID Comments API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.