Logo: Reddit Search Api

Reddit Search Api

Communautéit
scavio-ai
reddit-search-api

Reddit search for posts, comments and subreddits plus post detail, threaded comments and reply expansion, subreddit metadata and feeds, redditor profiles with their posts and comments, the site-wide popular feed and trending searches. 14 endpoints, 1 credit each, structured JSON for sentiment analysis, brand monitoring and RAG.

Iwwersiicht

Editeurscavio-ai
Repositoryskills
Skill-Nummreddit-search-api
Stären
67
Forks
0
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    scavio-ai huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Reddit Search Api an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/scavio-ai/skills/tree/main/skills/reddit-search-api
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scavio-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/reddit-search-api .claude/skills/reddit-search-api
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Reddit Search Api an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Reddit Search Api automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Reddit Search Api net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Reddit Search API - Posts, Comments, Subreddits, Users

Search Reddit posts, comments and subreddits, read a post with its threaded comment tree, expand comment replies, and pull subreddit metadata and feeds, redditor profiles with their posts and comments, the site-wide popular feed, and trending search queries. All endpoints return structured JSON.

When to trigger

Use this skill when the user asks to:

  • Search Reddit for opinions, discussions, or public sentiment on a topic
  • Search Reddit comments (not just posts) for a keyword, tool or brand mention
  • Find subreddits about a topic, with subscriber counts
  • Fetch the full text and comments of a Reddit post by id or URL
  • Expand the reply tree under a specific comment
  • Look up a subreddit's metadata or browse its post feed
  • Look up a redditor and read their submitted posts or comments
  • Browse the site-wide popular feed or current trending searches
  • Research how developers or communities talk about a product, library, or issue
  • Build RAG pipelines that need discussion-sourced context
  • Monitor brand or competitor mentions across Reddit

Note: Reddit requests take 5-15 seconds. Set a client timeout of at least 30 seconds.

Setup

Get a free API key at scavio.dev (50 free credits to get started, no card required):

bash
export SCAVIO_API_KEY=sk_live_your_key

If you do not have a key yet

An agent running this skill without SCAVIO_API_KEY set will get 401 on every call below. The whole path from nothing to a working key is self-serve:

  1. Sign up at dashboard.scavio.dev - email or Google, no card required.
  2. A key is created for the account automatically at signup. It is on the dashboard under API Keys, ready to copy.
  3. A new account starts with 50 credits. Endpoints in this skill cost 1 credit each unless the table below says otherwise.

When the balance runs out the API answers 402 with a JSON body carrying billing_url. Topping up needs no code change - the same key keeps working. The smallest purchase is 2,500 credits for $25, and monthly plans work out cheaper per credit if the usage is steady rather than one-off.

Every request is a POST with a JSON body and:

Authorization: Bearer $SCAVIO_API_KEY

Endpoints

Base URL: https://api.scavio.dev. All paths are under /api/v1/reddit. Every endpoint costs 1 credit.

EndpointCreditsDescription
POST /api/v1/reddit/search1Search Reddit posts by query
POST /api/v1/reddit/search/comments1Search Reddit comments by query
POST /api/v1/reddit/search/subreddits1Search subreddits by query
POST /api/v1/reddit/search/suggestions1Autocomplete suggestions for a query
POST /api/v1/reddit/post1Full details for a single post
POST /api/v1/reddit/post/comments1Top-level comments for a post
POST /api/v1/reddit/post/comments/replies1Replies to a specific comment
POST /api/v1/reddit/subreddit1Metadata for a subreddit
POST /api/v1/reddit/subreddit/posts1A subreddit's post feed
POST /api/v1/reddit/user1A redditor's profile
POST /api/v1/reddit/user/posts1A redditor's submitted posts
POST /api/v1/reddit/user/comments1A redditor's comments
POST /api/v1/reddit/popular1The site-wide popular feed
POST /api/v1/reddit/trending1Current trending search queries

Workflow

  1. Find discussions: call /reddit/search with query. Read results[].post_id.
  2. Comments and communities: call /reddit/search/comments with query (optional sort) to find comments, each with its post and subreddit; call /reddit/search/subreddits with query to find communities, then pass a name to /reddit/subreddit or /reddit/subreddit/posts. Autocomplete: call /reddit/search/suggestions with query for typeahead strings.
  3. Read a post: call /reddit/post with post_id (a t3_... fullname or bare id) or a full Reddit url.
  4. Comments: call /reddit/post/comments with post_id. Each comment carries a reply_cursor; pass it to /reddit/post/comments/replies as cursor (with the same post_id) to expand that thread.
  5. Subreddits: call /reddit/subreddit for metadata, /reddit/subreddit/posts for the feed.
  6. Redditors: call /reddit/user for the profile, /reddit/user/posts and /reddit/user/comments for their activity.
  7. Discovery: call /reddit/popular for the front-page feed and /reddit/trending for trending search queries.

Paginated endpoints return next_cursor; pass it back as cursor for the next page. Stop when next_cursor is null.

Parameters

Search (/search)

ParameterTypeDefaultDescription
querystringrequiredSearch query (1-500 chars)
cursorstring--Pagination cursor from a prior next_cursor

Comment search (/search/comments)

ParameterTypeDefaultDescription
querystringrequiredSearch query (1-500 chars)
sortstringRELEVANCERELEVANCE, HOT, TOP or NEW
cursorstring--Pagination cursor from a prior next_cursor

Subreddit search (/search/subreddits)

ParameterTypeDefaultDescription
querystringrequiredSearch query (1-500 chars)
cursorstring--Pagination cursor from a prior next_cursor

Search suggestions (/search/suggestions)

query* (1-500 chars).

Post (/post)

ParameterTypeDefaultDescription
post_idstringone ofPost fullname (t3_...) or bare id
urlstringone ofFull Reddit post URL

Provide post_id or url (at least one is required).

Post comments (/post/comments)

ParameterTypeDefaultDescription
post_idstringrequiredPost fullname (t3_...)
sortstringTOPHOT, NEW, TOP, BEST, CONTROVERSIAL
cursorstring--Pagination cursor from a prior next_cursor

Comment replies (/post/comments/replies)

ParameterTypeDefaultDescription
post_idstringrequiredPost fullname (t3_...)
cursorstringrequiredA comment's reply_cursor from the comments endpoint
sortstringTOPHOT, NEW, TOP, BEST, CONTROVERSIAL

Subreddit (/subreddit)

subreddit* — a subreddit name (1-100 chars), e.g. AskReddit.

Subreddit posts (/subreddit/posts)

ParameterTypeDefaultDescription
subredditstringrequiredSubreddit name
sortstringHOTBEST, HOT, NEW, TOP, CONTROVERSIAL, RISING
cursorstring--Pagination cursor

User (/user)

username* — a redditor username (1-100 chars), without u/.

User posts / comments (/user/posts, /user/comments)

ParameterTypeDefaultDescription
usernamestringrequiredRedditor username
sortstringNEWHOT, NEW, TOP, BEST, CONTROVERSIAL
cursorstring--Pagination cursor

Popular (/popular)

cursor (optional) — pagination cursor.

Trending (/trending)

No parameters.

Examples

python
import requests

BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}

# 1. Search Reddit
results = requests.post(f"{BASE}/api/v1/reddit/search", headers=HEADERS,
    json={"query": "serpapi alternative"}).json()

post_id = results["data"]["results"][0]["post_id"]

# 2. Full post detail
post = requests.post(f"{BASE}/api/v1/reddit/post", headers=HEADERS,
    json={"post_id": post_id}).json()

# 3. Top comments, then expand one thread
comments = requests.post(f"{BASE}/api/v1/reddit/post/comments", headers=HEADERS,
    json={"post_id": post_id, "sort": "TOP"}).json()

reply_cursor = comments["data"]["comments"][0]["reply_cursor"]
replies = requests.post(f"{BASE}/api/v1/reddit/post/comments/replies", headers=HEADERS,
    json={"post_id": post_id, "cursor": reply_cursor}).json()

# 4. Subreddit feed
feed = requests.post(f"{BASE}/api/v1/reddit/subreddit/posts", headers=HEADERS,
    json={"subreddit": "Python", "sort": "TOP"}).json()

# 5. Comment search, newest first - each hit carries its post and subreddit
hits = requests.post(f"{BASE}/api/v1/reddit/search/comments", headers=HEADERS,
    json={"query": "web scraping api", "sort": "NEW"}).json()
for c in hits["data"]["results"]:
    print(c["subreddit"], c["score"], c["post"]["title"], c["permalink"])

# 6. Find communities on a topic
subs = requests.post(f"{BASE}/api/v1/reddit/search/subreddits", headers=HEADERS,
    json={"query": "web scraping"}).json()
for s in subs["data"]["results"]:
    print(s["prefixed_name"], s["subscribers"])

Response shapes

Every response uses the envelope { data, response_time, credits_used, credits_remaining }. Key data fields per endpoint:

  • search — results[] (post_id, title, url, text, subreddit, author, score, num_comments, created_at, is_nsfw), next_cursor.
  • search/comments — results[] (comment_id, text, author, score, created_at, edited_at, is_op, permalink, subreddit, post{post_id,title,url,permalink,author,score,num_comments,created_at,is_nsfw}), next_cursor, has_more.
  • search/subreddits — results[] (id, name, prefixed_name, public_description, subscribers, is_nsfw, is_quarantined, icon, url), next_cursor, has_more.
  • search/suggestions — suggestions[] (strings).
  • post — post_id, title, text, url, subreddit, author, score, upvote_ratio, num_comments, created_at, is_nsfw, is_video, thumbnail, media.
  • post/comments — comments[] (comment_id, text, author, score, created_at, reply_cursor), next_cursor.
  • post/comments/replies — replies[] (same item shape as a comment), next_cursor.
  • subreddit — id, name, title, description, subscribers, type, is_nsfw, icon, banner, created_at, primary_color.
  • subreddit/posts — posts[] (post_id, title, url, subreddit, author, score, num_comments, created_at, is_nsfw), next_cursor.
  • user — id, name, is_employee, is_verified, account_type, is_accepting_pms.
  • user/posts — posts[] (same item shape as a feed post), next_cursor.
  • user/comments — comments[] (comment_id, text, author, post{id,title}, score, created_at), next_cursor.
  • popular — posts[] (post_id, title, subreddit, author, score, num_comments, url, created_at), next_cursor.
  • trending — trending[] (query, raw_query).
json
{
  "data": {
    "results": [
      {
        "post_id": "t3_1v6ngaf",
        "title": "Best SerpAPI alternative for an agent pipeline in 2026?",
        "url": "https://www.reddit.com/r/webscraping/comments/1v6ngaf/best_serpapi_alternative/",
        "text": "We outgrew our current provider and need something cheaper...",
        "subreddit": "webscraping",
        "author": "data_plumber",
        "score": 128,
        "num_comments": 43,
        "created_at": "2026-05-11T14:22:07+0000",
        "is_nsfw": false
      }
    ],
    "next_cursor": "eyJjYW5kaWRhdGVzX3JldH..."
  },
  "credits_used": 1,
  "credits_remaining": 999
}

Guardrails

  • Every Reddit endpoint costs 1 credit (this changed from 2 in an earlier version — all Reddit calls are now 1 credit each).
  • Never fabricate post titles, authors, scores, or comment content. Only return API data.
  • Requests take 5-15 seconds. If the user's UX is time-sensitive, recommend async or streaming patterns.
  • Do not filter out NSFW posts silently — surface the is_nsfw flag so the user can decide.
  • When summarizing comment threads, preserve the author attribution.
  • To expand a comment thread, the replies endpoint needs both the post_id and that comment's reply_cursor (passed as cursor).
  • Search pagination moves forward: pass next_cursor back as cursor and each page returns new results (about 10 per page for comment and subreddit search).

Failure handling

  • 400 means an invalid or missing parameter (e.g. no post_id/url) — fix and retry.
  • 401 means the API key is invalid or missing. Check SCAVIO_API_KEY.
  • 429 means rate or usage limit exceeded. Wait before retrying. See rate limits.
  • 502 / 503 mean upstream is temporarily unavailable. Wait a few seconds before retrying.
  • If search returns no results, suggest different keywords.
  • If SCAVIO_API_KEY is not set, prompt the user to export it before continuing.

LangChain

bash
pip install langchain-scavio==4.0.2
python
from langchain_scavio import ScavioSearchTool
tool = ScavioSearchTool(engine="reddit")

Heefeg gestallte Froen

Wat mécht de KI-Skill Reddit Search Api?

Reddit search for posts, comments and subreddits plus post detail, threaded comments and reply expansion, subreddit metadata and feeds, redditor profiles with their posts and comments, the site-wide popular feed and trending searches. 14 endpoints, 1 credit each, structured JSON for sentiment analysis, brand monitoring and RAG.

Firwat Reddit Search Api op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Reddit Search Api besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Reddit Search Api an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/scavio-ai/skills/tree/main/skills/reddit-search-api an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Reddit Search Api benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Reddit Search Api benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Reddit Search Api domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Reddit Search Api gratis?

Jo. scavio-ai huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇