Reddit API
Reddit API for AI
Extract Posts, Comments & Threads
Extract Reddit posts, comments, and full threads as structured data for RAG pipelines and AI applications. Full comment tree reconstruction, keyword monitoring, and AI summarization built in.
1,000 free requests/month. No credit card required.
pip install trawl-sdk
from trawl import TrawlClient
client = TrawlClient()
# Search Reddit posts across subreddits
results = client.reddit.search("machine learning", max_results=10)
for post in results.results:
print(f"[r/{post.subreddit}] {post.title}")
# Get a full thread with comments as segments
thread = client.reddit.get_thread("1abc2de")
for segment in thread.segments:
print(f"[{segment.start}] {segment.text}")
# AI summarization (Pro+ tier)
summary = client.reddit.summarize("1abc2de")
print(summary.title, summary.key_points)Why developers choose Trawl
Search posts across subreddits
Full comment tree reconstruction
RAG-optimized thread segments
AI summarization (Pro+)
Entity extraction
Keyword monitoring via watches
BYOK Reddit credentials
TranscriptSegment output format
Python SDK + JS SDK + MCP server
Ticker mention tracking across finance subreddits
Trending ticker detection with noise filtering
AI sentiment aggregation (bullish/bearish/neutral)
10+
Content sources
5
Output formats
49
MCP tools for Claude
Start building with Reddit data in 30 seconds
pip install trawl-sdk
python -c "
from trawl import TrawlClient
t = TrawlClient().reddit.search('AI startups')
print(f'{len(t.results)} posts found')
"