Reddit API
Reddit

Get Post Comments

Fetch the full comment tree for a Reddit post by permalink — every top-level comment, nested reply, score, and author metadata in one HTTP GET call.

GET/api/reddit/comments

Full comment tree for a post by permalink.

Query Parameters

ParameterTypeRequiredDescription
permalinkstringYesPost permalink (e.g. /r/X/comments/abc/title/)

Example

curl -H "Authorization: Bearer $TOKEN" \
  "https://api.redditapis.com/api/reddit/comments?permalink=/r/ClaudeCode/comments/1sgjld3/"
const response = await fetch(
  "https://api.redditapis.com/api/reddit/comments?permalink=/r/ClaudeCode/comments/1sgjld3/",
  { headers: { Authorization: "Bearer TOKEN" } }
);
import requests

response = requests.get(
    "https://api.redditapis.com/api/reddit/comments",
    params={"permalink": "/r/ClaudeCode/comments/1sgjld3/"},
    headers={"Authorization": "Bearer TOKEN"},
)

On this page