Social Media
Reddit Post Comments
List the top-level comments on a Reddit post — comment id, text, author, score, timestamp, depth, and a reply cursor — with sorting and pagination, as JSON. Use the reply_cursor with the Comment Replies endpoint to expand a thread. Costs 1 credit per request.
POST/api/v1/reddit/post/comments
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.
Example: t3_1v6ngaf
sortenum<string>default:TOPComment sort order.
TOP— Highest-scoring comments first.BEST— Reddit's blended best ranking.HOT— Currently active comments.NEW— Most recent comments first.CONTROVERSIAL— Most divisive comments first.
cursorstringPagination cursor from a previous response (next_cursor). Keep passing it while has_more is true.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.reddit.post_comments(post_id="t3_1v6ngaf", sort="TOP")
print(results)Response
"next_cursor": "eyJhZnRlciI6InQxX2xtM2s5eDIifQ",
"has_more": true
},
"response_time": 1078,
"credits_used": 1,
"credits_remaining": 4750
}