Finding Tidal API Token on Linux
Table of Contents
- Tidal on Linux
- Install Strawberry
- Finding your Tidal API
- Getting Strawberry to Talk to Tidal
- Wrapping up
- Extra - musings and next steps
Tidal on Linux
Tidal is a great way to access a vast, high quality, music collection. Bit rates are significantly higher than other streaming services. It is because of this that many want to use it as the corner stone of the audiophile set ups.
The problem? There is limited Linux support. No official GUI application exists for Tidal on Linux and the only way to access music is by the web app.
Unofficial solutions do exist. The below is a guide to set up Tidal using a music player called Strawberry. I will outline at the end of this post my issues and areas I intend to work on to improve this but if you are like me and had issues with the documentation on the web, I hope the below helps you.
Strawberry is a fork of the popular music player Clementine. It’s useful as it does report bit rates during operation. Great for testing and confirming you are getting the best quality possible from your player:
sudo add-apt-repository ppa:jonaski/strawberry sudo apt update sudo apt install strawberry
Finding your Tidal API
This part proved difficult for me. I have no access to a Windows machine and so tool like this do not work. To solve this you can use files found on an android phone.
- Turn on developer mode on your phone if not done so already - this differs from android version but it is a well documented process.
- Ensure that your phone will allow for file transfer when connected to a PC.
Navigate to the tidal app files on your phone.
Here you will see a bunch of files. To find out your API token run the following command:
grep -r "X-Tidal-Token"
- Copy the returned value - this is your Tidal API token.
Getting Strawberry to Talk to Tidal
Open Strawberry and navigate to tools -> settings.
Navigate to Tidal in the “Streaming” section, left side ribbon.
Ensure “OAuth” is ticked.
Enter your API token collected in the previous section and paste into Client ID.
Click “Login”. A browser will open, follow the prompts to log into Tidal.
A green tick should now appear below the “Login” button.
Ensure “Enable” is also ticked - this allows Tidal to appear in the left side ribbon on the main music player.
That’s it. You should now access to Tidal in Strawberry. I’ve tested the bit rates of songs streamed and FLAC songs in my collection and they are very close - so a success. This seems like a reasonable way to use tidal on your Linux machine without using the web app.
Extra - musings and next steps
Most of my critical listening is done at my PC. This works well but I would much rather have several listening “stations” so that I can be unbound from the desk. I have been exploring options for this and clearly I can spend much money and buy commercial solutions. Not really in the spirit. One option I’m keen to explore is the use of a raspberry Pi or similar with an external amp/DAC. Several good Pi hats exist for this solution or an inexpensive amp/DAC would also be an option.
Additionally I don’t really like using GUI apps where possible - further work on my part is needed to see if I can control my Tidal music via a terminal app or from within emacs. If you have any experience in either of the areas, do reach out.