Reddit Comment Search
Search Reddit comments by keyword - comment text, author, score, date and permalink, plus the post and subreddit each was left on - with sort and pagination, as JSON.
POST/api/v1/reddit/search/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/jsonquerystringrequiredSearch keywords, up to 500 characters.
Example: web scraping api
sortenum<string>default:RELEVANCEResult order.
Example: NEW
RELEVANCE— Best match.HOT— Currently active.TOP— Highest score.NEW— Newest first.
cursorstringPagination cursor from a previous response (next_cursor). Keep passing it while has_more is true.
Notes
Comment search finds the replies where people name tools and complain, which post search misses. About 10 results per page; next_cursor moves forward through new results on every page.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.reddit.search_comments(query="web scraping api")
print(results)Response
"next_cursor": "eyJjYW5kaWRhdGVzX3JldHVybmVkIjoie1wic2VjdGlvbl8xX3BpcGVsaW5lXzBfZ2xvYmFsX21vZGlmaWVyc1wiOlwiMVwiLFwic2VjdGlvbl8xX3BpcGVsaW5lXzFfbG9jYWxfbW9kaWZpZXJzXCI6XCIxXCIsXCJzZWN0aW9uXzJfcGlwZWxpbmVfMV9jb21tZW50X3NlYXJjaFwiOlwiMTBcIn0iLCJleHBlcmllbmNlX3NlbGVjdGlvbiI6ImNvbW1lbnQiLCJleHBlcmllbmNlX3ZlcnNpb24iOiJkZWZhdWx0Iiwic2VjdGlvbl8yX3BpcGVsaW5lXzFfY29tbWVudF9zZWFyY2giOiIxMCJ9",
"has_more": true
},
"response_time": 1317
}