Get Reddit thread
Input
id optionalPost base36 id from the permalink (e.g. "1ldvy4n"), the part after /comments/.
url optionalThread URL (full https://www.reddit.com/r/.../comments/... or the /r/.../comments/... path).
sort optionalComment sort via Reddit's ?sort= ("confidence" = Best). Default: Reddit's Best.
urls optionalNot supported since 19 Oct 2026: the run fails with a message saying so. Send one id or url per call and fan out with run_script's scripts.
all_comments optionalExpand every "more replies" loader for the full tree (slower on big threads). Default: only comments rendered on load.
Output
id optionalReddit fullname, e.g. t3_1ldvy4n
score optionalNull while Reddit hides the post's score.
title optionalauthor optionaldomain optionalcreated optionalop_text optionalcomments optionalcomplete optionalTrue when every comment of the thread is in comments: no 'more replies' loader was left unexpanded. Pass all_comments to expand them.
permalink optionalpost_type optionalsubreddit optionalcontent_href optionalSubmission target: external link for link posts, the thread url for self posts
num_comments optionalReddit's total comment count; compare with comments.length to detect on-load truncation
upvote_ratio optional