# Reddit Batch Post Details API

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

Source: https://www.sandbase.ai/model/reddit/app/post-details-batch
API reference: https://www.sandbase.ai/model/reddit/app/post-details-batch/docs

## Facts

- Provider: Reddit
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/reddit/app/post-details-batch`
- Price: $0.0075 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, reddit
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/reddit/app/post-details-batch` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `post_ids` | string | yes |  |
| `comment_id` | string | no |  |
| `include_comment_id` | boolean | no |  |
| `need_format` | boolean | no |  |

## FAQ

### How do I use the Reddit Batch Post Details API?

Send a POST request to https://api.sandbase.ai/v1/api/reddit/app/post-details-batch with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Reddit Batch Post Details API cost?

$0.0075 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Reddit Batch Post Details API accept?

Required: post_ids (string). Optional: comment_id (string), include_comment_id (boolean) and need_format (boolean). The Parameters table and the Playground on this page list every field.

### What does the Reddit Batch Post Details API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Reddit developer account or API key?

No. Reddit Batch Post Details runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Reddit API access separately.

## README

### Reddit Batch Post Details API

Retrieve detailed information for multiple Reddit posts using a comma-separated list in `post_ids`. You can also supply `comment_id` and formatting toggles to shape the output.

#### Use cases

- Retrieve metadata and contents for several posts in one call.
- Inspect specific comment contexts alongside queried posts.
- Format raw Reddit post output for downstream analysis.

#### Request

```bash
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": "<post_ids>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `post_ids` | string | Yes | Post IDs comma-separated, format like "t3_XXXXXX,t3_YYYYYY", max 5 posts |
| `comment_id` | string | No | Comment ID (used when include_comment_id is True), format like "t1_XXXXXX" |
| `need_format` | boolean | No | Whether to clean and format the data |
| `include_comment_id` | boolean | No | Whether to include specific comment ID, default False |

#### Notes

- `post_ids` accepts up to 5 comma-separated post IDs formatted like `t3_XXXXXX`.
- `comment_id` requires IDs formatted like `t1_XXXXXX` and is used when `include_comment_id` is true.

#### Related APIs

- [Reddit Subreddit Mute Status](/model/reddit/app/check-subreddit-muted): Checks whether a specified Reddit subreddit is muted by the current account using its ID.
- [Reddit App Comment Replies](/model/reddit/app/comment-replies): Returns replies and nested sub-comments under a Reddit post comment using a continuation cursor.
- [Reddit Community Highlights](/model/reddit/app/community-highlights): Returns featured highlight content for a designated Reddit community, such as popular posts and announcements, by subreddit ID.
