YouTube
Base URL:https://drain.lat/api/v1/youtube
GET /profile/:handle
GET /profile/:handle
Fetch a YouTube channel profile. Handle can be with or without
@.YouTube channel handle. Both
MrBeast and @MrBeast are valid.YouTube channel ID.
Channel handle (with @).
Channel display name.
Channel description.
Channel avatar URL.
Country code.
Channel creation date (ISO 8601).
Subscriber count.
Total view count.
Total number of videos.
Link to the YouTube channel.
Response
GET /profile/:handle/videos
GET /profile/:handle/videos
GET /channel/:channelId
GET /channel/:channelId
Fetch a YouTube channel by raw channel ID.
The YouTube channel ID (starts with
UC).Channel ID.
Channel handle (with @).
Channel display name.
Channel description.
Channel avatar URL.
Channel banner image URL.
Country code.
Channel creation date (ISO 8601).
Subscriber count.
Total view count.
Total number of videos.
Link to the YouTube channel.
Response
GET /video/:videoId
GET /video/:videoId
Get stats and metadata for a single YouTube video.
The YouTube video ID (e.g.
dQw4w9WgXcQ).Video ID.
Video title.
Video description.
Channel ID.
Channel name.
Publish date (ISO 8601).
Thumbnail image URL.
List of tags.
Duration in ISO 8601 format (e.g.
PT3M33S).View count.
Like count.
Comment count.
Link to the video.
Response
