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

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

Action Parameters

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

Action Response

data
object
error
successful
boolean

Delete a comment.

Action Parameters

id
stringRequired

Action Response

data
object
error
successful
boolean

Delete a post.

Action Parameters

id
stringRequired

Action Response

data
object
error
successful
boolean

Edit an existing comment or self-post.

Action Parameters

text
stringRequired
thing_id
stringRequired

Action Response

data
object
error
successful
boolean

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

Action Parameters

subreddit
stringRequired

Action Response

data
object
error
successful
boolean

Post a new comment or reply to an existing comment.

Action Parameters

text
stringRequired
thing_id
stringRequired

Action Response

data
object
error
successful
boolean

Fetch top posts in a subreddit with optional size limit.

Action Parameters

size
integerDefaults to 5
subreddit
stringRequired

Action Response

data
object
error
successful
boolean

Fetch information about a specific comment or post.

Action Parameters

id
stringRequired

Action Response

data
object
error
successful
boolean

Search for content across subreddits.

Action Parameters

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

Action Response

data
object
error
successful
boolean