Skip to main content

Unofficial API for YouTube Music

Project description

ytmusicapi: Unofficial API for YouTube Music

A work-in-progress API that emulates web requests from the YouTube Music web client.

Currently you need to extract your authentication data from your web browser and provide it through a file for it to work.

Note: I have not tested this with any account other than my own. Please let me know if it works for you.

Simple usage example:

from ytmusicapi import YTMusic

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

Requirements

Setup and Usage

See the Documentation for detailed instructions

Contributing

Pull requests are welcome. There are still lots of features unimplemented, for example retrieving content from the library and other parts of YTMusic.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

ytmusicapi-0.4.2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

ytmusicapi-0.4.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file ytmusicapi-0.4.2.tar.gz.

File metadata

  • Download URL: ytmusicapi-0.4.2.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for ytmusicapi-0.4.2.tar.gz
Algorithm Hash digest
SHA256 d65bbafd617da491400bcf8babf51de1f90977ec52fb6cd7f0fc6041cdcca4f4
MD5 c565ae5ad0dfef2d9b8d940e402e6b79
BLAKE2b-256 d8c02296aacd9b4227b13339828c4e1b457bb3853253ec564de9403be0732249

See more details on using hashes here.

Provenance

File details

Details for the file ytmusicapi-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: ytmusicapi-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for ytmusicapi-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad24090cd71f2f1be87eb24d6d9330beab24a0e5f1e5bbb0db15f1ac04771dd
MD5 135382ca5978bf5de99b44450e57638e
BLAKE2b-256 a517dfd75185bd620dec4a1b9b0db474d34245a738227b472f5d4d3b04c6e236

See more details on using hashes here.

Provenance

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