Is there any way to control Tidal or Deezer or Apple Music from command line?

Need to run some predefined playlist from streaming engine like tidal or deezer or apple music. That would be done by some code running on arm linux. But i don’t know if any command line streaming aps exists for these platforms for linux?How can i implement this?
Any ideas?
 
Each streaming service has its own API. Usually you need to have account in that service in order to have access to the whole functionality. But some functionality is available for free. For example, I used the library minim and deezer-python for searching through Qobuz, Spotify, iTunes and Deezer without having account in those services. You can even preview any track for 30 seconds. Here is the search by genre in Deezer: https://github.com/project-owner/Peppy.doc/wiki/Genres The minim library also supports access to services with your account credentials.

When you have a playlist with links to the streams on the streaming service and you authenticated your access then you just feed those links (usually HTTP/HTTPS URLs) to any audio/media player like mpd, vlc, mpv etc for playback.
 
Last edited:
looked in quite a few solutions, but not one seems to be working.
chatGPT says"Tidal’s API is highly restricted, and most users cannot use the API without becoming official partners. The 403 error suggests your API credentials lack the necessary permissions."
if anybody made to work like playing some track with its id from cli from tidal would be nice to hear how exactly you did that.
Thanks
 
Instead of using crapGPT, might go look on GitHub, or go to your favorite linux distro's website and search there.

Check out Upmpdcli, mpd and mpc. You can use the Linn app to create a playlist on Upmpdcli and load it up on mpd and then use mpc to control it through the command line. You can probably ping the Upmpdcli developers on a way to query songs from the command line. The code is there for you to modify if you also need to query for the songs, but wading through those results might just be overwhelming vs creating a playlist from an app.
 
  • Like
Reactions: Logon
Instead of using crapGPT, might go look on GitHub, or go to your favorite linux distro's website and search there.

Check out Upmpdcli, mpd and mpc. You can use the Linn app to create a playlist on Upmpdcli and load it up on mpd and then use mpc to control it through the command line. You can probably ping the Upmpdcli developers on a way to query songs from the command line. The code is there for you to modify if you also need to query for the songs, but wading through those results might just be overwhelming vs creating a playlist from an app.
Thanks. It worked. 👍
 
  • Like
Reactions: Logon