API Direct
Endpoints
Reddit Posts

Reddit Posts

GET /v1/reddit/posts
Documentation

Search Reddit posts by keyword. Returns post title, URL, subreddit, author, publication date, and content snippet for each result. Supports multiple sort options including hot and top posts.

Cost
$0.003 per request
Free tier
50 requests/month

Parameters

query *
Search keyword (max 500 characters)
page
Page number, 1-5 (default: 1)
sort_by
Sort order: most_recent, relevance, hot, top (default: most_recent)
get_sentiment
Set to true to add AI emotion analysis (+$0.001/request)

Example Request

curl "https://apidirect.io/v1/reddit/posts?query=programming&page=1&sort_by=hot" \
  -H "X-API-Key: YOUR_API_KEY"

Example Response

{
  "posts": [
    {
      "title": "Reddit post title",
      "url": "https://reddit.com/r/programming/...",
      "date": "2024-01-15 14:30:00",
      "author": "redditor",
      "source": "Reddit",
      "domain": "reddit.com",
      "subreddit": "programming",
      "snippet": "Post content...",
      "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"
      }
    }
  ],
  "page": 1,
  "count": 20
}

Your Usage

Free tier this month
Loading...
Recent Activity