Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 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 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-09T04:09:41.000Z (about 1 year ago)
- Last Synced: 2024-09-28T03:21:15.298Z (about 2 months ago)
- Topics: api, api-wrapper, youtube, youtube-api, youtube-channel, youtube-playlist, youtube-search, youtube-video
- Language: TypeScript
- Homepage:
- Size: 238 KB
- Stars: 111
- Watchers: 6
- Forks: 21
- Open Issues: 3
-
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);
```