Reddit Post Comments API (V1)
Retrieve comments for a Reddit post with pagination-token support. Supply a post ID. Sample fields include comment counts and titles. Surface recurring topics and audience feedback. The GET request schema also lists postId, cursor.
- Selected price
- $0.015385 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Reddit Post Comments API (V1)
Prepare your request, then continue with your agent.
Selected price
$0.015385 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
codeintegerdataobjectpostInfoByIdobject__typenamestringcommentCountintegercommentForestobject__typenamestringpageInfoobjectcommentCountintegerhasNextPageboolean
treesobject[]childCountintegerdepthintegermorenull | objectcountintegercursorstringisTooDeepForCountboolean
nodeobject | null__typenamestringauthorCommunityBadgenullauthorFlairnullauthorInfoobject__typenamestringaccountTypestringiconSmallobject__typenamestringdimensionsobjectheightintegerwidthinteger
urlstring
idstringisBlockedbooleanisCakeDayNowbooleanisPremiumAvatarTreatmentbooleannamestringnewIconobject__typenamestringdimensionsobjectheightintegerwidthinteger
urlstring
profileobjectisNsfwboolean
snoovatarIconnull | object__typenamestringdimensionsobjectheightintegerwidthinteger
urlstring
commentStatsnullcontentobject__typenamestringmarkdownstringpreviewstringrichtextstringrichtextMediaunknown[]translationInfoobjectisTranslatedbooleantranslatedLanguagenull
typeHintstring
createdAtstringdistinguishedAsnulleditedAtnullidstringinitiallyCollapsedReasonnullisAdminTakedownbooleanisArchivedbooleanisCommercialCommunicationbooleanisGildablebooleanisInitiallyCollapsedbooleanisLockedbooleanisRemovedbooleanisSavedbooleanisScoreHiddenbooleanisStickiedbooleanisTranslatablebooleanlanguageCodestringmodContentDiscussionnullmoderationInfonullpermalinkstringremovedByCategorynullscoreintegervoteStatestring
parentIdnull
idstringsubredditobjectallowedMediaInCommentsstring[]idstringisQuarantinedbooleanmoderationobjectisShowCommentRemovalReasonPromptboolean
namestringprefixedNamestringtippingStatusnull
titlestring
messagenullrecordTimenull
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
code?: number;
data?: {
postInfoById?: {
__typename?: string;
commentCount?: number;
commentForest?: {
__typename?: string;
pageInfo?: {
commentCount?: number;
hasNextPage?: boolean;
};
trees?: Array<{
childCount?: number;
depth?: number;
more?: null | {
count?: number;
cursor?: string;
isTooDeepForCount?: boolean;
};
node?: {
__typename?: string;
authorCommunityBadge?: null;
authorFlair?: null;
authorInfo?: {
__typename?: string;
accountType?: string;
iconSmall?: {
__typename?: string;
dimensions?: {
height?: number;
width?: number;
};
url?: string;
};
id?: string;
isBlocked?: boolean;
isCakeDayNow?: boolean;
isPremiumAvatarTreatment?: boolean;
name?: string;
newIcon?: {
__typename?: string;
dimensions?: {
height?: number;
width?: number;
};
url?: string;
};
profile?: {
isNsfw?: boolean;
};
snoovatarIcon?: null | {
__typename?: string;
dimensions?: {
height?: number;
width?: number;
};
url?: string;
};
};
commentStats?: null;
content?: {
__typename?: string;
markdown?: string;
preview?: string;
richtext?: string;
richtextMedia?: Array<unknown>;
translationInfo?: {
isTranslated?: boolean;
translatedLanguage?: null;
};
typeHint?: string;
};
createdAt?: string;
distinguishedAs?: null;
editedAt?: null;
id?: string;
initiallyCollapsedReason?: null;
isAdminTakedown?: boolean;
isArchived?: boolean;
isCommercialCommunication?: boolean;
isGildable?: boolean;
isInitiallyCollapsed?: boolean;
isLocked?: boolean;
isRemoved?: boolean;
isSaved?: boolean;
isScoreHidden?: boolean;
isStickied?: boolean;
isTranslatable?: boolean;
languageCode?: string;
modContentDiscussion?: null;
moderationInfo?: null;
permalink?: string;
removedByCategory?: null;
score?: number;
voteState?: string;
} | null;
parentId?: null;
}>;
};
id?: string;
subreddit?: {
allowedMediaInComments?: Array<string>;
id?: string;
isQuarantined?: boolean;
moderation?: {
isShowCommentRemovalReasonPrompt?: boolean;
};
name?: string;
prefixedName?: string;
tippingStatus?: null;
};
title?: string;
};
};
message?: null;
recordTime?: null;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
justoneapiCurrent Reddit Post Comments API (V1) · GET · View API reference | $0.015385 / call | — | —successP50— |
- 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: 3. Price update time: not supplied.
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
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'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
postId | URL query parametersquery | string | Yes | The unique identifier of the Reddit post. |
cursor | URL query parametersquery | string | No | Pagination token for the next page of results. |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"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
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Reddit Post Comments API (V1)
Retrieve comments for a Reddit post with pagination-token support. Supply a post ID. Sample fields include comment counts and titles. Surface recurring topics and audience feedback. The GET request schema also lists postId, cursor.
## Available implementations
justoneapi · Reddit Post Comments API (V1): https://openany.si/markets/apis/capabilities/reddit-post-comments-api-v1?offering=eebdfe19-c2ad-4dc5-84a9-269ceb9ca69f · $0.015385 / call
## Selected API contract
Documentation: https://openany.si/apis/eebdfe19-c2ad-4dc5-84a9-269ceb9ca69f
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/justoneapi/api/reddit/get-post-comments/v1
Price: $0.015385 / call
Provider: justoneapi
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
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'
```
## API contract
```json
{
"resource_type": "api",
"name": "Reddit Post Comments API (V1)",
"endpoint": "https://api.openany.si/v1/agent-apis/justoneapi/api/reddit/get-post-comments/v1",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "The unique identifier of the Reddit post.",
"location": "query",
"name": "postId",
"nullable": false,
"required": true,
"type": "string"
},
{
"description": "Pagination token for the next page of results.",
"location": "query",
"name": "cursor",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "15385",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example · Historical response; independent request temp",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"postId": "<REPLACE_POSTID>"
}
},
"response_body": {
"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
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'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 · cURLcurl \ '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'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 }