Get subreddit comments — Reddit API
Returns public comments from a subreddit. Supports hot, new, top, and controversial ordering, with optional time windows for top and controversial.
GET
/v1/reddit/subreddits/{subreddit}/comments1 credit per requestExample response200OK
Make the request.
One authenticated GET to /v1/reddit/subreddits/{subreddit}/comments. Authentication and error conventions stay consistent across endpoints. This page shows the path, parameters, response shape, limits, and credit rule for this operation.
Built for
- Sentiment analysis across a community
- Identify trending discussions and opinions
- Research community tone and engagement patterns
const response = await fetch("https://api.konbiniapi.com/v1/reddit/subreddits/programming/comments", {
headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await response.json();
Parameters5
- subredditrequiredIn · PathType · stringSubreddit name (with or without `r/` prefix)
- countIn · QueryType · integerNumber of comments to fetch (maximum: 100)1–100default 25
- cursorIn · QueryType · stringPagination cursor
- orderIn · QueryType · stringSort order: hot (default), new, top, or controversialhot | new | top | controversialdefault hot
- timeIn · QueryType · stringTime window for top or controversial ordering: hour, day, week, month, year, or all (default)hour | day | week | month | year | all
What you will probably call next.
The Reddit endpoints around this one — the same object at a different depth, or the same kind of read.
Try it on your own data.
Get a free API key and make this request in minutes. Failed and timed-out requests are automatically refunded.