Subreddit posts
Retrieve public subreddit posts with ranking, timeframe, 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.
ExampleOptional.
one of: best, hot, new, top, rising · default: "hot"
hotOptional.
one of: all, day, week, month, year · default: "all"
allOptional.
max 5000 chars
Optional.
default: false
falseOptional compatibility value: 1d, 3d, 7d, 14d or 30d.
one of: 1d, 3d, 7d, 14d, 30d
Always included.
Inspect complete and reasons on every response. Source failures never masquerade as empty success.
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 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. |