Reddit

Access Reddit data and content

Reddit is a social platform where users share and discuss content in topic-based communities called subreddits.

In Sim, you can use the Reddit integration to:

  • Get Posts: Retrieve posts from any subreddit, with options to sort (Hot, New, Top, Rising) and filter Top posts by time (Day, Week, Month, Year, All Time).
  • Get Comments: Fetch comments from a specific post, with options to sort and set the number of comments.

These operations let your agents access and analyze Reddit content as part of your automated workflows.

Usage Instructions

Integrate Reddit into workflows. Read posts, comments, and search content. Submit posts, vote, reply, edit, and manage your Reddit account.

Tools

reddit_get_posts

Fetch posts from a subreddit with different sorting options

Input

ParameterTypeRequiredDescription
subredditstringYesThe subreddit to fetch posts from (e.g., "technology", "news")
sortstringNoSort method for posts (e.g., "hot", "new", "top", "rising"). Default: "hot"
limitnumberNoMaximum number of posts to return (e.g., 25). Default: 10, max: 100
timestringNoTime filter for "top" sorted posts: "day", "week", "month", "year", or "all" (default: "day")
afterstringNoFullname of a thing to fetch items after (for pagination)
beforestringNoFullname of a thing to fetch items before (for pagination)
countnumberNoA count of items already seen in the listing (used for numbering)
showstringNoShow items that would normally be filtered (e.g., "all")
sr_detailbooleanNoExpand subreddit details in the response

Output

ParameterTypeDescription
subredditstringName of the subreddit where posts were fetched from
postsarrayArray of posts with title, author, URL, score, comments count, and metadata
idstringPost ID
titlestringPost title
authorstringAuthor username
urlstringPost URL
permalinkstringReddit permalink
scorenumberPost score (upvotes - downvotes)
num_commentsnumberNumber of comments
created_utcnumberCreation timestamp (UTC)
is_selfbooleanWhether this is a text post
selftextstringText content for self posts
thumbnailstringThumbnail URL
subredditstringSubreddit name

reddit_get_comments

Fetch comments from a specific Reddit post

Input

ParameterTypeRequiredDescription
postIdstringYesThe ID of the Reddit post to fetch comments from (e.g., "abc123")
subredditstringYesThe subreddit where the post is located (e.g., "technology", "programming")
sortstringNoSort method for comments: "confidence", "top", "new", "controversial", "old", "random", "qa" (default: "confidence")
limitnumberNoMaximum number of comments to return (e.g., 25). Default: 50, max: 100
depthnumberNoMaximum depth of subtrees in the thread (controls nested comment levels)
contextnumberNoNumber of parent comments to include
showeditsbooleanNoShow edit information for comments
showmorebooleanNoInclude "load more comments" elements in the response
showtitlebooleanNoInclude submission title in the response
threadedbooleanNoReturn comments in threaded/nested format
truncatenumberNoInteger to truncate comment depth
afterstringNoFullname of a thing to fetch items after (for pagination)
beforestringNoFullname of a thing to fetch items before (for pagination)
countnumberNoA count of items already seen in the listing (used for numbering)

Output

ParameterTypeDescription
postobjectPost information including ID, title, author, content, and metadata
idstringPost ID
titlestringPost title
authorstringPost author
selftextstringPost text content
scorenumberPost score
created_utcnumberCreation timestamp
permalinkstringReddit permalink
commentsarrayNested comments with author, body, score, timestamps, and replies
idstringComment ID
authorstringComment author
bodystringComment text
scorenumberComment score
created_utcnumberCreation timestamp
permalinkstringComment permalink
repliesarrayNested reply comments

reddit_get_controversial

Fetch controversial posts from a subreddit

Input

ParameterTypeRequiredDescription
subredditstringYesThe subreddit to fetch posts from (e.g., "technology", "news")
timestringNoTime filter for controversial posts: "hour", "day", "week", "month", "year", or "all" (default: "all")
limitnumberNoMaximum number of posts to return (e.g., 25). Default: 10, max: 100
afterstringNoFullname of a thing to fetch items after (for pagination)
beforestringNoFullname of a thing to fetch items before (for pagination)
countnumberNoA count of items already seen in the listing (used for numbering)
showstringNoShow items that would normally be filtered (e.g., "all")
sr_detailbooleanNoExpand subreddit details in the response

Output

ParameterTypeDescription
subredditstringName of the subreddit where posts were fetched from
postsarrayArray of controversial posts with title, author, URL, score, comments count, and metadata
idstringPost ID
titlestringPost title
authorstringAuthor username
urlstringPost URL
permalinkstringReddit permalink
scorenumberPost score (upvotes - downvotes)
num_commentsnumberNumber of comments
created_utcnumberCreation timestamp (UTC)
is_selfbooleanWhether this is a text post
selftextstringText content for self posts
thumbnailstringThumbnail URL
subredditstringSubreddit name

Search for posts within a subreddit

Input

ParameterTypeRequiredDescription
subredditstringYesThe subreddit to search in (e.g., "technology", "programming")
querystringYesSearch query text (e.g., "artificial intelligence", "machine learning tutorial")
sortstringNoSort method for search results (e.g., "relevance", "hot", "top", "new", "comments"). Default: "relevance"
timestringNoTime filter for search results: "hour", "day", "week", "month", "year", or "all" (default: "all")
limitnumberNoMaximum number of posts to return (e.g., 25). Default: 10, max: 100
restrict_srbooleanNoRestrict search to the specified subreddit only (default: true)
afterstringNoFullname of a thing to fetch items after (for pagination)
beforestringNoFullname of a thing to fetch items before (for pagination)
countnumberNoA count of items already seen in the listing (used for numbering)
showstringNoShow items that would normally be filtered (e.g., "all")

Output

ParameterTypeDescription
subredditstringName of the subreddit where search was performed
postsarrayArray of search result posts with title, author, URL, score, comments count, and metadata
idstringPost ID
titlestringPost title
authorstringAuthor username
urlstringPost URL
permalinkstringReddit permalink
scorenumberPost score (upvotes - downvotes)
num_commentsnumberNumber of comments
created_utcnumberCreation timestamp (UTC)
is_selfbooleanWhether this is a text post
selftextstringText content for self posts
thumbnailstringThumbnail URL
subredditstringSubreddit name

reddit_submit_post

Submit a new post to a subreddit (text or link)

Input

ParameterTypeRequiredDescription
subredditstringYesThe subreddit to post to (e.g., "technology", "programming")
titlestringYesTitle of the submission (e.g., "Check out this new AI tool"). Max 300 characters
textstringNoText content for a self post in markdown format (e.g., "This is the body of my post")
urlstringNoURL for a link post (cannot be used with text)
nsfwbooleanNoMark post as NSFW
spoilerbooleanNoMark post as spoiler
send_repliesbooleanNoSend reply notifications to inbox (default: true)

Output

ParameterTypeDescription
successbooleanWhether the post was submitted successfully
messagestringSuccess or error message
dataobjectPost data including ID, name, URL, and permalink
idstringNew post ID
namestringThing fullname (t3_xxxxx)
urlstringPost URL from API response
permalinkstringFull Reddit permalink

reddit_vote

Upvote, downvote, or unvote a Reddit post or comment

Input

ParameterTypeRequiredDescription
idstringYesThing fullname to vote on (e.g., "t3_abc123" for post, "t1_def456" for comment)
dirnumberYesVote direction: 1 (upvote), 0 (unvote), or -1 (downvote)

Output

ParameterTypeDescription
successbooleanWhether the vote was successful
messagestringSuccess or error message

reddit_save

Save a Reddit post or comment to your saved items

Input

ParameterTypeRequiredDescription
idstringYesThing fullname to save (e.g., "t3_abc123" for post, "t1_def456" for comment)
categorystringNoCategory to save under (Reddit Gold feature)

Output

ParameterTypeDescription
successbooleanWhether the save was successful
messagestringSuccess or error message

reddit_unsave

Input

ParameterTypeRequiredDescription

Output

ParameterTypeDescription
subredditstringSubreddit name
postsjsonPosts data
postjsonSingle post data
commentsjsonComments data

reddit_reply

Add a comment reply to a Reddit post or comment

Input

ParameterTypeRequiredDescription
parent_idstringYesThing fullname to reply to (e.g., "t3_abc123" for post, "t1_def456" for comment)
textstringYesComment text in markdown format (e.g., "Great post! Here is my reply")

Output

ParameterTypeDescription
successbooleanWhether the reply was posted successfully
messagestringSuccess or error message
dataobjectComment data including ID, name, permalink, and body
idstringNew comment ID
namestringThing fullname (t1_xxxxx)
permalinkstringComment permalink
bodystringComment body text

reddit_edit

Edit the text of your own Reddit post or comment

Input

ParameterTypeRequiredDescription
thing_idstringYesThing fullname to edit (e.g., "t3_abc123" for post, "t1_def456" for comment)
textstringYesNew text content in markdown format (e.g., "Updated content here")

Output

ParameterTypeDescription
successbooleanWhether the edit was successful
messagestringSuccess or error message
dataobjectUpdated content data
idstringEdited thing ID
bodystringUpdated comment body (for comments)
selftextstringUpdated post text (for self posts)

reddit_delete

Delete your own Reddit post or comment

Input

ParameterTypeRequiredDescription
idstringYesThing fullname to delete (e.g., "t3_abc123" for post, "t1_def456" for comment)

Output

ParameterTypeDescription
successbooleanWhether the deletion was successful
messagestringSuccess or error message

reddit_subscribe

Subscribe or unsubscribe from a subreddit

Input

ParameterTypeRequiredDescription
subredditstringYesThe subreddit to subscribe to or unsubscribe from (e.g., "technology", "programming")
actionstringYesAction to perform: "sub" to subscribe or "unsub" to unsubscribe

Output

ParameterTypeDescription
successbooleanWhether the subscription action was successful
messagestringSuccess or error message

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started