Subreddit search
Search post, comment and media sections together or choose the sections to retrieve, with independent continuation for each selected section and optional exact matching.
/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,mediaEarliest publication time to include, as ISO 8601 (2026-09-27T09:00:00Z) or Unix seconds. With sort=new, pagination ends once results are older than since.
Publication time to stop before, as ISO 8601 or Unix seconds; must be later than since.
true keeps only results whose own text contains every query word or "quoted phrase" as a whole word (case- and accent-insensitive; A OR B and -word are honoured); defaults to false.
default: false
Always included.
order is relevance, newest_first for sort=new or ranked. Omitted sections are identified by posts_omitted, comments_omitted or media_omitted in coverage.reasons.
Always included.
Always included.
Optional.
one of: newest_first, oldest_first, ranked, relevance, source_order
Optional.
Optional.
Optional.
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. |