Skip to main content

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.

drain.lat API

drain.lat is a multi-platform data API that lets you pull public profile data, stats, and content from dozens of sources with a single authenticated request. No scraping infrastructure needed - just send a request and get clean JSON back.

Base URL

https://drain.lat
All endpoints are prefixed with /api/v1/.

Authentication

Every request requires an x-api-key header. You can get a key by joining the Discord and asking in the #get-key channel.
x-api-key: YOUR_API_KEY
Never expose your API key in client-side code or public repositories. Treat it like a password.
Demo key for testing: demo-key-12345 The demo key is rate limited and intended for trying out endpoints only.

Error Format

All errors return a JSON object with a single error field.
{
  "error": "message here"
}
Common HTTP status codes:
CodeMeaning
200Success
400Bad request - missing or invalid parameters
401Unauthorized - missing or invalid API key
404Not found - user or resource doesn’t exist
429Rate limited - slow down your requests
500Server error - something went wrong on our end

Rate Limits

Rate limits vary by endpoint and key tier. If you hit a 429, back off and retry after a few seconds. High-volume use cases should contact us on Discord for a higher-tier key.

Status Endpoint

Check the health of the API at any time - no auth required.
GET /api/v1/status
Returns current status, uptime, memory usage, active platforms, and cache stats.
{
  "status": "ok",
  "uptime": 99.98,
  "memory": "312 MB",
  "platforms": ["roblox", "github", "twitter", "tiktok", "instagram", "snapchat", "twitch", "steam", "youtube", "valorant", "crypto", "screenshot"],
  "cacheEntries": 1482
}

Supported Platforms

Roblox

Profile, games, friends

GitHub

Profile, repos, followers, orgs

Twitter / X

Profile, stats, search, bulk

TikTok

Profile data

Instagram

Profile, posts

Snapchat

Public profile

Twitch

Channel + live status

Steam

Profile, game library

YouTube

Channel, videos

Valorant

Account, MMR, matches

Crypto

Prices, markets, charts, trends

Screenshot

Webpage screenshots