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, manage messages, and access user and subreddit info.

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", "controversial"). 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: "all")
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
gstringNoGeo filter for posts (e.g., "GLOBAL", "US", "AR", etc.)

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
namestringThing fullname (t3_xxxxx)
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
afterstringFullname of the last item for forward pagination
beforestringFullname of the first item for backward pagination

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
threadedbooleanNoReturn comments in threaded/nested format
truncatenumberNoInteger to truncate comment depth
commentstringNoID36 of a comment to focus on (returns that comment thread)

Output

ParameterTypeDescription
postobjectPost information including ID, title, author, content, and metadata
idstringPost ID
namestringThing fullname (t3_xxxxx)
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
namestringThing fullname (t1_xxxxx)
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
namestringThing fullname (t3_xxxxx)
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
afterstringFullname of the last item for forward pagination
beforestringFullname of the first item for backward pagination

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")
typestringNoType of search results: "link" (posts), "sr" (subreddits), or "user" (users). Default: "link"
sr_detailbooleanNoExpand subreddit details in the response

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
namestringThing fullname (t3_xxxxx)
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
afterstringFullname of the last item for forward pagination
beforestringFullname of the first item for backward pagination

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)
flair_idstringNoFlair template UUID for the post (max 36 characters)
flair_textstringNoFlair text to display on the post (max 64 characters)
collection_idstringNoCollection UUID to add the post to

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
successbooleanOperation success status
messagestringResult message
datajsonResponse data
afterstringPagination cursor (next page)
beforestringPagination cursor (previous page)
idstringEntity ID
namestringEntity fullname
messagesjsonMessages data
display_namestringSubreddit display name
subscribersnumberSubscriber count
descriptionstringDescription text
link_karmanumberLink karma
comment_karmanumberComment karma
total_karmanumberTotal karma
icon_imgstringIcon image URL

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")
return_rtjsonbooleanNoReturn response in Rich Text JSON format

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

reddit_get_me

Get information about the authenticated Reddit user

Input

ParameterTypeRequiredDescription

Output

ParameterTypeDescription
idstringUser ID
namestringUsername
created_utcnumberAccount creation time in UTC epoch seconds
link_karmanumberTotal link karma
comment_karmanumberTotal comment karma
total_karmanumberCombined total karma
is_goldbooleanWhether user has Reddit Premium
is_modbooleanWhether user is a moderator
has_verified_emailbooleanWhether email is verified
icon_imgstringUser avatar/icon URL

reddit_get_user

Get public profile information about any Reddit user by username

Input

ParameterTypeRequiredDescription
usernamestringYesReddit username to look up (e.g., "spez", "example_user")

Output

ParameterTypeDescription
idstringUser ID
namestringUsername
created_utcnumberAccount creation time in UTC epoch seconds
link_karmanumberTotal link karma
comment_karmanumberTotal comment karma
total_karmanumberCombined total karma
is_goldbooleanWhether user has Reddit Premium
is_modbooleanWhether user is a moderator
has_verified_emailbooleanWhether email is verified
icon_imgstringUser avatar/icon URL

reddit_send_message

Send a private message to a Reddit user

Input

ParameterTypeRequiredDescription
tostringYesRecipient username (e.g., "example_user") or subreddit (e.g., "/r/subreddit")
subjectstringYesMessage subject (max 100 characters)
textstringYesMessage body in markdown format
from_srstringNoSubreddit name to send the message from (requires moderator mail permission)

Output

ParameterTypeDescription
successbooleanWhether the message was sent successfully
messagestringSuccess or error message

reddit_get_messages

Retrieve private messages from your Reddit inbox

Input

ParameterTypeRequiredDescription
wherestringNoMessage folder to retrieve: "inbox" (all), "unread", "sent", "messages" (direct messages only), "comments" (comment replies), "selfreply" (self-post replies), or "mentions" (username mentions). Default: "inbox"
limitnumberNoMaximum number of messages to return (e.g., 25). Default: 25, max: 100
afterstringNoFullname of a thing to fetch items after (for pagination)
beforestringNoFullname of a thing to fetch items before (for pagination)
markbooleanNoWhether to mark fetched messages as read
countnumberNoA count of items already seen in the listing (used for numbering)
showstringNoShow items that would normally be filtered (e.g., "all")

Output

ParameterTypeDescription
messagesarrayArray of messages with sender, recipient, subject, body, and metadata
idstringMessage ID
namestringThing fullname (t4_xxxxx)
authorstringSender username
deststringRecipient username
subjectstringMessage subject
bodystringMessage body text
created_utcnumberCreation time in UTC epoch seconds
newbooleanWhether the message is unread
was_commentbooleanWhether the message is a comment reply
contextstringContext URL for comment replies
distinguishedstringDistinction: null/"moderator"/"admin"
afterstringFullname of the last item for forward pagination
beforestringFullname of the first item for backward pagination

reddit_get_subreddit_info

Get metadata and information about a subreddit

Input

ParameterTypeRequiredDescription
subredditstringYesThe subreddit to get info about (e.g., "technology", "programming", "news")

Output

ParameterTypeDescription
idstringSubreddit ID
namestringSubreddit fullname (t5_xxxxx)
display_namestringSubreddit name without prefix
titlestringSubreddit title
descriptionstringFull subreddit description (markdown)
public_descriptionstringShort public description
subscribersnumberNumber of subscribers
accounts_activenumberNumber of currently active users
created_utcnumberCreation time in UTC epoch seconds
over18booleanWhether the subreddit is NSFW
langstringPrimary language of the subreddit
subreddit_typestringSubreddit type: public, private, restricted, etc.
urlstringSubreddit URL path (e.g., /r/technology/)
icon_imgstringSubreddit icon URL
banner_imgstringSubreddit banner URL

On this page

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