Channel

Fetch channel metadata and recent uploads

client.channel(urlOrId)

Fetch channel metadata. Accepts a channel ID, @username, or any YouTube channel URL.

const channel = await client.channel('@MrBeast')

Response

PropertyTypeDescription
idstringChannel ID (UC...)
namestringChannel display name
usernamestringHandle (e.g. @mrbeast)
subscribersnumberRaw subscriber count
subscribersFmtstringFormatted subscribers (e.g. "478M")
totalViewsnumberTotal view count across all videos
totalViewsFmtstringFormatted total views
videoCountnumberNumber of public videos
countrystringChannel country code (e.g. "US")
thumbnailsobjectThumbnail map (default, medium, high)
uploadsPlaylistIdstringPlaylist ID for the channel's uploads

Accepted inputs

The urlOrId parameter accepts channel IDs (UCX6OQ3DkcsbYNE6H8uQQuVA), handles (@MrBeast), or full YouTube URLs.


client.channelVideos(urlOrId, options?)

Fetch recent uploads for a channel.

const videos = await client.channelVideos('@MrBeast', { limit: 3 })

Parameters

PropertyTypeDefaultDescription
limitnumber5Max videos to return (1–50)

Response

Returns an array of RecentVideo objects:

PropertyTypeDescription
idstringVideo ID
titlestringVideo title
viewsnumberRaw view count
viewsFmtstringFormatted views
likesnumberRaw like count
likesFmtstringFormatted likes
durationnumberDuration in seconds
durationFmtstringDuration as clock
thumbnailstringThumbnail URL
uploadAgestringRelative upload time (e.g. "1 hour ago")
publishedAtstringISO 8601 publish timestamp

On this page