Skip to content
omniflaPublic

About

Unofficial YouTube InnerTube client

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ytube: Unofficial YouTube InnerTube client

Search YouTube and fetch videos, channels, and playlists through the unofficial InnerTube API, with optional cookie sessions and client identities.

Get started →


ytube is an unofficial YouTube InnerTube client for JavaScript and TypeScript. It talks to the same internal endpoints YouTube's own clients use, behind a small namespaced API.

Why ytube?

YouTube's official Data API is quota-limited and doesn't expose everything the apps can see. ytube gives you search, video and channel details, playlists, continuations, comments and more through one typed interface.

InnerTube is undocumented and can change without notice, so endpoints and response shapes may break. Some namespaces (music, Studio, live chat, notifications, comments) are early explorations.

Quick start

bun add ytube
import YouTube from "ytube";

const youtube = new YouTube();

const results = await youtube.search.videos("Tyler, The Creator");
console.log(results.items);

const video = await youtube.videos.get("VIDEO_ID");
console.log(video.title, video.author);

const channel = await youtube.channels.get("CHANNEL_ID");
const playlist = await youtube.playlists.get("PLAYLIST_ID");

Read the docs →


not affiliated with Google or YouTube.
released under the AGPL-3.0 License.

About

Unofficial YouTube InnerTube client

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages