It's free. Don't complain.
You need to create a Spotify Developer account to get access to your Client ID and Client Secret from the Web API.
- Go here to start your developer account creation.
- Go to your App Dashboard and CREATE AN APP
- Click on your newly created application to find your Client ID and your Client Secret which is hidden from view, initially.
- CLIENT_ID
- CLIENT_SECRET
Follow the instructions for ytmusicapi to setup your oauth.json file. You can find that here.
$ export CLIENT_ID="XXXXX"; export CLIENT_SECRET="YYYYY"; ./main.pyApache 2.0