Fork adds getCaptionTrackContent() https://ytjs.dev
Find a file
1G-N15 50cdd15d3f
Some checks failed
lint / lint (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (push) Has been cancelled
feat(core): Add getCaptionTrackContent (MediaInfo)
Adapted from code written by @izakfilmalter and @seomikewaltman.
2026-01-06 14:16:24 +08:00
.github chore(deps): change Dependabot schedule to weekly 2025-10-13 14:02:16 -03:00
bundle refactor!: Drop support for CommonJS 2025-07-18 12:01:31 -03:00
dev-scripts build(gen-parser-map): Replace glob with built-in readdirSync (#1065) 2025-10-12 13:02:47 -03:00
docs chore: regen docs 2025-10-12 12:09:24 -03:00
examples chore(deps-dev): bump vite in /examples/browser/web (#1035) 2025-10-12 11:22:58 -03:00
protos feat(protos): Add playlistTitle field to NextParams (#1040) 2025-09-17 19:50:20 -03:00
src feat(core): Add getCaptionTrackContent (MediaInfo) 2026-01-06 14:16:24 +08:00
tests test(ytmusic): Update applyFilter test to use a specific value 2025-10-12 08:59:42 -03:00
.editorconfig refactor: remove confusing code practices (#87) 2022-07-01 19:37:59 -03:00
.gitignore feat(parser): Add AnimatedThumbnailOverlayView (#903) 2025-02-17 11:41:17 -03:00
.npmignore chore: add proper documentation (#763) 2024-09-23 17:32:50 -03:00
CHANGELOG.md chore(main): release 16.0.1 (#1074) 2025-10-16 08:04:53 -03:00
COLLABORATORS.md chore: update package.json [skip ci] 2023-08-12 23:52:16 -03:00
CONTRIBUTING.md chore: update node target to 20 & undici to latest 6.x version (#985) 2025-07-18 08:26:38 -03:00
deno.ts refactor!: replace unnecessary classes with pure functions (#468) 2023-08-18 06:49:58 -03:00
eslint.config.js refactor(Player)!: Use AST-based JS extraction with side-effect safe code emission (#1052) 2025-10-12 09:08:51 -03:00
LICENSE chore: fix typos 2022-04-13 01:51:03 -03:00
package-lock.json chore(main): release 16.0.1 (#1074) 2025-10-16 08:04:53 -03:00
package.json chore(main): release 16.0.1 (#1074) 2025-10-16 08:04:53 -03:00
README.md chore(readme): update example 2025-07-18 12:13:40 -03:00
tsconfig.json refactor: Import version, bugs URL and repo URL directly from package.json (#1004) 2025-09-11 15:49:48 -03:00
typedoc.json chore: add proper documentation (#763) 2024-09-23 17:32:50 -03:00


YouTube.js Logo

A JavaScript client for YouTube's private API

Discord CI NPM Version Downloads Codefactor

YouTube.js is a JavaScript client for YouTube's private API, known as "InnerTube". It allows you to interact with YouTube programmatically, providing access to videos, comments, live chats, streaming data and more. It works seamlessly across Node.js, Deno, and modern browsers.

Installation

Before installing, make sure your environment meets the prerequisites.

# NPM
npm install youtubei.js@latest

# Yarn
yarn add youtubei.js@latest

# Git (edge version)
npm install github:LuanRT/YouTube.js

# Deno
deno add npm:youtubei.js@latest

Deno (deprecated):

import { Innertube } from 'https://deno.land/x/youtubei/deno.ts';

Basic Usage

import { Innertube } from 'youtubei.js';
const innertube = await Innertube.create(/* options */);

For detailed usage, check out the YouTube.js Guide and API Documentation.

Contributing

We welcome all contributions, issues and feature requests, whether small or large. If you want to contribute, feel free to check out our issues page and our guidelines.

Contributors

Disclaimer

This project is not affiliated with, endorsed, or sponsored by YouTube or any of its affiliates or subsidiaries. All trademarks, logos, and brand names used in this project are the property of their respective owners and are used solely to describe the services provided.

As such, any usage of trademarks to refer to such services is considered nominative use. If you have any questions or concerns, please contact me.

License

Distributed under the MIT License.

(back to top)