API Direct
Endpoints
Reddit Posts

Reddit Posts

GET /v1/reddit/posts

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)

Example Request

curl "https://api.apidirect.io/v1/reddit/posts?query=programming&page=1&sort_by=hot" \
  -H "Authorization: Bearer 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",
      "subreddit": "programming",
      "snippet": "Post content..."
    }
  ],
  "page": 1,
  "count": 20
}

Your Usage

Free tier this month
Loading...
Recent Activity