Social discussions
Reddit API
Search discussions and communities, retrieve profiles and activity, and read posts and comments.
Discover Reddit communities, search selected post, comment and media sections, read public profiles and their activity, and retrieve posts, comment threads and video transcripts.
API availability: Available
http://localhost:3006Public API: https://api.scrapeatlas.com.Endpoints
/v1/searchSearch discussions
RSS keyword discovery with optional subreddit, ranking, time-window, and result bounds. Unknown scores and metrics remain null.
Reference/v1/threadsRetrieve threads
Retrieve posts and nested comments from canonical HTTPS www.reddit.com post permalinks. Reaching a cap or leaving unloaded comments returns partial.
Reference/v1/reddit/subreddit/detailsSubreddit details
Read Reddit community metadata, rules, images, dates and weekly metrics, with null values and explicit coverage.
Reference/v1/reddit/subredditSubreddit posts
Retrieve public subreddit posts with ranking, timeframe, after continuation and optional trimmed records.
Reference/v1/reddit/subreddit/searchSubreddit search
Search post, comment and media sections together or choose the sections to retrieve, with independent continuation for each selected section.
Reference/v1/reddit/postPost details
Read a Reddit post by canonical post URL or mobile share link.
Reference/v1/reddit/post/commentsPost comments
Read a Reddit post and nested comments. Pass the returned continuation with the same post URL to retrieve another comment page.
Reference/v1/reddit/post/commentsPost comments with a POST body
Read a Reddit post and nested comments using JSON input, with a continuation token for further comment pages.
Reference/v1/reddit/post/transcriptPost transcript
Retrieve published Reddit video captions by post, share or v.redd.it video URL, retaining raw_vtt and parsed plain text.
Reference/v1/reddit/searchGlobal search
Search public posts or comments with ranking, optional trimmed records and after continuation.
Reference/v1/reddit/subreddits/searchCommunity discovery
Find public communities by topic with descriptions, member counts, images and pagination.
Reference/v1/reddit/profileUser profile
Retrieve a public Reddit user profile with identity, description, images, creation date and karma.
Reference/v1/reddit/profile/postsUser posts
Retrieve posts published by a public Reddit account with ranking and pagination.
Reference/v1/reddit/profile/commentsUser comments
Retrieve comments written by a public Reddit account with post and parent identities, ranking and pagination.
ReferenceQuick start
Create an API key on your account page, then call the public API. Values below are placeholders.
curl -X POST "https://api.scrapeatlas.com/v1/search" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"meal planning","subreddits":["MealPrepSunday"],"sort":"relevance","timeWindow":"month","maxPosts":10}'Coverage & limits
- Search defaults to 50 posts, maximum 50. Thread requests accept at most ten permalinks.
- Search deadline: 25 seconds. Thread deadline: 140 seconds. Readiness requires a configured proxy and Chromium.
- Routes, authentication header, environment names and port are stable.
- The worker is stateless. Product-specific research, billing, and presentation remain with the consumer.
- Expanded routes: 45-second deadline, at most six document/caption attempts including one shared transient retry, 8 MiB decoded responses, 50,000 JSON nodes and depth 32.
- RSS and caption reads negotiate gzip, deflate and Brotli; the same byte budget applies to the compressed stream and to the decoded body.
- Expanded routes share the existing admission queue. Browser operations use a fresh logged-out proxied Patchright context; captions and community/profile JSON reads use bounded proxied HTTPS.
- Public-card fields and ranking are returned as Reddit serves them.
| HTTP | failure.code | Meaning |
|---|---|---|
| 400 | invalid_request | The request failed validation. |
| 401 | invalid_request | The internal service secret is invalid. |
| 503 | upstream_error breaker_open | Proxy unavailable or thread retrieval temporarily paused. |
| 502 | upstream_error | Retrieval failed. |
| 504 | timeout | The deadline expired; available results are retained. |
| 200 | partial challenged | Inspect status and failure even when HTTP succeeds. |