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
Access Reddit data to retrieve posts and comments from any subreddit. Get post titles, content, authors, scores, comments and more.
Tools
reddit_get_posts
Fetch posts from a subreddit with different sorting options
Input
Parameter | Type | Required | Description |
---|---|---|---|
accessToken | string | Yes | Access token for Reddit API |
subreddit | string | Yes | The name of the subreddit to fetch posts from (without the r/ prefix) |
sort | string | No | Sort method for posts: |
limit | number | No | Maximum number of posts to return (default: 10, max: 100) |
time | string | No | Time filter for |
Output
Parameter | Type |
---|---|
subreddit | string |
posts | string |
reddit_get_comments
Fetch comments from a specific Reddit post
Input
Parameter | Type | Required | Description |
---|---|---|---|
accessToken | string | Yes | Access token for Reddit API |
postId | string | Yes | The ID of the Reddit post to fetch comments from |
subreddit | string | Yes | The subreddit where the post is located (without the r/ prefix) |
sort | string | No | Sort method for comments: |
limit | number | No | Maximum number of comments to return (default: 50, max: 100) |
Output
Parameter | Type |
---|---|
post | string |
title | string |
author | string |
selftext | string |
created_utc | string |
score | string |
permalink | string |
Block Configuration
Input
Parameter | Type | Required | Description |
---|---|---|---|
operation | string | Yes | Operation |
Outputs
Output | Type | Description |
---|---|---|
subreddit | string | subreddit output from the block |
posts | json | posts output from the block |
post | json | post output from the block |
comments | json | comments output from the block |
Notes
- Category:
tools
- Type:
reddit