It is assumed that you're using Python 3.7 or above. If you're using an older Python 3 version, you need to install this backported library as well: ...
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.