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.
Quickstart
1. Get an API Key
drain.lat keys are distributed through Discord.
Go to #get-key
Find the #get-key channel and follow the instructions there to request your key.
Copy your key
Once issued, copy your key and store it somewhere safe. You won’t be shown it again.Keep your API key private. Don’t commit it to git or paste it in public channels.
2. Make Your First Request
Let’s fetch a GitHub profile to confirm everything is working.
curl "https://drain.lat/api/v1/github/profile/torvalds" \
-H "x-api-key: YOUR_API_KEY"
Response:
{
"id": 1024025,
"username": "torvalds",
"displayName": "Linus Torvalds",
"bio": "Just for fun",
"company": "Linux Foundation",
"location": "Portland, OR",
"followers": 234000,
"publicRepos": 8,
"profileUrl": "https://github.com/torvalds",
"scrapedAt": "2026-05-05T12:00:00.000Z"
}
3. Explore the API
Every platform has its own set of endpoints. Browse the sidebar to find what you need.
Roblox
Profile, games, friends
GitHub
Profile, repos, followers, orgs
Twitter / X
Profile, stats, search, bulk lookup
Crypto
Prices, markets, charts, movers
Authentication Reference
All requests use the x-api-key header:
GET /api/v1/github/profile/torvalds HTTP/1.1
Host: drain.lat
x-api-key: YOUR_API_KEY
If your key is missing or invalid, you’ll get:
{
"error": "Invalid or missing API key"
}