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.
Twitch
Base URL: https://drain.lat/api/v1/twitch
All endpoints require the x-api-key header.
GET /profile/:username
Fetch a Twitch channel profile including live status.
Endpoint
GET /api/v1/twitch/profile/:username
curl "https://drain.lat/api/v1/twitch/profile/ninja" \
-H "x-api-key: YOUR_API_KEY"
Response (offline)
{
"username": "ninja",
"displayName": "Ninja",
"description": "Professional gamer and streamer.",
"avatarUrl": "https://static-cdn.jtvnw.net/...",
"followers": "19.2M followers",
"isLive": false,
"viewerCount": null,
"streamTitle": null,
"category": null,
"socialLinks": [
{ "label": "Twitter", "url": "https://twitter.com/ninja" }
],
"profileUrl": "https://www.twitch.tv/ninja",
"scrapedAt": "2026-05-05T12:00:00.000Z"
}
Response (live)
{
"username": "ninja",
"displayName": "Ninja",
"description": "Professional gamer and streamer.",
"avatarUrl": "https://static-cdn.jtvnw.net/...",
"followers": "19.2M followers",
"isLive": true,
"viewerCount": 42300,
"streamTitle": "RANKED GRIND - !sub",
"category": "Fortnite",
"socialLinks": [
{ "label": "Twitter", "url": "https://twitter.com/ninja" }
],
"profileUrl": "https://www.twitch.tv/ninja",
"scrapedAt": "2026-05-05T12:00:00.000Z"
}
When the channel is live, isLive is true and viewerCount, streamTitle, and category are populated. When offline, those fields return null.