Skip to content
scrapeatlas.Dashboard

User comments

Try in Playground

Retrieve comments written by a public Reddit account with post and parent identities, ranking and pagination.

GET/v1/reddit/profile/commentsx-api-key
x-api-keystringrequiredheader

Your ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.

Query parameters
6
handlestringrequiredquery

Reddit username without the u/ prefix.

Examplesample_user
sortenumdefault: "new"query

new, hot or top; defaults to new.

one of: new, hot, top · default: "new"

Examplenew
timeframeenumdefault: "all"query

all, day, week, month or year; defaults to all.

one of: all, day, week, month, year · default: "all"

Exampleall
limitintegerdefault: 25query

Number of records per page, 1–50; defaults to 25.

default: 25 · 1 – 50

Example25
afterstringquery

Return the signed after token with the same inputs to continue.

max 5000 chars

trimboolean | enumdefault: falsequery

Return the established compact record projection.

default: false

Examplefalse
Response fields
31
requestIdstring

Always included.

Read complete and reasons alongside the response status.

coverage.completeboolean

Always included.

coverage.reasonsstring[]

Always included.

Always included.

accounting.httpRequestsinteger

Always included.

≥ 0

accounting.proxyBytesnumber

Always included.

≥ 0

accounting.durationMsnumber

Always included.

≥ 0

accounting.pageLoadsinteger

Always included.

≥ 0

accounting.challengeCountinteger

Always included.

≥ 0

accounting.rssRequestsinteger

Always included.

≥ 0

accounting.proxySessionIdstring

Always included.

successboolean

Always included.

statusenum

Always included.

one of: success, partial

Always included.

up to 50 items

comments.idstring

Always included.

comments.bodystring

Always included.

comments.parent_idstringnullable

Always included.

comments.namestringoptional

Optional.

comments.link_idstringnullableoptional

Optional.

comments.authorstringnullableoptional

Optional.

comments.author_fullnamestringnullableoptional

Optional.

comments.body_htmlstringnullableoptional

Optional.

comments.scorenumbernullableoptional

Optional.

comments.upsnumbernullableoptional

Optional.

comments.downsnumbernullableoptional

Optional.

comments.created_utcnumbernullableoptional

Optional.

comments.created_at_isostringnullable

Always included.

comments.permalinkstringnullableoptional

Optional.

comments.urlstringnullableoptional

Optional.

afterstringnullable

Return the signed after token with the same inputs to continue.

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.

Error codes
6
HTTPfailure.codeMeaning
400invalid_requestThe request failed validation.
401invalid_requestThe internal service secret is invalid.
503upstream_error breaker_openProxy unavailable or thread retrieval temporarily paused.
502upstream_errorRetrieval failed.
504timeoutThe deadline expired; available results are retained.
200partial challengedInspect status and failure even when HTTP succeeds.