Scavio Reddit
Search Reddit posts or fetch a full post with threaded comments by URL. Use for discussion research, brand monitoring, sentiment analysis, or RAG pipelines n...
scavio-ai
@scavio-ai
What This Skill Does
Searches Reddit posts by keyword or retrieves a full post with threaded comments via URL. Returns structured JSON with subreddit, author, score, flair, awards, and media fields.
Replaces manually browsing Reddit or building custom scrapers by providing a structured API for search and comment retrieval.
When to Use It
- Search Reddit for community opinions or sentiment on a specific topic
- Retrieve the full text and threaded comments of a Reddit post by URL
- Monitor brand or competitor mentions across Reddit subreddits
- Collect Reddit discussions as context for a RAG pipeline or research report
- Analyze upvoted or recent posts about a product, library, or issue
Install
$ openclaw skills install @scavio-ai/scavio-redditReddit Search and Post Retrieval via Scavio
Search Reddit posts or retrieve a full post with its threaded comment tree. Returns structured JSON with subreddit, author, score, flair, awards, and media fields.
When to trigger
Use this skill when the user asks to:
- Search Reddit for opinions, discussions, or community sentiment on a topic
- Fetch the full text and comments of a Reddit post by URL
- Research how developers or communities talk about a product, library, or issue
- Build RAG pipelines that need community-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 https://scavio.dev (250 free credits/month, no card required):
export SCAVIO_API_KEY=sk_live_your_key
Workflow
- Finding discussions: call
/reddit/searchwith a keyword query. Usesort: topfor the most upvoted posts orsort: newfor freshest results. - Reading a post: if the user provides a Reddit URL, call
/reddit/postto get the full body and comment tree. - Pagination: pass
nextCursorfrom the search response back ascursorto get the next page. Stop whennextCursorisnull. - Comment tree: comments are returned flat in traversal order. Use
depthfor indentation orparentIdto reconstruct the tree. Top-level replies haveparentIdequal to the post id (t3_…); nested replies haveparentIdequal to a comment id (t1_…).
Endpoints
| Endpoint | Credits | Description |
|---|---|---|
POST https://api.scavio.dev/api/v1/reddit/search | 2 | Search Reddit posts by query, sort, and cursor |
POST https://api.scavio.dev/api/v1/reddit/post | 2 | Get a full post with threaded comments by URL |
Authorization: Bearer $SCAVIO_API_KEY
Search Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
query | string | required | Search query (1-500 chars) |
sort | string | relevance | relevance, hot, top, new, comments |
cursor | string | -- | Pagination token from previous response's nextCursor |
Post Detail Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
url | string | required | Full Reddit post URL |
Examples
import os, requests
BASE = "https://api.scavio.dev"
HEADERS = {"Authorization": f"Bearer {os.environ['SCAVIO_API_KEY']}"}
# Search Reddit
results = requests.post(f"{BASE}/api/v1/reddit/search", headers=HEADERS,
json={"query": "FastAPI vs Django 2026", "sort": "top"}).json()
posts = results["data"]["posts"]
next_cursor = results["data"]["nextCursor"] # pass as "cursor" for next page
# Fetch full post and comments
post_data = requests.post(f"{BASE}/api/v1/reddit/post", headers=HEADERS,
json={"url": "https://www.reddit.com/r/Python/comments/1smb9du/fastapi_vs_django/"}).json()
post = post_data["data"]["post"]
comments = post_data["data"]["comments"] # flat list, use depth/parentId for tree
Search Response
{
"data": {
"searchQuery": "FastAPI vs Django 2026",
"totalResults": 14,
"nextCursor": "eyJjYW5kaWRhdGVzX3JldH...",
"posts": [
{
"position": 0,
"id": "t3_1smb9du",
"title": "FastAPI vs Django in 2026 -- what the teams are actually using",
"url": "https://www.reddit.com/r/Python/comments/1smb9du/fastapi_vs_django/",
"subreddit": "Python",
"author": "python_dev",
"timestamp": "2026-04-15T16:34:40.389000+0000",
"nsfw": false
}
]
},
"credits_used": 2,
"credits_remaining": 498
}
Post Detail Response
{
"data": {
"post": {
"id": "t3_1smb9du",
"title": "FastAPI vs Django in 2026 -- what the teams are actually using",
"body": "After a year of running both in production...",
"url": "https://www.reddit.com/r/Python/comments/1smb9du/fastapi_vs_django/",
"contentUrl": "https://www.reddit.com/r/Python/comments/1smb9du/fastapi_vs_django/",
"subreddit": "Python",
"author": "python_dev",
"score": 842,
"upvoteRatio": 0.97,
"numComments": 214,
"timestamp": "2026-04-15T16:34:40.389000+0000",
"flair": "Discussion",
"nsfw": false,
"awards": []
},
"comments": [
{
"id": "t1_lxs9a0k",
"author": "senior_py",
"body": "We moved to FastAPI for the API surface and kept Django for admin...",
"score": 312,
"depth": 0,
"timestamp": "2026-04-15T17:02:11.000000+0000",
"parentId": "t3_1smb9du"
}
]
},
"credits_used": 2,
"credits_remaining": 496
}
url is the canonical Reddit permalink. contentUrl is the rendered URL — for link posts it will be the external article; for text/self posts it is the same as url; for image/video posts it is the media URL.
Guardrails
- Each Reddit call costs 2 credits (not 1). Inform the user if they are paginating many results.
- 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
nsfwflag so the user can decide. - When summarizing comment threads, preserve the author attribution.
Failure handling
504means Reddit timed out. Retry once with the same request.502/503mean upstream is temporarily unavailable. Wait a few seconds before retrying.- If search returns no results, suggest different keywords or a different
sortvalue. - If
SCAVIO_API_KEYis not set, prompt the user to export it before continuing.
LangChain
pip install langchain-scavio
from langchain_scavio import ScavioSearchTool
tool = ScavioSearchTool(engine="reddit")
Top skills in this category
Computer Use
@ram-raghav-sFull desktop computer use for headless Linux servers. Xvfb + XFCE virtual desktop with xdotool automation. 17 actions (click, type, scroll, screenshot, drag,...
GA4 Analytics
@adamkristopherGoogle Analytics 4, Search Console, and Indexing API toolkit. Analyze website traffic, page performance, user demographics, real-time visitors, search queries, and SEO metrics. Use when the user asks to: check site traffic, analyze page views, see traffic sources, view user demographics, get real-time visitor data, check search console queries, analyze SEO performance, request URL re-indexing, inspect index status, compare date ranges, check bounce rates, view conversion data, or get e-commerce revenue. Requires a Google Cloud service account with GA4 and Search Console access.
Marketing Mode
@thesethroseMarketing Mode combines 23 comprehensive marketing skills covering strategy, psychology, content, SEO, conversion optimization, and paid growth. Use when users need marketing strategy, copywriting, SEO help, conversion optimization, paid advertising, or any marketing tactic.
Marketing Skills
@jchopard69Access 23 marketing modules offering checklists, frameworks, and ready-to-use deliverables for CRO, SEO, copywriting, analytics, launches, ads, and social me...
Session-logs
@guogang1024Search and analyze your own session logs (older/parent conversations) using jq.