Search for posts on Reddit by keyword
/v1/reddit/searchq required
Search query (e.g., "nodejs", "web scraping")
limit optional
Number of results to return (default: 10, max: 100)
{
"results": [
{
"id": "1k6i5ah",
"title": "What is the most upvoted post on Reddit?",
"url": "https://www.reddit.com/r/NoStupidQuestions/comments/1k6i5ah/what_is_the_most_upvoted_post_on_reddit/",
"author": "example_user",
"subreddit": "NoStupidQuestions",
"score": 12500,
"comments_count": 342,
"created_at": "2024-01-15T10:30:00Z"
}
],
"total_results": 1250
}curl -X GET "https://api.webscrapingapis.com/v1/reddit/search?q=upvoted&limit=25" \
-H "x-api-key: YOUR_API_KEY"