# exploring the Mixcloud API... # what data can we get from there? # first select a playlist that you would like to explore PLAYLIST="worm-25" # then you can use curl to make an API request # curl is a command line programme that you can use to download things # from the $ man page: # # curl is a tool for transferring data from or to a server. It supports these protocols: DICT, # FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, # RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS. curl https://api.mixcloud.com/radiowormrotterdam/playlists/$PLAYLIST/cloudcasts/ # apparently, Mixcloud calls an entry a cloudcast? # the output will be formatted in JSON # you can pipe this script to $ jq to get syntax highlighting, like this: # $ bash get-playlist-data.sh | jq