Documentation Index
Fetch the complete documentation index at: https://docs.drain.lat/llms.txt
Use this file to discover all available pages before exploring further.
Reddit
Base URL: https://drain.lat/api/v1/reddit
All endpoints require the x-api-key header.
GET /profile/:username
Fetch a public Reddit user profile.
Endpoint
GET /api/v1/reddit/profile/:username
curl "https://drain.lat/api/v1/reddit/profile/spez" \
-H "x-api-key: YOUR_API_KEY"
Response
{
"username": "spez",
"bio": "CEO of Reddit.",
"avatarUrl": "https://styles.redditmedia.com/t5_...",
"karma": {
"post": 142300,
"comment": 98400,
"total": 240700,
"awardee": 12400
},
"isPremium": true,
"isMod": true,
"created": "2005-06-06T04:00:00.000Z",
"profileUrl": "https://www.reddit.com/user/spez",
"scrapedAt": "2026-05-05T12:00:00.000Z"
}
GET /profile/:username/posts
Get the last 10 posts from a Reddit user.
Endpoint
GET /api/v1/reddit/profile/:username/posts
curl "https://drain.lat/api/v1/reddit/profile/spez/posts" \
-H "x-api-key: YOUR_API_KEY"
Response
{
"username": "spez",
"posts": [
{
"id": "t3_abc123",
"title": "Addressing your questions about the API changes",
"subreddit": "reddit",
"score": 48200,
"upvoteRatio": 0.81,
"comments": 14300,
"thumbnailUrl": "https://b.thumbs.redditmedia.com/...",
"url": "https://www.reddit.com/r/reddit/comments/abc123/",
"createdAt": "2026-04-20T18:00:00.000Z"
},
{
"id": "t3_def456",
"title": "Reddit's continued investment in mod tools",
"subreddit": "modnews",
"score": 12400,
"upvoteRatio": 0.74,
"comments": 3200,
"thumbnailUrl": null,
"url": "https://www.reddit.com/r/modnews/comments/def456/",
"createdAt": "2026-03-15T14:00:00.000Z"
}
],
"total": 10,
"scrapedAt": "2026-05-05T12:00:00.000Z"
}