Social Media
Reddit Comment Replies
Expand the replies under a specific Reddit comment — comment id, text, author, score, timestamp, depth, and a further reply cursor — with pagination, as JSON. Pass the reply_cursor returned by the Post Comments endpoint. Costs 1 credit per request.
POST/api/v1/reddit/post/comments/replies
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonpost_idstringrequiredPost fullname (t3_...) or bare id the comment belongs to.
Example: t3_1v6ngaf
cursorstringrequiredThe reply_cursor from a comment returned by the Post Comments endpoint.
Example: eyJhZnRlciI6InQxX2xtM2s5eDIiLCJzb3J0IjoiVE9QIn0
sortenum<string>default:TOPReply sort order.
TOP— Highest-scoring replies first.BEST— Reddit's blended best ranking.HOT— Currently active replies.NEW— Most recent replies first.CONTROVERSIAL— Most divisive replies first.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.reddit.comment_replies(
post_id="t3_1v6ngaf",
cursor="eyJhZnRlciI6InQxX2xtM2s5eDIiLCJzb3J0IjoiVE9QIn0",
)
print(results)Response
"next_cursor": "eyJhZnRlciI6InQxX2xtM3BxN2EifQ",
"has_more": false
},
"response_time": 897,
"credits_used": 1,
"credits_remaining": 4749
}