Browsable Browsable Docs

Reddit Post & Comments API

Fetch a Reddit post and its comment tree by URL. This endpoint follows the same run envelope as the rest of the Browsable API.

POST /v1/reddit/post/comments

Canonical execution route: /v1/tasks/reddit-post-comments/runs. For the live task contract, inspect GET /v1/tasks/reddit-post-comments.

Parameters

Parameter Type Required Description
url string Yes Full Reddit post URL.

Response

Result Fields
Post Object
title - Post title.
author - Post author.
subreddit - Subreddit name.
numComments - Total comment count.
Comment Object
body - Comment text.
score - Comment score.
depth - Nesting depth.
replies - Nested replies.

Code Examples

curl -X POST "https://api.browsable.app/v1/reddit/post/comments" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://reddit.com/r/programming/comments/abc123/...","_run":{"async":false}}'

Try it Out

API Playground

Stored locally only

Reddit post URL

Error Codes

400 Bad Request
The JSON body does not match the task input schema.
401 Unauthorized
Missing or invalid API key.
403 Forbidden
Your account cannot execute the task, usually because of access or credits.
500 Internal Server Error
Fetching the Reddit post failed upstream.