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

FAQ

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.
Optional: id, url, sort, all_comments.
It returns id, score, title, author, domain, created, op_text, comments, permalink, post_type, subreddit, content_href, num_comments, upvote_ratio.
No. It only uses pages of reddit.com that are reachable without signing in.
It only reads. It looks things up on reddit.com and changes nothing there.
Ask an AI agent connected to Reduck to run reduck/reddit.com/get_thread, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/reddit.com/get_thread
It is part of Reduck's official curated catalogue.

Start building not clicking