Ytmusicapi

Unofficial API for YouTube Music
Alternatives To Ytmusicapi
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Youtube Dl120,5891,427365a day ago955December 16, 20214,729unlicensePython
Command-line program to download videos from YouTube.com and other video sites
Newpipe23,871
2 days ago1,233gpl-3.0Java
A libre lightweight streaming front-end for Android.
Spotify Downloader11,674223 days ago64June 27, 202210mitPython
Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
Nuclear10,170
12 days ago164agpl-3.0TypeScript
Streaming music player that finds free music for you
Spotiflyer8,537
7 days ago55gpl-3.0Kotlin
Kotlin Multiplatform Music Downloader, Supports Spotify / Gaana / Youtube Music / Jio Saavn / SoundCloud.
Youtubedownloader4,492
2 days ago2otherC#
Downloads videos and playlists from YouTube
Awesome Youtubers4,048
2 months agocc0-1.0Markdown
An awesome list of awesome YouTubers that teach about technology. Tutorials about web development, computer science, machine learning, game development, cybersecurity, and more.
Musicbot3,984
14 days ago175apache-2.0Java
🎶 A Discord music bot that's easy to set up and run yourself!
Yt Dlc2,50562 years ago20November 11, 2020123unlicensePython
media downloader and library for various sites.
Youtubeexplode2,36933172 days ago119August 08, 20222otherC#
Abstraction layer over YouTube's internal API
Alternatives To Ytmusicapi
Select To Compare


Alternative Project Comparisons
Readme

ytmusicapi: Unofficial API for YouTube Music

PyPI Downloads Ask questions at https://gitter.im/sigma67/ytmusicapi Code coverage Latest release Commits since latest release

ytmusicapi is a Python 3 library to send requests to the YouTube Music API. It emulates YouTube Music web client requests using the user's cookie data for authentication.

Features

Browsing:
  • search (including all filters) and suggestions
  • get artist information and releases (songs, videos, albums, singles, related artists)
  • get user information (videos, playlists)
  • get albums
  • get song metadata
  • get watch playlists (next songs when you press play/radio/shuffle in YouTube Music)
  • get song lyrics
Exploring music:
  • get moods and genres playlists
  • get latest charts (globally and per country)
Library management:
  • get library contents: playlists, songs, artists, albums and subscriptions
  • add/remove library content: rate songs, albums and playlists, subscribe/unsubscribe artists
  • get and modify play history
Playlists:
  • create and delete playlists
  • modify playlists: edit metadata, add/move/remove tracks
  • get playlist contents
  • get playlist suggestions
Uploads:
  • upload songs and remove them again
  • list uploaded songs, artists and albums

If you find something missing or broken, check the FAQ or feel free to create an issue.

Usage

from ytmusicapi import YTMusic

yt = YTMusic('oauth.json')
playlistId = yt.create_playlist('test', 'test description')
search_results = yt.search('Oasis Wonderwall')
yt.add_playlist_items(playlistId, [search_results[0]['videoId']])

The tests are also a great source of usage examples.

Requirements

Setup and Usage

See the Documentation for detailed instructions

Contributing

Pull requests are welcome. There are still some features that are not yet implemented. Please, refer to CONTRIBUTING.rst for guidance.

Popular Youtube Projects
Popular Playlist Projects
Popular Social Media Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Python
Youtube
Playlist
Songs
Album
Youtube Api