-
-
Save riad-uk/3003fa0183b464a0b0d2ca2e77afe477 to your computer and use it in GitHub Desktop.
browser = 'wdgaB1CilGA-S_s2' # Streams HIGH/LOW Quality over RTMP, FLAC and Videos over HTTP, but many Lossless Streams are encrypted. | |
android = 'kgsOOmYk3zShYrNP' # All Streams are HTTP Streams. Correct numberOfVideos in Playlists (best Token to use) | |
ios = '_DSTon1kC8pABnTw' # Same as Android Token, but uses ALAC instead of FLAC | |
native = '4zx46pyr9o8qZNRw' # Same as Android Token, but FLAC streams are encrypted | |
audirvana = 'BI218mwp9ERZ3PFI' # Like Android Token, supports MQA, but returns 'numberOfVideos = 0' in Playlists | |
amarra = 'wc8j_yBJd20zOmx0' # Like Android Token, but returns 'numberOfVideos = 0' in Playlists | |
# Unkown working Tokens | |
token1 = 'P5Xbeo5LFvESeDy6' # Like Android Token, but returns 'numberOfVideos = 0' in Playlists | |
token2 = 'oIaGpqT_vQPnTr0Q' # Like token1, but uses RTMP for HIGH/LOW Quality | |
token3 = '_KM2HixcUBZtmktH' # Same as token1 |
Dont thank me it’s not as if it’s mine ;)
Also, does your app download provide full access to downloaded files? Eg... play the downloaded files with different player.
You made those available, so that's enough for me 😄
Yes, when you Right Click -> Download
a track, album or playlist, the files will be saved to the Downloads folder with the correct Metadata embedded.
Amazing. Will give it a try later today.
The python package tidalapi generates ALAC links successfully too. Just chasing the dream of getting a token that generates FLACs like before...
That tidalapi package was the inspiration for TidalSwift, as it was missing many features.
@flying-sausages Conversion isn't an option?
As far as I know, there currently isn't a FLAC token that works with the old system. I tried some things and some more tokens, but even the new iOS token, I sniffed from my phone, doesn't work anymore with the old API.
Thank you for sharing this, was very helpful!
For me, it still works. I logged in using the iOS token.
Then:
curl -X GET "https://api.tidal.com/v1/tracks/77156874/offlineUrl?limit=999&sessionId=<SessionID>&countryCode=DE&soundQuality=LOSSLESS"
(Replace with the ID you received from the Login call)
As you are on macOS, may I recommend my app TidalSwift: https://github.com/melgu/TidalSwift
You can download songs in there (or use it as a full replacement for the official app).
Sorry for the dumb question, but how do I actually install TidalSwift from the Github site? And can I download unencrypted FLAC files for use with other players?
Sorry for the dumb question, but how do I actually install TidalSwift from the Github site? And can I download unencrypted FLAC files for use with other players?
No problem. Go to the Releases section and download the latest version of TidalSwift.zip (in the assets section).
Unzip the file (probably happens automatically after download) and put the app into your Applications folder.
From there right click the App, hit Open and confirm that you want to open the app. This only needs to be done on first launch. After that you can open the app using Spotlight, Double clicking it or any other common method.
To download a song, you log-in with HiFi quality selected. Search for the song / album / playlist you want to download. Right click on it an hit Download. The downloaded file is in ALAC format (AAC when selecting low or high quality at log-in). ALAC files are lossless (just like FLACs) but play a little nicer with Apple devices. You can easily convert Apple Lossless files to FLAC though afterwards.
I have completely reverse engineered the TIDALAPI and currently working on a TIDAL C Library. This is the documentation repository. Here are some API-Keys that are DRM-Free. I still have at least 10 DRM-Free client_ids in a private repo.
https://github.com/openTIDAL/docTIDAL/wiki/API-Keys
https://github.com/openTIDAL/docTIDAL/wiki/
Where did you find more API keys? I couldn’t find any that still work fine with the older API.
Nice work in anyway!
I won't disclose the exact way because TIDAL could change it at anytime. But it was a lot of work :)
_DSTon1kC8pABnTw still works as an API key in Strawberry music player in Linux. Thank you!
Oh, and I should thank you, as I use the iOS token you provided in the gist inside TidalSwift 😃