Fokka-Engineering/TIDAL

Undocumented endpoint favorite mixes

AustinJ235 opened this issue · 1 comments

This seems to be a newer endpoint now that Tidal allows you to favorite mixes directly instead of having to add them to playlists. This fetches the "Mixes & Radio" section of the user. User ID seems to be automatically figured out from the authorization field.

Example Request:

https://api.tidal.com/v2/favorites/mixes?offset=0&limit=50&order=DATE&orderDirection=DESC&locale=en_US&deviceType=BROWSER&countryCode=US

Headers Required:

authorization: Bearer xxxxxxx

Example Response:

{
  "items": [
    {
      "dateAdded": "2020-12-18T07:46:25.574577Z",
      "updated": "2020-12-20T20:44:32.749Z",
      "id": "001fd5d1cc9bd8af6c6cc14c0d1a9c",
      "title": "The Girl (Stonebank Remix) [feat. Cozi Zuehlsdorff]",
      "master": false,
      "images": {
        "SMALL": {
          "width": 320,
          "height": 320,
          "url": "https://images.tidal.com/0/EMACGMACIKABKKAB/CAEQBhokNzdjMTExN2EvYmFjMi80N2E1L2I5YjQvODJiOTBlZGQxYmI2GiRiMGVmM2JjYi8yYWVkLzQxMDgvODJjNy82OWZjMmQyYjVjMzkaJDNhYTExNmY3LzU2NDAvNDQzNy85MmUwLzEyM2I3YWNhMDIzMyILVHJhY2sgUmFkaW8iM1RoZSBHaXJsIChTdG9uZWJhbmsgUmVtaXgpIFtmZWF0LiBDb3ppIFp1ZWhsc2RvcmZmXSoHI0ZGRkZGRjAB?token=499da06c0f5036292e0ee97975a7fa26d1567d68"
        },
        "MEDIUM": {
          "width": 640,
          "height": 640,
          "url": "https://images.tidal.com/0/EIAFGIAFIMACKMAC/CAEQBhokNzdjMTExN2EvYmFjMi80N2E1L2I5YjQvODJiOTBlZGQxYmI2GiRiMGVmM2JjYi8yYWVkLzQxMDgvODJjNy82OWZjMmQyYjVjMzkaJDNhYTExNmY3LzU2NDAvNDQzNy85MmUwLzEyM2I3YWNhMDIzMyILVHJhY2sgUmFkaW8iM1RoZSBHaXJsIChTdG9uZWJhbmsgUmVtaXgpIFtmZWF0LiBDb3ppIFp1ZWhsc2RvcmZmXSoHI0ZGRkZGRjAB?token=60d38bba68881e7ff2537b97085c019b907039f0"
        },
        "LARGE": {
          "width": 1500,
          "height": 1500,
          "url": "https://images.tidal.com/0/ENwLGNwLIO4FKO4F/CAEQBhokNzdjMTExN2EvYmFjMi80N2E1L2I5YjQvODJiOTBlZGQxYmI2GiRiMGVmM2JjYi8yYWVkLzQxMDgvODJjNy82OWZjMmQyYjVjMzkaJDNhYTExNmY3LzU2NDAvNDQzNy85MmUwLzEyM2I3YWNhMDIzMyILVHJhY2sgUmFkaW8iM1RoZSBHaXJsIChTdG9uZWJhbmsgUmVtaXgpIFtmZWF0LiBDb3ppIFp1ZWhsc2RvcmZmXSoHI0ZGRkZGRjAB?token=f0e0b8e1a33a661a20b106cbd072d2cb75772404"
        }
      },
      "titleTextInfo": {
        "text": "The Girl (Stonebank Remix) [feat. Cozi Zuehlsdorff]",
        "color": "#FFFFFF"
      },
      "subTitleTextInfo": {
        "text": "Track Radio",
        "color": "#FFFFFF"
      },
      "mixType": "TRACK_MIX",
      "subTitle": "Track Radio"
    },
  ],
  "cursor": null,
  "lastModifiedAt": "2020-12-18T07:46:25.574577Z"
}

Thank you for pointing out that TIDAL updated there v2 API. Just noticed that too. I added all three new endpoints:

  • add
  • delete
  • get