Skip to main content

An unofficial YouTube Music API For Python Programming Language.

Project description

YouTubeMusicAPI

What's new in version 2.0?

  • Stable release.
  • Updated get_track() function.
  • Updated Code Format.

About

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


Basic GET usage:

get_track()

  • This function can be used to get meta data of a song existing on YouTube or YouTube Music.

  • Use the function with Song or track or music name.

from YouTubeMusicAPI import YouTubeMusicAPI

var = YouTubeMusicAPI("marshmello happier").get_track()

print(var)

Output of this program:


{
    'track_name': 'Marshmello ft. Bastille - Happier (Official Music Video)', 
    'datePublished': '2018-09-24', 
    'track_Id': 'm7Bc3pLyij0', 
    'track_url': 'https://music.youtube.com/watch?v=m7Bc3pLyij0', 
    'track_image': 'https://i.ytimg.com/vi/m7Bc3pLyij0/hqdefault.jpg', 
    'interactionCount': '851450849', 
    'artist': 'Marshmello', 
    'artist_url': 'https://music.youtube.com/channel/UCEdvpU2pFRCVqU6yIPyTpMQ', 
    'artist_id': 'UCEdvpU2pFRCVqU6yIPyTpMQ', 
    'artist_image': 'https://yt3.ggpht.com/3kmvsf3NNYy4XLy3hKc2ZVF8O-XkSaahtwUr3KW-YzJKMJsy-g2HePIayrh-JnXWbilYQ6n_=s900-c-k-c0x00ffffff-no-rj'
}

Contributing

  • Pull requests are welcome. For major changes or improvement, please open an issue first to discuss what you would like to change or add.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

YouTubeMusicAPI-2.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

YouTubeMusicAPI-2.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page