Subreddit search
Search post, comment and media sections together or choose the sections to retrieve, with independent continuation for each selected section.
/v1/reddit/subreddit/searchx-api-keyHeaders
Get your API keyYour ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.
Required.
ExampleOptional.
default: "" · max 500 chars
planningOptional.
one of: relevance, hot, top, new, comments · default: "relevance"
relevanceOptional.
one of: all, year, month, week, day, hour · default: "all"
allOptional.
min 1 chars · max 50000 chars
Comma-separated selection: posts, comments, media, posts,comments, posts,media, comments,media, or posts,comments,media (default). Keep the same selection when continuing.
one of: posts, comments, media, posts,comments, posts,media, comments,media, posts,comments,media · default: "posts,comments,media"
posts,comments,mediaAlways included.
Omitted sections are identified by posts_omitted, comments_omitted or media_omitted in coverage.reasons.
Always included.
Always included.
Always included.
Always included.
≥ 0
Always included.
≥ 0
Always included.
≥ 0
Always included.
≥ 0
Always included.
≥ 0
Always included.
≥ 0
Always included.
Always included.
success, partial, challenged or failed. error contains a sanitized machine-readable reason on failure.
one of: success, partial
Always included.
up to 50 items
Always included.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Always included.
up to 50 items
Always included.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Always included.
up to 50 items
Always included.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Always included.
No fields match.
HTTP 200 returns the success variant. Check status: partial means usable data with warnings, and failed or challenged requests carry a failure object described in Errors & responses.
| 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. |