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
@.string
required
YouTube channel handle. Both
MrBeast and @MrBeast are valid.string
YouTube channel ID.
string
Channel handle (with @).
string
Channel display name.
string
Channel description.
string
Channel avatar URL.
string
Country code.
string
Channel creation date (ISO 8601).
number
Subscriber count.
number
Total view count.
number
Total number of videos.
string
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.
string
required
The YouTube channel ID (starts with
UC).string
Channel ID.
string
Channel handle (with @).
string
Channel display name.
string
Channel description.
string
Channel avatar URL.
string
Channel banner image URL.
string
Country code.
string
Channel creation date (ISO 8601).
number
Subscriber count.
number
Total view count.
number
Total number of videos.
string
Link to the YouTube channel.
Response
GET /video/:videoId
GET /video/:videoId
Get stats and metadata for a single YouTube video.
string
required
The YouTube video ID (e.g.
dQw4w9WgXcQ).string
Video ID.
string
Video title.
string
Video description.
string
Channel ID.
string
Channel name.
string
Publish date (ISO 8601).
string
Thumbnail image URL.
string[]
List of tags.
string
Duration in ISO 8601 format (e.g.
PT3M33S).number
View count.
number
Like count.
number
Comment count.
string
Link to the video.
Response
