API Direct
Endpoints
Reddit Comments

Reddit Comments

GET /v1/reddit/comments

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.

Cost
$0.003 per page
Free tier
50 requests/month

Parameters

query *
Search keyword (max 500 characters)
pages
Number of pages to fetch, 1-5 (default: 1)
sort_by
Sort order: most_recent, relevance, top (default: most_recent)

Example Request

curl "https://api.apidirect.io/v1/reddit/comments?query=python&pages=2&sort_by=relevance" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example Response

{
  "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
}

Your Usage

Free tier this month
Loading...
Recent Activity