YouTube Music API

An unofficial YouTube Music API For Python Programming Language.
A Python library which Quickly gather the metadata of a Song, Playlist, Artist existing on YouTube or YouTube Music.

Installation

pip install YouTubeMusicAPI

This library can…


This content originally appeared on DEV Community and was authored by Sijey

An unofficial YouTube Music API For Python Programming Language.
A Python library which Quickly gather the metadata of a Song, Playlist, Artist existing on YouTube or YouTube Music.

Installation

pip install YouTubeMusicAPI

This library can be installed by the pip command, open your command prompt and type in the following command...

No Credential details required.

Basic GET usage:

from YouTubeMusicAPI import YouTubeMusicAPI

artist = YouTubeMusicAPI("marshmello").artist()

print(artist)

# output of this program

{
    'artist': 'Marshmello', 
    'artist_url': 'https://music.youtube.com/channel/6yIPyTp...', 
    'artist_id': 'UCEdvpU2pFRCVqU6yIPyTpMQ', 
    'artist_image': 'https://yt3.ggpht.com/3kmvsf3NN...'
} 
from YouTubeMusicAPI import YouTubeMusicAPI

track = YouTubeMusicAPI("marshmello").track()

print(track)

# output of this program

{
    'track_name': 'Marshmello Live at Lollapalooza 2021 ...', 
    'datePublished': '2021-08-04', 
    'track_Id': '8eXFvzMEldk', 
    'track_url': 'https://music.youtube.com/watch?v=8eXFvzMEldk', 
    'track_image': 'https://i.ytimg.com/vi/8eXFvzMEldk/hqdef...'
}
from YouTubeMusicAPI import YouTubeMusicAPI

playlist = YouTubeMusicAPI("marshmello").artist()

print(playlist)

# output of this program

{
    'playlist_name': 'Marshmallow Playlist', 
    'playlist_url': 'https://music.youtube.com/playlist...', 
    'playlist_id': 'PL4FB1JvhTLrGNSL4odYt72EqjDPJfjSdp'
}

If you like this Package you can support me by giving a star ⭐ on
the GitHub Repository. 👍

Source Code : https://github.com/Sijey-Praveen/YouTube-Music-API
PyPi : https://pypi.org/project/YouTubeMusicAPI/


This content originally appeared on DEV Community and was authored by Sijey


Print Share Comment Cite Upload Translate Updates
APA

Sijey | Sciencx (2021-10-09T15:01:15+00:00) YouTube Music API. Retrieved from https://www.scien.cx/2021/10/09/youtube-music-api/

MLA
" » YouTube Music API." Sijey | Sciencx - Saturday October 9, 2021, https://www.scien.cx/2021/10/09/youtube-music-api/
HARVARD
Sijey | Sciencx Saturday October 9, 2021 » YouTube Music API., viewed ,<https://www.scien.cx/2021/10/09/youtube-music-api/>
VANCOUVER
Sijey | Sciencx - » YouTube Music API. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/10/09/youtube-music-api/
CHICAGO
" » YouTube Music API." Sijey | Sciencx - Accessed . https://www.scien.cx/2021/10/09/youtube-music-api/
IEEE
" » YouTube Music API." Sijey | Sciencx [Online]. Available: https://www.scien.cx/2021/10/09/youtube-music-api/. [Accessed: ]
rf:citation
» YouTube Music API | Sijey | Sciencx | https://www.scien.cx/2021/10/09/youtube-music-api/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.