Skip to main content

An unofficial YouTube Music API For Python Programming Language.

Project description

YouTubeMusicAPI

What's new in version 2.3?

  • Stable release.
  • Improved Library Speed (10x Faster than version 2.2.)
  • Updated Code Format.
  • Removed artist() for temporarily.

📜 About

  • 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.

👤 Author

🔑 ❌ No Access token or Credentials required.

📦 Package Installation

  • Windows

pip install --upgrade YouTubeMusicAPI

  • Linux & Mac OS

pip3 install --upgrade YouTubeMusicAPI

📚 GET Basic

track()

  • This function can be used to get metadata of a track or song.
from YouTubeMusicAPI import YouTubeMusicAPI

track = YouTubeMusicAPI("immortals").track()

print(track)

Track

👉 Output of this program

{
    'name': 'Fall Out Boy - Immortals (Official Music Video) (From "Big Hero 6")', 
    'datePublished': '2014-10-13', 
    'Id': 'l9PxOanFjxQ', 
    'url': 'https://music.youtube.com/watch?v=l9PxOanFjxQ', 
    'image': 'https://i.ytimg.com/vi/l9PxOanFjxQ/hqdefault.jpg'
}

playlist()

  • This function can be used to get metadata of a playlist.
from YouTubeMusicAPI import YouTubeMusicAPI

playlist = YouTubeMusicAPI("Alan Walker").playlist()

print(playlist)

Playlist

👉 Output of this program

{
    'name': 'Alan Walker - Teledyski', 
    'url': 'https://music.youtube.com/playlist?list=PLwcXu6NozQZjVjazNF0fqbdQ8e15mnMJ4', 
    'Id': 'PLwcXu6NozQZjVjazNF0fqbdQ8e15mnMJ4'
}

🧾 License

🤝 Contributing

  • For major changes or improvement, Open an issue and mention 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.3.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

YouTubeMusicAPI-2.3-py3-none-any.whl (4.1 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