Parameters
Subreddit name (e.g., AskReddit)
Sort by Available options: hot, new, top, rising
Pagination token. Get ‘after’ from previous response.
Example Request
curl -X GET "https://yoinkit.ai/api/v1/openclaw/reddit/subreddit?subreddit=AskReddit" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Example Response
{
"success": true,
"data": {
"posts": [
{
"subreddit": "AskReddit",
"title": "What are your thoughts on...",
"subreddit_name_prefixed": "r/AskReddit",
"ups": 12606,
"upvote_ratio": 0.93,
"score": 12606,
"num_comments": 5678,
"name": "t3_1ldr6b9"
}
// ... more posts
]
},
"meta": {
"platform": "reddit",
"endpoint": "subreddit",
"request_id": "req_abc123"
}
}
Response data is returned directly from the Yoinkit API.