Skip to main content
GET
https://yoinkit.ai/api/v1/openclaw
/
api
/
v1
/
openclaw
/
reddit
/
subreddit
Reddit Subreddit Posts
curl --request GET \
  --url https://yoinkit.ai/api/v1/openclaw/api/v1/openclaw/reddit/subreddit \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "posts": [
      {}
    ]
  },
  "meta": {}
}

Parameters

subreddit
string
required
The subreddit name (without r/)
limit
integer
Maximum number of results to return (default: 10)
sort
string
Sort order: hot, new, top, rising (default: hot)

Response

success
boolean
Whether the request was successful
data
object
meta
object
Request metadata including credits_used and request_id

Example Request

curl -X GET "https://yoinkit.ai/api/v1/openclaw/reddit/subreddit?subreddit=AskReddit&limit=10&sort=hot" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Example Response

{
  "success": true,
  "data": {
    "posts": [
      {
        "subreddit": "AskReddit",
        "selftext": "",
        "title": "What are your thoughts on California's bill that would ban most law enforcement officers from wearing face masks while on duty?",
        "subreddit_name_prefixed": "r/AskReddit",
        "ups": 5000,
        "score": 5000,
        "num_comments": 250,
        "author": "redditor123"
      }
    ]
  },
  "meta": {
    "platform": "reddit",
    "endpoint": "subreddit",
    "credits_used": 1,
    "request_id": "req_abc123def456"
  }
}