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.
YouTube
Base URL: https://drain.lat/api/v1/youtube
All endpoints require the x-api-key header.
GET /profile/:handle
Fetch a YouTube channel profile. The handle can be with or without the @ symbol.
Endpoint
GET /api/v1/youtube/profile/:handle
curl "https://drain.lat/api/v1/youtube/profile/MrBeast" \
-H "x-api-key: YOUR_API_KEY"
Response
{
"id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"username": "@MrBeast",
"displayName": "MrBeast",
"description": "SUBSCRIBE FOR A COOKIE",
"avatarUrl": "https://yt3.googleusercontent.com/...",
"country": "US",
"created": "2012-02-19T21:23:10Z",
"subscribers": 340000000,
"totalViews": 65000000000,
"videoCount": 812,
"profileUrl": "https://www.youtube.com/@MrBeast",
"scrapedAt": "2026-05-05T12:00:00.000Z"
}
Both MrBeast and @MrBeast are valid handle formats.
GET /profile/:handle/videos
Get the last 10 uploaded videos from a YouTube channel.
Endpoint
GET /api/v1/youtube/profile/:handle/videos
curl "https://drain.lat/api/v1/youtube/profile/MrBeast/videos" \
-H "x-api-key: YOUR_API_KEY"
Response
{
"handle": "MrBeast",
"videos": [
{
"id": "dQw4w9WgXcQ",
"title": "I Spent 7 Days Buried Alive",
"description": "This was insane...",
"thumbnailUrl": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
"publishedAt": "2026-04-15T18:00:00Z",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
},
{
"id": "abc123xyz",
"title": "$1 vs $1,000,000 Hotel Room",
"description": "We stayed in the most expensive hotel...",
"thumbnailUrl": "https://i.ytimg.com/vi/abc123xyz/hqdefault.jpg",
"publishedAt": "2026-03-28T18:00:00Z",
"url": "https://www.youtube.com/watch?v=abc123xyz"
}
],
"total": 10,
"scrapedAt": "2026-05-05T12:00:00.000Z"
}