Reddit Search
Search Reddit posts across the whole site — post id, title, body text, url, subreddit, author, score, upvote ratio, comment count, timestamp, and media — with pagination, as JSON. Costs 1 credit per request.
POST/api/v1/reddit/search
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/jsonquerystringrequiredSearch query (1-500 characters).
Example: best vector database
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.search(query="best vector database")
print(results)Response
"next_cursor": "eyJjYW5kaWRhdGVzX3JldHVybmVkIjoiMjUifQ",
"has_more": true
},
"response_time": 1142,
"credits_used": 1,
"credits_remaining": 4753
}