# Reddit App Comment Replies API

> Returns replies and nested sub-comments under a Reddit post comment using a continuation cursor. Supports custom sorting methods and data formatting options.

Source: https://www.sandbase.ai/apis/reddit/app/comment-replies
API reference: https://www.sandbase.ai/apis/reddit/app/comment-replies/docs

## Facts

- Provider: Reddit
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/reddit/app/comment-replies`
- Price: $0.0015 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/comment-replies` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `cursor` | string | yes |  |
| `post_id` | string | yes |  |
| `need_format` | boolean | no |  |
| `sort_type` | string | no |  |

## FAQ

### How do I use the Reddit App Comment Replies API?

Send a POST request to https://api.sandbase.ai/v1/api/reddit/app/comment-replies 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 App Comment Replies API cost?

$0.0015 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 App Comment Replies API accept?

Required: cursor (string) and post_id (string). Optional: need_format (boolean) and sort_type (string). The Parameters table and the Playground on this page list every field.

### What does the Reddit App Comment Replies API return?

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

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

No. Reddit App Comment Replies 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 App Comment Replies API

Retrieve nested comment replies for a Reddit post by providing the target `post_id` and the comment node's `cursor`. It supports multiple sorting methods and optional response formatting.

#### Use cases

- Retrieve nested sub-comments expanded under specific Reddit comment threads.
- Organize discussion branches by sorting responses by confidence, new, or top.
- Format Reddit app reply structures for clean downstream analysis.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/comment-replies" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cursor": "<cursor>", "post_id": "<post_id>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `cursor` | string | Yes | Comment cursor from the more.cursor field in comment data, format like "commenttree:ex:(xxx)" |
| `post_id` | string | Yes | Post ID, format like "t3_XXXXXX" |
| `sort_type` | string | No | Sort method, supports CONFIDENCE, NEW, TOP, HOT, CONTROVERSIAL, OLD, RANDOM |
| `need_format` | boolean | No | Whether to clean and format the data |

#### Notes

- Obtain `cursor` from the `more.cursor` field in prior comment response trees.
- `post_id` requires the Reddit prefix format such as `t3_XXXXXX`.
- `sort_type` accepts CONFIDENCE, NEW, TOP, HOT, CONTROVERSIAL, OLD, or RANDOM.

#### 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 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.
- [Reddit Search](/model/reddit/app/dynamic-search): Search Reddit posts, communities, comments, media and users with the Reddit app search.
