Retrieve threads
Retrieve posts and nested comments from canonical HTTPS www.reddit.com post permalinks. Reaching a cap or leaving unloaded comments returns partial.
/v1/threadsx-api-keyHeaders
Get your API keyYour ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.
Must be application/json.
Required. 1–10 canonical HTTPS Reddit post permalinks, without query parameters or fragments.
up to 10 items
["https://www.reddit.com/r/example/comments/abc123/topic/"]1–100 comments per thread; defaults to 50.
default: 50 · 1 – 100
501–5 reply levels; defaults to 5.
default: 5 · 1 – 5
3Always included.
min 1 chars · max 128 chars
Always included.
Always included.
≥ 0
Always included.
≥ 0
Always included.
≥ 0
Always included.
≥ 0
Always included.
≥ 0
Always included.
min 1 chars · max 128 chars
Optional.
≥ 0
Always included.
Always included.
up to 10 items
Always included.
Always included.
min 1 chars · max 128 chars
Always included.
Always included.
min 1 chars · max 1000 chars
Always included.
max 2048 chars · absolute HTTPS URL
Always included.
max 4096 chars · absolute HTTPS URL
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
max 4000 chars
Always included.
one of: success, partial, challenged, failed
Always included.
up to 100 items
Always included.
min 1 chars · max 128 chars
Always included.
min 1 chars · max 128 chars
Always included.
Always included.
0 – 5
Always included.
Always included.
Always included.
Always included.
max 2000 chars
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. |