AACFlow

Reddit

Access Reddit data and content

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

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"
limitnumberNoNo description
timestringNoTime filter for "top" sorted posts: "day", "week", "month", "year", or "all" (default: "all")
afterstringNoNo description
beforestringNoNo description
countnumberNoNo description
showstringNoShow items that would normally be filtered (e.g., "all")
sr_detailbooleanNoNo description
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

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")
limitnumberNoNo description
depthnumberNoNo description
contextnumberNoNo description
showeditsbooleanNoNo description
showmorebooleanNoInclude "load more comments" elements in the response
threadedbooleanNoNo description
truncatenumberNoNo description
commentstringNoNo description

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

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")
limitnumberNoNo description
afterstringNoNo description
beforestringNoNo description
countnumberNoNo description
showstringNoShow items that would normally be filtered (e.g., "all")
sr_detailbooleanNoNo description

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

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")
limitnumberNoNo description
restrict_srbooleanNoNo description
afterstringNoNo description
beforestringNoNo description
countnumberNoNo description
showstringNoShow items that would normally be filtered (e.g., "all")
typestringNoType of search results: "link" (posts), "sr" (subreddits), or "user" (users). Default: "link"
sr_detailbooleanNoNo description

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

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")
urlstringNoNo description
nsfwbooleanNoNo description
spoilerbooleanNoNo description
send_repliesbooleanNoNo description
flair_idstringNoNo description
flair_textstringNoNo description
collection_idstringNoNo description

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

Input

ParameterTypeRequiredDescription
idstringYesThing fullname to vote on (e.g., "t3_abc123" for post, "t1_def456" for comment)
dirnumberYesNo description

Output

ParameterTypeDescription
successbooleanWhether the vote was successful
messagestringSuccess or error message

reddit_save

Input

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

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

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_rtjsonbooleanNoNo description

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

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

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

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

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

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

Input

ParameterTypeRequiredDescription
tostringYesRecipient username (e.g., "example_user") or subreddit (e.g., "/r/subreddit")
subjectstringYesNo description
textstringYesNo description
from_srstringNoNo description

Output

ParameterTypeDescription
successbooleanWhether the message was sent successfully
messagestringSuccess or error message

reddit_get_messages

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"
limitnumberNoNo description
afterstringNoNo description
beforestringNoNo description
markbooleanNoNo description
countnumberNoNo description
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

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 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started