> ## Documentation Index
> Fetch the complete documentation index at: https://docs.konbiniapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get subreddit comments

> Returns public comments from a subreddit. Supports hot, new, top, and controversial ordering, with optional time windows for top and controversial.

## What it does

Returns public comments from a subreddit. Supports hot, new, top, and controversial ordering, with optional time windows for top and controversial.

## Tool details

| Field | Value |
| - | - |
| Tool name | `reddit_get_subreddit_comments` |
| Platform | Reddit |
| REST endpoint | `GET /v1/reddit/subreddits/{subreddit}/comments` |
| Result type | Collection tool |

## Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `subreddit` | `string` | Yes | Subreddit name (with or without `r/` prefix) |
| `count` | `integer` | No | Number of comments to fetch (maximum: 100) Default: `25`. |
| `cursor` | `string` | No | Pagination cursor |
| `order` | `string` | No | Sort order: hot (default), new, top, or controversial Default: `hot`. Allowed values: `hot`, `new`, `top`, `controversial`. |
| `time` | `string` | No | Time window for top or controversial ordering: hour, day, week, month, year, or all (default) Allowed values: `hour`, `day`, `week`, `month`, `year`, `all`. |
| `projection_preset` | `string` | No | Defaults to `minimal`. Allowed values: `full`, `minimal`, `identity`, `engagement`, `content`. |
| `data_fields` | `string[]` | No | Adds top-level keys from `data` on top of the selected `projection_preset`. |
| `item_fields` | `string[]` | No | Adds keys from `data.orderedItems[]` on top of the selected `projection_preset`. |

## Example

```json theme={null}
{
  "name": "reddit_get_subreddit_comments",
  "arguments": {
    "subreddit": "programming",
    "count": 25,
    "projection_preset": "minimal",
    "data_fields": [
      "orderedItems",
      "nextCursor",
      "cursor",
      "itemCount"
    ],
    "item_fields": [
      "entityId",
      "published",
      "content",
      "url",
      "likeCount"
    ]
  }
}
```

## Available data fields

* `@context`
* `type`
* `partOf`
* `totalItems`
* `cursor`
* `nextCursor`
* `next`
* `itemCount`
* `orderedItems`

## Available item fields

* `type`
* `id`
* `url`
* `entityId`
* `content`
* `published`
* `isPinned`
* `isSponsored`
* `hasReplies`
* `likeCount`
* `voteCount`
* `attributedTo`
* `inReplyTo`
* `image`
* `attachment`

## Response notes

Successful calls return a JSON object with a top-level `data` field and, when
available, `metadata.creditsUsed` and `metadata.creditsRemaining`. See
[response format](/getting-started/response-format),
[pagination](/getting-started/pagination), and [credits](/getting-started/credits).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.