This client uses Reddit’s free, legacy JSON API aimed at RSS feeds, so no auth is required. With that being said, Reddit does impose rate limits on the API, so be considerate.

Install

npm install @agentic/reddit

Usage

import { RedditClient } from '@agentic/reddit'

const reddit = new RedditClient()
const result = await reddit.getSubredditPosts({
  subreddit: 'AskReddit',
  type: 'hot',
  limit: 10
})