App Logo
reddit.com

Get Reddit thread

Fetch a full Reddit thread from its URL. Returns title, op_text, score, num_comments, and comments (author, body, score, nesting depth). Compare num_comments to total_comments to detect truncation; use all_comments to expand every "more replies" thread automatically.

Input

id optional

Post base36 id from the permalink (e.g. "1ldvy4n"), the part after /comments/. Pass this OR url.

url optional

Thread URL (full https://www.reddit.com/r/.../comments/... or the /r/.../comments/... path). Pass this OR id.

sort optional

Comment sort via Reddit's ?sort= ("confidence" = Best). Default: Reddit's Best.

all_comments optional

Expand every "more replies" loader for the full tree (slower on big threads). Default: only comments rendered on load.

Output

id required

Reddit fullname, e.g. t3_1ldvy4n

score required
title required
author required
created required
op_text required
comments required
permalink required
post_type required
subreddit required
num_comments required

Reddit's total comment count; compare with comments.length to detect on-load truncation

domain optional
content_href optional

Submission target: external link for link posts, the thread url for self posts

upvote_ratio optional

Start building for free