Subreddit posts
Retrieve public subreddit posts, newest first by default, with ranking, timeframe, publication-time filters, after continuation and optional trimmed records.
/v1/reddit/subredditx-api-keyHeaders
Get your API keyYour ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.
Required.
Examplenew (default), hot, best, top or rising.
one of: best, hot, new, top, rising · default: "new"
newOptional.
one of: all, day, week, month, year · default: "all"
allEarliest publication time to include, ISO 8601 or Unix seconds. With sort=new, pagination ends once posts are older than since.
Publication time to stop before, ISO 8601 or Unix seconds; later than since.
Optional.
max 5000 chars
Optional.
default: false
falseOptional compatibility value: 1d, 3d, 7d, 14d or 30d.
one of: 1d, 3d, 7d, 14d, 30d
Always included.
order is newest_first for sort=new and ranked otherwise. Inspect complete and reasons on every response.
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 100 items
Always included.
Always included.
Always included.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Always included.
Optional.
Optional.
Optional.
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. |