post_idstringआवश्यक
Post ID, format like "t3_XXXXXX"
https://api.sandbase.ai/v1/api/reddit/app/post-detailsReturns detailed metadata for a Reddit post by ID, including engagement metrics, author info, and subreddit data. Supports optional comment context.
[
{
"data": {
"postsInfoByIds": [
{
"__typename": "SubredditPost",
"attributionInfo": null,
"authorCommunityBadge": null,
"authorFlair": null,
"authorInfo": {
"__typename": "Redditor",
"accountType": "USER",
"iconSmall": {
"__typename": "MediaSource",
"dimensions": {
"height": 50,
"width": 50
},
"url": "https://styles.redditmedia.com/t5_9uhspc/styles/profileIcon_snoo-nftv2_bmZ0X2VpcDE1NToxMzdfZWI5NTlhNzE1ZGZmZmU2ZjgyZjQ2MDU1MzM5ODJjNDg1OWNiMTRmZV8xNTcxMjU1MA_rare_7f655c9b-871f-4906-97c6-431b2d32153b-headshot.png?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=1db50c27a77053b8cc9d3ddf09109ebc22224142"
},
"id": "t2_n5zmzf3v0",
"isBlocked": false,
"isCakeDayNow": false,
"name": "ambachk",
"newIcon": {
"__typename": "MediaSource",
"dimensions": {
"height": 256,
"width": 256
},
"url": "https://styles.redditmedia.com/t5_9uhspc/styles/profileIcon_snoo-nftv2_bmZ0X2VpcDE1NToxMzdfZWI5NTlhNzE1ZGZmZmU2ZjgyZjQ2MDU1MzM5ODJjNDg1OWNiMTRmZV8xNTcxMjU1MA_rare_7f655c9b-871f-4906-97c6-431b2d32153b-headshot.png?frame=1&auto=webp&crop=256%3A256%2Csmart&s=32fa26a4a88b62849af007e46c89e714a9e6c326"
},
"profile": {
"isNsfw": false
},
"snoovatarIcon": {
"__typename": "MediaSource",
"dimensions": {
"height": 600,
"width": 380
},
"url": "https://i.redd.it/snoovatar/avatars/nftv2_bmZ0X2VpcDE1NToxMzdfZWI5NTlhNzE1ZGZmZmU2ZjgyZjQ2MDU1MzM5ODJjNDg1OWNiMTRmZV8xNTcxMjU1MA_rare_7f655c9b-871f-4906-97c6-431b2d32153b.png"
}
},
"awardings": [
{
"__typename": "AwardingTotal",
"award": {
"__typename": "Award",
"id": "award_wholesome_seal",
"name": "正能量",
"static_icon_16": {
"__typename": "MediaSource",
"dimensions": {
"height": 16,
"width": 16
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_16.png"
},
"static_icon_24": {
"__typename": "MediaSource",
"dimensions": {
"height": 24,
"width": 24
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_24.png"
},
"static_icon_32": {
"__typename": "MediaSource",
"dimensions": {
"height": 32,
"width": 32
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_32.png"
},
"static_icon_48": {
"__typename": "MediaSource",
"dimensions": {
"height": 48,
"width": 48
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_48.png"
},
"static_icon_64": {
"__typename": "MediaSource",
"dimensions": {
"height": 64,
"width": 64
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_64.png"
},
"tags": [
"award:legacy",
"award:group:legacytop"
]
},
"total": 1
}
],
"awardingsInfo": null,
"commentCount": 11411,
"content": null,
"createdAt": "2025-10-30T01:58:59.142000+0000",
"crosspostRoot": null,
"crowdControlLevel": "OFF",
"devvit": null,
"distinguishedAs": null,
"domain": "v.redd.it",
"editedAt": null,
"flair": {
"__typename": "PostFlair",
"richtext": null,
"template": {
"backgroundColor": "#EA0027",
"id": "d74470ce-5c6c-11e9-9455-0e158690b334",
"isEditable": false
},
"text": "Cringe",
"textColor": "LIGHT",
"type": "text"
},
"gallery": null,
"id": "t3_1ojnh50",
"isArchived": false,
"isAuthorBlocked": false,
"isCommercialCommunication": false,
"isContestMode": false,
"isCrosspostable": false,
"isCrowdControlFilterEnabled": false,
"isFollowed": false,
"isGildable": false,
"isHidden": false,
"isLocked": true,
"isNsfw": false,
"isPollIncluded": false,
"isReactAllowed": false,
"isSaved": false,
"isScoreHidden": false,
"isSelfPost": false,
"isSpoiler": false,
"isStickied": false,
"isThumbnailEnabled": true,
"isTranslatable": false,
"isTranslated": false,
"languageCode": "en",
"media": null,
"moderationInfo": null,
"outboundLink": {
"expiresAt": "2026-08-20T14:40:04.649829+0000",
"url": "https://www.reddit.com/r/TikTokCringe/comments/1ojnh50/%E5%B7%B2%E8%A2%AB%E7%89%88%E4%B8%BB%E5%88%A0%E9%99%A4/"
},
"permalink": "/r/TikTokCringe/comments/1ojnh50/已被版主删除/",
"poll": null,
"postEventInfo": null,
"postHint": null,
"postStats": {
"shareAllTotal": 12625,
"viewCountTotal": null
},
"postStatsPrivate": {
"viewCountTotals": null
},
"postTitle": "[ 已被版主删除 ]",
"predictedRemovalSavedResponses": [],
"reactedFrom": null,
"removedByCategory": "MODERATOR",
"score": 33358,
"subreddit": {
"__typename": "Subreddit",
"communityStatus": null,
"id": "t5_mvcq5",
"isNsfw": false,
"isQuarantined": false,
"isSubscribed": false,
"isThumbnailsEnabled": true,
"isTitleSafe": true,
"isUserBanned": false,
"modPermissions": null,
"name": "TikTokCringe",
"prefixedName": "r/TikTokCringe",
"styles": {
"backgroundColor": "#000000",
"bannerBackgroundImage": "https://styles.redditmedia.com/t5_mvcq5/styles/bannerBackgroundImage_gjg9dsefkz591.jpg?frame=1&auto=webp&format=pjpg&s=294c333e12fcd57fcbba2adf46dfdc08f1ba7dfb",
"icon": "https://styles.redditmedia.com/t5_mvcq5/styles/communityIcon_twjztnhoy2691.jpg?width=64&frame=1&auto=webp&s=c0ffbc93bdbfd860e708b7ee55f36e4091c90231",
"legacyIcon": null,
"legacyPrimaryColor": "#7E53C1",
"primaryColor": "#B33BD8"
},
"subscribersCount": 5592476,
"tippingStatus": null,
"title": "The Best and Worst of TikTok",
"type": "PUBLIC",
"whitelistStatus": "SOME_ADS"
},
"suggestedCommentSort": null,
"thumbnail": null,
"translatedLanguage": null,
"upvoteRatio": 0.8373503764285327,
"url": "https://www.reddit.com/r/TikTokCringe/comments/1ojnh50/%E5%B7%B2%E8%A2%AB%E7%89%88%E4%B8%BB%E5%88%A0%E9%99%A4/",
"viewCount": null,
"voteState": "NONE"
}
]
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
Returns metadata for one Reddit post, including the author, flair, awards, lock status and comment count. It needs a post_id in the form t3_XXXXXX. The result comes back as a list under postsInfoByIds.
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/post-details" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"post_id": "t3_1ojnh50"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
post_id | string | Yes | Post ID, format like "t3_XXXXXX" |
comment_id | string | No | Comment ID (used when include_comment_id is True), format like "t1_XXXXXX" |
include_comment_id | boolean | No | Whether to include specific comment ID, default False |
need_format | boolean | No | Whether to clean and format the data |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"postsInfoByIds": [
{
"__typename": "SubredditPost",
"attributionInfo": null,
"authorCommunityBadge": null,
"authorFlair": null,
"authorInfo": {
"__typename": "Redditor",
"accountType": "USER",
"iconSmall": {
"__typename": "MediaSource",
"dimensions": {
"height": 50,
"width": 50
},
"url": "https://styles.redditmedia.com/t5_9uhspc/styles/profileIcon_snoo-nftv2_bmZ0X2Vpc…"
},
"id": "t2_n5zmzf3v0",
"isBlocked": false,
"isCakeDayNow": false,
"name": "ambachk",
"newIcon": {
"__typename": "MediaSource",
"dimensions": {
"height": 256,
"width": 256
},
"url": "https://styles.redditmedia.com/t5_9uhspc/styles/profileIcon_snoo-nftv2_bmZ0X2Vpc…"
}
},
"awardings": [
{
"__typename": "AwardingTotal",
"award": {
"__typename": "Award",
"id": "award_wholesome_seal",
"name": "Wholesome Seal",
"static_icon_16": {
"__typename": "MediaSource",
"dimensions": {
"height": 16,
"width": 16
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_16.pn…"
},
"static_icon_24": {
"__typename": "MediaSource",
"dimensions": {
"height": 24,
"width": 24
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_24.pn…"
},
"static_icon_32": {
"__typename": "MediaSource",
"dimensions": {
"height": 32,
"width": 32
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_32.pn…"
},
"static_icon_48": {
"__typename": "MediaSource",
"dimensions": {
"height": 48,
"width": 48
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_48.pn…"
},
"static_icon_64": {
"__typename": "MediaSource",
"dimensions": {
"height": 64,
"width": 64
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_64.pn…"
}
},
"total": 1
}
],
"awardingsInfo": null,
"commentCount": 11404,
"content": null,
"createdAt": "2025-10-30T01:58:59.142000+0000",
"crosspostRoot": null,
"crowdControlLevel": "OFF"
}
]
}
| Field | Meaning |
|---|---|
postsInfoByIds[] | List of posts found for the requested ID. A single post_id returns one item. |
postsInfoByIds[].id | Post ID in the t3_XXXXXX format. |
postsInfoByIds[].commentCount | Number of comments on the post. |
postsInfoByIds[].createdAt | Creation time of the post as an ISO 8601 timestamp with a UTC offset. |
postsInfoByIds[].authorInfo.name / postsInfoByIds[].authorInfo.id | Username of the author and their account ID in the t2_ format. |
postsInfoByIds[].authorInfo.accountType | Account type of the author, such as USER. |
postsInfoByIds[].flair.text | Text of the post flair, for example Cringe. |
postsInfoByIds[].awardings[].award.name / postsInfoByIds[].awardings[].total | Name of each award on the post and how many times it was given. |
postsInfoByIds[].domain | Domain the post links to. The value v.redd.it marks a Reddit-hosted video. |
postsInfoByIds[].isLocked / postsInfoByIds[].isNsfw / postsInfoByIds[].isStickied | Flags that show if the post is locked, marked NSFW, or stickied. |
post_id with the t3_ prefix, for example t3_1ojnh50.include_comment_id to true and pass a comment_id in the t1_XXXXXX format to add comment context.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/post-details" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"post_id": "t3_1ojnh50",
"comment_id": "",
"need_format": false,
"include_comment_id": false
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
post_idstringआवश्यकPost ID, format like "t3_XXXXXX"
comment_idstringComment ID (used when include_comment_id is True), format like "t1_XXXXXX"
डिफ़ॉल्ट: ""
include_comment_idbooleanWhether to include specific comment ID, default False
डिफ़ॉल्ट: false
need_formatbooleanWhether to clean and format the data
डिफ़ॉल्ट: false
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"postsInfoByIds": [
{
"__typename": "SubredditPost",
"attributionInfo": null,
"authorCommunityBadge": null,
"authorFlair": null,
"authorInfo": {
"__typename": "Redditor",
"accountType": "USER",
"iconSmall": {
"__typename": "MediaSource",
"dimensions": {
"height": 50,
"width": 50
},
"url": "https://styles.redditmedia.com/t5_9uhspc/styles/profileIcon_snoo-nftv2_bmZ0X2VpcDE1NToxMzdfZWI5NTlhNzE1ZGZmZmU2ZjgyZjQ2MDU1MzM5ODJjNDg1OWNiMTRmZV8xNTcxMjU1MA_rare_7f655c9b-871f-4906-97c6-431b2d32153b-headshot.png?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=1db50c27a77053b8cc9d3ddf09109ebc22224142"
},
"id": "t2_n5zmzf3v0",
"isBlocked": false,
"isCakeDayNow": false,
"name": "ambachk",
"newIcon": {
"__typename": "MediaSource",
"dimensions": {
"height": 256,
"width": 256
},
"url": "https://styles.redditmedia.com/t5_9uhspc/styles/profileIcon_snoo-nftv2_bmZ0X2VpcDE1NToxMzdfZWI5NTlhNzE1ZGZmZmU2ZjgyZjQ2MDU1MzM5ODJjNDg1OWNiMTRmZV8xNTcxMjU1MA_rare_7f655c9b-871f-4906-97c6-431b2d32153b-headshot.png?frame=1&auto=webp&crop=256%3A256%2Csmart&s=32fa26a4a88b62849af007e46c89e714a9e6c326"
},
"profile": {
"isNsfw": false
},
"snoovatarIcon": {
"__typename": "MediaSource",
"dimensions": {
"height": 600,
"width": 380
},
"url": "https://i.redd.it/snoovatar/avatars/nftv2_bmZ0X2VpcDE1NToxMzdfZWI5NTlhNzE1ZGZmZmU2ZjgyZjQ2MDU1MzM5ODJjNDg1OWNiMTRmZV8xNTcxMjU1MA_rare_7f655c9b-871f-4906-97c6-431b2d32153b.png"
}
},
"awardings": [
{
"__typename": "AwardingTotal",
"award": {
"__typename": "Award",
"id": "award_wholesome_seal",
"name": "正能量",
"static_icon_16": {
"__typename": "MediaSource",
"dimensions": {
"height": 16,
"width": 16
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_16.png"
},
"static_icon_24": {
"__typename": "MediaSource",
"dimensions": {
"height": 24,
"width": 24
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_24.png"
},
"static_icon_32": {
"__typename": "MediaSource",
"dimensions": {
"height": 32,
"width": 32
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_32.png"
},
"static_icon_48": {
"__typename": "MediaSource",
"dimensions": {
"height": 48,
"width": 48
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_48.png"
},
"static_icon_64": {
"__typename": "MediaSource",
"dimensions": {
"height": 64,
"width": 64
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_64.png"
},
"tags": [
"award:legacy",
"award:group:legacytop"
]
},
"total": 1
}
],
"awardingsInfo": null,
"commentCount": 11411,
"content": null,
"createdAt": "2025-10-30T01:58:59.142000+0000",
"crosspostRoot": null,
"crowdControlLevel": "OFF",
"devvit": null,
"distinguishedAs": null,
"domain": "v.redd.it",
"editedAt": null,
"flair": {
"__typename": "PostFlair",
"richtext": null,
"template": {
"backgroundColor": "#EA0027",
"id": "d74470ce-5c6c-11e9-9455-0e158690b334",
"isEditable": false
},
"text": "Cringe",
"textColor": "LIGHT",
"type": "text"
},
"gallery": null,
"id": "t3_1ojnh50",
"isArchived": false,
"isAuthorBlocked": false,
"isCommercialCommunication": false,
"isContestMode": false,
"isCrosspostable": false,
"isCrowdControlFilterEnabled": false,
"isFollowed": false,
"isGildable": false,
"isHidden": false,
"isLocked": true,
"isNsfw": false,
"isPollIncluded": false,
"isReactAllowed": false,
"isSaved": false,
"isScoreHidden": false,
"isSelfPost": false,
"isSpoiler": false,
"isStickied": false,
"isThumbnailEnabled": true,
"isTranslatable": false,
"isTranslated": false,
"languageCode": "en",
"media": null,
"moderationInfo": null,
"outboundLink": {
"expiresAt": "2026-08-20T14:40:04.649829+0000",
"url": "https://www.reddit.com/r/TikTokCringe/comments/1ojnh50/%E5%B7%B2%E8%A2%AB%E7%89%88%E4%B8%BB%E5%88%A0%E9%99%A4/"
},
"permalink": "/r/TikTokCringe/comments/1ojnh50/已被版主删除/",
"poll": null,
"postEventInfo": null,
"postHint": null,
"postStats": {
"shareAllTotal": 12625,
"viewCountTotal": null
},
"postStatsPrivate": {
"viewCountTotals": null
},
"postTitle": "[ 已被版主删除 ]",
"predictedRemovalSavedResponses": [],
"reactedFrom": null,
"removedByCategory": "MODERATOR",
"score": 33358,
"subreddit": {
"__typename": "Subreddit",
"communityStatus": null,
"id": "t5_mvcq5",
"isNsfw": false,
"isQuarantined": false,
"isSubscribed": false,
"isThumbnailsEnabled": true,
"isTitleSafe": true,
"isUserBanned": false,
"modPermissions": null,
"name": "TikTokCringe",
"prefixedName": "r/TikTokCringe",
"styles": {
"backgroundColor": "#000000",
"bannerBackgroundImage": "https://styles.redditmedia.com/t5_mvcq5/styles/bannerBackgroundImage_gjg9dsefkz591.jpg?frame=1&auto=webp&format=pjpg&s=294c333e12fcd57fcbba2adf46dfdc08f1ba7dfb",
"icon": "https://styles.redditmedia.com/t5_mvcq5/styles/communityIcon_twjztnhoy2691.jpg?width=64&frame=1&auto=webp&s=c0ffbc93bdbfd860e708b7ee55f36e4091c90231",
"legacyIcon": null,
"legacyPrimaryColor": "#7E53C1",
"primaryColor": "#B33BD8"
},
"subscribersCount": 5592476,
"tippingStatus": null,
"title": "The Best and Worst of TikTok",
"type": "PUBLIC",
"whitelistStatus": "SOME_ADS"
},
"suggestedCommentSort": null,
"thumbnail": null,
"translatedLanguage": null,
"upvoteRatio": 0.8373503764285327,
"url": "https://www.reddit.com/r/TikTokCringe/comments/1ojnh50/%E5%B7%B2%E8%A2%AB%E7%89%88%E4%B8%BB%E5%88%A0%E9%99%A4/",
"viewCount": null,
"voteState": "NONE"
}
]
}
}
]और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Reddit Post Detailsयह API Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/reddit/app/post-details पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: post_id (string)। वैकल्पिक: comment_id (string), include_comment_id (boolean) और need_format (boolean)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Reddit Post Details SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Reddit API access के लिए आवेदन करने की आवश्यकता नहीं है।