Reddit

Learn how to use Reddit with Composio

Overview

Enum

REDDIT

Description

Connect to Reddit to post and comment.

Authentication Details

client_id
stringRequired
client_secret
stringRequired
oauth_redirect_uri
stringDefaults to https://backend.composio.dev/api/v1/auth-apps/add
scopes
stringDefaults to identity read vote submit flair edit
base_url
stringDefaults to https://oauth.reddit.com

Actions

Search for content across subreddits.

Action Parameters

search_query
stringRequired
restrict_sr
booleanDefaults to True
sort
stringDefaults to relevance
limit
integerDefaults to 5

Action Response

data
object
successful
boolean
error

Fetch information about a specific comment or post.

Action Parameters

id
stringRequired

Action Response

data
object
successful
boolean
error

Delete a comment.

Action Parameters

id
stringRequired

Action Response

data
object
successful
boolean
error

Post a new comment or reply to an existing comment.

Action Parameters

thing_id
stringRequired
text
stringRequired

Action Response

data
object
successful
boolean
error

Submit a new post to a subreddit. note: use reddit get user flair action to get the flair id for the subreddit.

Action Parameters

subreddit
stringRequired
title
stringRequired
text
string
flair_id
stringRequired
url
string
kind
stringRequired

Action Response

data
object
successful
boolean
error

Fetch top posts in a subreddit with optional size limit.

Action Parameters

subreddit
stringRequired
size
integerDefaults to 5

Action Response

data
object
successful
boolean
error

Get flairs available for a subreddit. this action will be used to create a post.

Action Parameters

subreddit
stringRequired

Action Response

data
object
successful
boolean
error

Edit an existing comment or self-post.

Action Parameters

thing_id
stringRequired
text
stringRequired

Action Response

data
object
successful
boolean
error

Delete a post.

Action Parameters

id
stringRequired

Action Response

data
object
successful
boolean
error