Social Media
Reddit Search
Search Reddit posts — title, url, subreddit, author, timestamp, and NSFW flag — with sorting and pagination. Costs 2 credits 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.
Example: best vector database
typeenum<string>Search posts or comments: posts, comments.
sortenum<string>new, relevance, hot, top, comments.
cursorstringPagination cursor from a previous response.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.reddit.search("best vector database")
print(results)Response
"searchQuery": "best vector database",
"totalResults": 7,
"nextCursor": "eyJjYW5kaWRhdGVzX3JldHVybmVkIjoie1wic2VjdGlvbl8xX3BpcGVsaW5lXzBfZ2xvYmFsX21vZGlmaWVyc1wiOlwiMlwiLFwic2VjdGlvbl8xX3BpcGVsaW5lXzFfbG9jYWxfbW9kaWZpZXJzXCI6XCIyXCIs…",
},
"response_time": 8346,
"credits_used": 2,
"credits_remaining": 4753
}