Social Media
Reddit User Comments
List the comments a redditor has left — comment id, text, author, the post it was left on (id and title), score, and timestamp — with sorting and pagination, as JSON. Costs 1 credit per request.
POST/api/v1/reddit/user/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/jsonusernamestringrequiredReddit username, without the u/ prefix (1-100 characters).
Example: spez
sortenum<string>default:NEWSort order.
NEW— Most recent comments first.HOT— Currently active comments.TOP— Highest-scoring comments.BEST— Reddit's blended best ranking.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.user_comments(username="spez", sort="NEW")
print(results)Response
"next_cursor": "dDFfbG05enp6MQ",
"has_more": true
},
"response_time": 981,
"credits_used": 1,
"credits_remaining": 4744
}