Social Media
Reddit Popular
Fetch the site-wide r/popular feed — the posts trending across all of Reddit right now, each with post id, title, subreddit, author, score, comment count, url, timestamp, NSFW flag, and thumbnail — with pagination, as JSON. Costs 1 credit per request.
POST/api/v1/reddit/popular
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/jsoncursorstringPagination 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.popular()
print(results)Response
"next_cursor": "dDNfMXY3cG9wMQ",
"has_more": true
},
"response_time": 1176,
"credits_used": 1,
"credits_remaining": 4743
}