Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Reddit Batch Post Details

API 문서
https://api.sandbase.ai/v1/api/reddit/app/post-details-batch

Returns detailed post data for up to five Reddit posts specified by ID. Supports optional comment context and structured data formatting.

가격
$0.005USD / 호출
메서드
POST
응답
JSON
매개변수
필수 1개 · 선택 사항 3개

Playground

입력
Post IDs comma-separated, format like "t3_XXXXXX,t3_YYYYYY", max 5 posts
Comment ID (used when include_comment_id is True), format like "t1_XXXXXX"
Whether to include specific comment ID, default False
Whether to clean and format the data
출력예시
응답outputs · 60 B · 7줄
[
  {
    "data": {
      "postsInfoByIds": null
    }
  }
]

예시

예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.

API README

Reddit Batch Post Details API

Returns detailed data for up to five Reddit posts in one call. You pass the post IDs as a comma-separated string in post_ids, such as t3_1ojnh50,t3_1ok432f. Each result includes the author, flair, comment count, and status flags for the post.

Use cases

  • Fetch current comment counts and lock status for a short list of posts you already track.
  • Check which saved post IDs now return DeletedSubredditPost because the post was removed.
  • Read the flair text and link domain of several posts to sort them into topics or sources.
  • Pull author names and account IDs for a set of posts to build a list of posters.

Request

curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/post-details-batch" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"post_ids": "t3_1ojnh50,t3_1ok432f,t3_1nwil8j"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
post_idsstringYesPost IDs comma-separated, format like "t3_XXXXXX,t3_YYYYYY", max 5 posts
comment_idstringNoComment ID (used when include_comment_id is True), format like "t1_XXXXXX"
include_comment_idbooleanNoWhether to include specific comment ID, default False
need_formatbooleanNoWhether to clean and format the data

Example response

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"
    }
  ]
}

Response fields

FieldMeaning
postsInfoByIds[]One entry per requested post ID, in the order of the request. Posts that no longer exist come back as an entry with only __typename set to DeletedSubredditPost.
postsInfoByIds[].__typenameType of the entry. SubredditPost means the post data is present. DeletedSubredditPost means no data is available.
postsInfoByIds[].idPost ID in the t3_ format, for example t3_1ojnh50.
postsInfoByIds[].createdAtCreation time of the post as an ISO 8601 timestamp with a UTC offset.
postsInfoByIds[].commentCountNumber of comments on the post.
postsInfoByIds[].authorInfo.name / postsInfoByIds[].authorInfo.idUsername of the author and the author's account ID in the t2_ format.
postsInfoByIds[].flair.textText of the post flair, for example Cringe.
postsInfoByIds[].domainDomain the post links to. The value v.redd.it marks a video hosted on Reddit.
postsInfoByIds[].isLocked / postsInfoByIds[].isNsfw / postsInfoByIds[].isSpoiler / postsInfoByIds[].isStickiedBoolean flags that show whether the post is locked, marked NSFW, marked as a spoiler, or pinned.
postsInfoByIds[].awardings[].award.name / postsInfoByIds[].awardings[].totalName of each award on the post and how many times it was given.

Notes

  • post_ids takes up to 5 IDs in the t3_XXXXXX format, separated by commas.
  • Use comment_id in the t1_XXXXXX format together with include_comment_id set to true to add context for one comment.
  • Deleted posts still take a slot in the list, so match results to your request by position and by id.
  • For comment threads, call Reddit App Post Comments. For more than five posts, use Reddit Post Details Large Batch.

Pricing

$0.005 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

더 살펴보기

관련 API

모든 API
API가격응답
Reddit$0.005 / 호출JSON
Reddit$0.001 / 호출JSON
Reddit$0.001 / 호출JSON
Reddit$0.001 / 호출JSON
Reddit$0.001 / 호출JSON
Reddit$0.001 / 호출JSON

가이드:Best Reddit API in 2026: Pricing Compared

질문

FAQ

Reddit Batch Post Details API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/reddit/app/post-details-batch에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Reddit Batch Post Details API 비용은 얼마인가요?

호출당 $0.005, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Reddit Batch Post Details API는 어떤 매개변수를 받나요?

필수: post_ids (string). 선택: comment_id (string), include_comment_id (boolean) 및 need_format (boolean). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Reddit Batch Post Details API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Reddit 개발자 계정이나 API 키가 필요한가요?

아니요. Reddit Batch Post Details은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Reddit API 액세스를 별도로 신청할 필요는 없습니다.