API Direct
Endpoints
Reddit Comments

Reddit Comments

GET /v1/reddit/comments
Documentation

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)
get_sentiment
Set to true to add AI emotion analysis (+$0.001/page)

Example Request

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

Example Response

{
  "posts": [
    {
      "title": "commenter on python",
      "url": "https://reddit.com/r/python/comments/...",
      "date": "2024-01-15 14:30:00",
      "author": "commenter",
      "source": "Reddit (Comment)",
      "domain": "reddit.com",
      "subreddit": "python",
      "snippet": "Comment content...",
      "type": "comment",
      "sentiment": {
        "emotions": {
          "joy": 40,
          "trust": 55,
          "fear": 0,
          "surprise": 10,
          "sadness": 0,
          "disgust": 0,
          "anger": 0,
          "anticipation": 30
        },
        "dominant_emotion": "trust",
        "emotional_intensity": 5,
        "polarity": "positive"
      }
    }
  ],
  "pages": 2,
  "count": 50
}

Your Usage

Free tier this month
Loading...
Recent Activity