adlawson/mixcloud-tracklist

New Mixcloud API

adlawson opened this issue · 5 comments

Mixcloud have changed their API up. Old references to URLs like https://www.mixcloud.com/player/details/?key=%2Ftheblackdog%2Fradio-dogma-50%2F no longer work (for those of us on the new React website. see #36).

They have implemented a new GraphQL endpoint for querying mixes, and I've spotted a /tracklist?guid=blah endpoint too, though I'm unsure at this point how helpful it'll be.

This new GraphQL API needs to be used to reenable the tracklist.

Hello, i get an error under CHROME Version 61.0.3163.91 (Offizieller Build) (64-Bit) as follows

mixcloud-tracklist.js:39 Uncaught TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'.
at Object.onChange (mixcloud-tracklist.js:39)
at Object.9../browser (mixcloud-tracklist.js:2462)
at s (mixcloud-tracklist.js:1)
at e (mixcloud-tracklist.js:1)
at mixcloud-tracklist.js:1

when visiting e.g.

https://www.mixcloud.com/Solid_Steel/solid-steel-radio-show-1592017-hour-1-steffi/

is this not working anymore??? please advise

image

Found that this is what's needed to get the GUID from the GraphQL endpoint. Without the 'a' cookie though, the field 'juno' will be null. The 'a' cookie is set on the /authentication/facebook-login endpoint (at least in my case). Don't forget CSRF either.

Working example to get mixcloud tracklist.

https://jsbin.com/qigowogila/edit?js

Paste to console to see the tracklist.