Search Reddit comments by keyword. Returns comment content, parent post URL, subreddit, author, and publication date for each result. Supports fetching multiple pages of results in a single API call.
curl "https://api.apidirect.io/v1/reddit/comments?query=python&pages=2&sort_by=relevance" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"posts": [
{
"title": "u/username on r/python",
"url": "https://reddit.com/r/python/comments/...",
"date": "2024-01-15 14:30:00",
"author": "commenter",
"source": "Reddit (Comment)",
"subreddit": "python",
"snippet": "Comment content..."
}
],
"pages": 2,
"count": 50
}