Social Media
Reddit User Posts
List the posts a redditor has submitted — post id, title, subreddit, author, score, comment count, url, timestamp, NSFW flag, and thumbnail — with sorting and pagination, as JSON. Costs 1 credit per request.
POST/api/v1/reddit/user/posts
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 posts first.HOT— Currently active posts.TOP— Highest-scoring posts.BEST— Reddit's blended best ranking.CONTROVERSIAL— Most divisive posts 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_posts(username="spez", sort="NEW")
print(results)Response
"next_cursor": "dDNfMXY1eHl6OQ",
"has_more": true
},
"response_time": 1043,
"credits_used": 1,
"credits_remaining": 4745
}