https://github.com/baptistearno/node-youtube-music
Unofficial YouTube Music API for Node.js
https://github.com/baptistearno/node-youtube-music
api api-wrapper youtube youtube-api youtube-channel youtube-playlist youtube-search youtube-video
Last synced: 2 months ago
JSON representation
Unofficial YouTube Music API for Node.js
- Host: GitHub
- URL: https://github.com/baptistearno/node-youtube-music
- Owner: baptisteArno
- License: gpl-3.0
- Archived: true
- Created: 2021-01-01T10:58:48.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-09-09T04:09:41.000Z (about 2 years ago)
- Last Synced: 2025-09-20T05:53:54.375Z (3 months ago)
- Topics: api, api-wrapper, youtube, youtube-api, youtube-channel, youtube-playlist, youtube-search, youtube-video
- Language: TypeScript
- Homepage:
- Size: 238 KB
- Stars: 118
- Watchers: 6
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

Unofficial YouTube Music API for Node.js
## Features
- [x] Search
- [x] Musics
- [x] Playlists
- [x] Albums
- [x] Artists
- [x] List musics from playlist
- [x] List musics from album
- [x] List albums from artist
- [x] List musics from artist
- [x] Get suggestions from music
- [ ] Playlist management (create, push, remove)
- [ ] Library management
## Get started
```shell
npm install node-youtube-music
```
or
```shell
yarn add node-youtube-music
```
## How to use
```ts
import {
searchMusics,
searchAlbums,
searchPlaylists,
getSuggestions,
listMusicsFromAlbum,
listMusicsFromPlaylist,
searchArtists,
getArtist,
} from 'node-youtube-music';
const musics = await searchMusics('Never gonna give you up');
const albums = await searchAlbums('Human after all');
const playlists = await searchPlaylists('Jazz');
const suggestions = await getSuggestions(musics[0].youtubeId);
const albumSongs = await listMusicsFromAlbum(albums[0].albumId);
const playlistSongs = await listMusicsFromPlaylist(playlists[0].playlistId);
const artists = await searchArtists('Daft Punk');
const artist = await getArtist(artists[0].artistId);
```