reddit-api

reddit-api is a skill for Claude Code from fetcher-sh/fetcher-skills. It costs 150 tokens per session (1,844 once invoked), scanned A, original, MIT.

An HTTP service for retrieving Reddit data as JSON. Reddit is a discussion website organized into topic-based communities called subreddits.

In plain words
What is it for?
Use it to search posts across subreddits, find communities or users, retrieve feeds and profiles, and read posts with their full comment trees.
Why use it?
It removes the need to register a Reddit application or manage OAuth credentials when collecting Reddit content.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the fetcher-skills plugin — 13 skills, 4 commands shipped together

Good fit Use it to search posts across subreddits, find communities or users, retrieve feeds and profiles, and read posts with their full comment trees.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fetcher-sh/fetcher-skills/reddit-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fetcher-sh/fetcher-skills --skill reddit-api
Clone the repo
git clone --depth 1 https://github.com/fetcher-sh/fetcher-skills

Made for: Claude Code.

Or install fetcher-skills, the plugin that ships this one along with the rest of its 13 skills, 4 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reddit-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/fetcher-sh/fetcher-skills/reddit-api/github.svg)](https://agentmods.dev/skills/fetcher-sh/fetcher-skills/reddit-api)
Your own site
<a href="https://agentmods.dev/skills/fetcher-sh/fetcher-skills/reddit-api"><img src="https://agentmods.dev/badge/skills/fetcher-sh/fetcher-skills/reddit-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reddit-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/fetcher-sh/fetcher-skills/reddit-api"><img src="https://agentmods.dev/badge/skills/fetcher-sh/fetcher-skills/reddit-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,844 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 14 Aug 2026
  • Snyk warn 14 Aug 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00150 $0.01844
Opus 5 $0.00075 $0.00922
Sonnet 5 $0.00030 $0.00369
Haiku 4.5 $0.00015 $0.00184

Measured 8d ago against content hash a9ed9db4c4e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

reddit-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
skills/reddit-api/SKILL.md · 206 lines

How it starts

The opening of the file, as written. The whole thing — 206 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reddit API

Reddit data on demand: cross-subreddit post search, subreddit and user search, subreddit info and feeds, single posts with full comment trees, sitewide best/hot/new/top feeds, and user profiles/posts/comments — one plain HTTP GET per call, paid as you go. No OAuth app registration, no client ID/secret pair, no Reddit API rate-limit tier.

Base URL: https://reddit.fetcher.sh

Authentication

Two ways to pay, same data — full mechanics in the fetcher skill:

# 1. Prepaid credits (recommended — get a key at https://fetcher.sh/topup
#    or via POST /api/credits/topup, see the fetcher skill)
export FETCHER_API_KEY="bby_live_xxxxxxxxxxxx"
curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://reddit.fetcher.sh/api/search/post?keyword=hello"

# 2. x402 pay-per-call — omit the header; a GET with no payment returns 402
#    with machine-readable payment requirements (USDC on Base, Polygon,
#    Arbitrum, Monad, or Solana). @x402/fetch signs and retries automatically.

Every response is { "status": number, "message": string, "data": ... }; the HTTP status mirrors status.

Endpoints (15 — all GET, $0.002/call)

Endpoint What it returns
/api/search/post Posts across every subreddit matching a keyword
/api/search/subreddit Subreddits matching a keyword
/api/search/user Users matching a keyword
/api/subreddit/{name} A subreddit's info
/api/subreddit/{name}/posts A subreddit's post feed
/api/post/{id} A single post
/api/post/{id}/comments A post's comment tree
/api/post/{id}/comments/{commentId}/replies Replies to a comment
/api/posts/hot Sitewide hot feed
/api/posts/new Sitewide new feed
/api/posts/top Sitewide top feed
/api/posts/best Sitewide best feed
/api/user/{username} A user's profile
/api/user/{username}/posts A user's posts
/api/user/{username}/comments A user's comments

Read the full file on GitHub · 206 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 206 lines · 150 tokens per session scan A a9ed9db4c4e7

Subscribe to this mod's changes

reddit-api is a skill published in the GitHub repository fetcher-sh/fetcher-skills (0 stars, last pushed 3d ago), licensed MIT. It adds 150 tokens to every session and 1,844 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other skills, from other repositories

reddit-api

Reddit Search — Search posts, comments, users, and subreddits across 100M+ indexed Reddit entries. Find discussions, track topics, discover communities, and analyze engagement. No Reddit API key needed — works through Xpoz MCP with natural language queries.

CraftOS-dev/CraftBot · 56 tokens

reddit-api

Reddit Search: search posts, comments, users, and subreddits across Xpoz's indexed Reddit archive. Find discussions, track topics, discover communities, and analyze engagement. No Reddit API key needed; works through Xpoz MCP with natural language queries.

XPOZpublic/xpoz-clawhub-skills · 55 tokens

instagram-api

Instagram data on demand: profile lookup by @handle, posts, reels, stories, tagged posts, followers and followings, hashtag and location feeds, audio/music feeds, and post comments — one plain HTTP GET per call, paid as you go. No login, no session cookies, no headless browser, no Graph API business verification.

sutchan/Agent-Skills-Hub · 127 tokens

xpoz-social-tracking

Set up and manage continuous social media tracking across Twitter, Instagram, Reddit, and TikTok. Add, remove, and view tracked keywords, users, subreddits, and hashtags. Use when asked to track mentions, monitor brands, set up tracking, view tracked items, or stop tracking.

XPOZpublic/xpoz-clawhub-skills · 65 tokens

social-sentiment

Sentiment analysis for brands and products across Twitter, Reddit, and Instagram. Monitor public opinion, track brand reputation, detect PR crises, surface complaints and praise at scale: analyze 70K+ posts with bulk CSV export and Python/pandas. Social listening and brand monitoring powered by billions of indexed…

XPOZpublic/xpoz-clawhub-skills · 66 tokens

social-reddit-card

Realistic Reddit post card with vote rail and comment count, suited to video overlays or story sharing.

nexu-io/open-design · 25 tokens