<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: What Spotify Web API does the DJ button use? in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/What-Spotify-Web-API-does-the-DJ-button-use/m-p/5778727#M12001</link>
    <description>&lt;P&gt;Hi! Never figured it out and eventually I just gave up&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;. Maybe I'll pick it up again if it ever makes it into the AppleScript API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I got the playlist id by calling one of the APIs to list your playlists, and the DJ was in there with the rest of them. I googled for that id, and found it in that &lt;A href="https://community.spotify.com/t5/Spotify-for-Developers/Spotify-DJ-playlist-info-images/m-p/5587781#M9360" target="_self"&gt;other post&lt;/A&gt;&amp;nbsp;and a bunch of others. If you're not seeing it maybe they're hiding it now. Sorry it's been a while and I can't quite remember.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2023 22:30:00 GMT</pubDate>
    <dc:creator>skehlet</dc:creator>
    <dc:date>2023-12-27T22:30:00Z</dc:date>
    <item>
      <title>What Spotify Web API does the DJ button use?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/What-Spotify-Web-API-does-the-DJ-button-use/m-p/5660189#M11332</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;EM&gt;&lt;SPAN&gt;Not feeling the vibe? Just hit the DJ button at the bottom right of the screen to be taken to a different genre, artist, or mood.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What API does this button use? I can't find any API under the &lt;A href="https://developer.spotify.com/documentation/web-api/reference/start-a-users-playback" target="_self"&gt;Spotify Web API&lt;/A&gt; that seems to do what it does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DJ's playlist id is &lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;spotify:playlist:37i9dQZF1EYkqdzj48dyYq&lt;/FONT&gt;,&amp;nbsp; I thought maybe the /me/player/play API would work, but this just stops playback on my macOS Spotify app:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;curl -X PUT \&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;'&lt;A href="https://api.spotify.com/v1/me/player/play" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/me/player/play&lt;/A&gt;' \&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;--header "Authorization: Bearer $ACCESS_TOKEN" \&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;-d '{"context_uri":"spotify:playlist:37i9dQZF1EYkqdzj48dyYq"}'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Whereas a call to another playlist works fine, for example, same call but use&amp;nbsp;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;spotify:playlist:0iQ8A2wx7iouUszhoytPpj &lt;/FONT&gt;&lt;/SPAN&gt;("Lushlife like" playlist).&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My goal is simply to make a call from the macOS command line to hit the DJ button, without having to flip over to the app and click it. The CLI Spotify apps I've seen are just wrappers around the AppleScript API, which also doesn't have anything for the DJ.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;See also:&amp;nbsp;&lt;A href="https://community.spotify.com/t5/Spotify-for-Developers/Spotify-DJ-playlist-info-images/m-p/5587781#M9360" target="_self"&gt;Spotify DJ playlist info/images&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Nov 2023 00:33:31 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/What-Spotify-Web-API-does-the-DJ-button-use/m-p/5660189#M11332</guid>
      <dc:creator>skehlet</dc:creator>
      <dc:date>2023-11-01T00:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: What Spotify Web API does the DJ button use?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/What-Spotify-Web-API-does-the-DJ-button-use/m-p/5778532#M11998</link>
      <description>&lt;P&gt;I'm curious how you even got the Playlist ID, I'm looking for a similar solution but when I look for the ID in the normal fashion there isn't an option to find the link. Hope you got it sorted out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I noticed that any playlists I ever once upon a time made private were unavailable to use via the API. I had to recreate the playlist and it magically worked. Perhaps DJ is listed as private per user?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 20:50:21 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/What-Spotify-Web-API-does-the-DJ-button-use/m-p/5778532#M11998</guid>
      <dc:creator>Jdestafi</dc:creator>
      <dc:date>2023-12-27T20:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: What Spotify Web API does the DJ button use?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/What-Spotify-Web-API-does-the-DJ-button-use/m-p/5778727#M12001</link>
      <description>&lt;P&gt;Hi! Never figured it out and eventually I just gave up&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;. Maybe I'll pick it up again if it ever makes it into the AppleScript API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I got the playlist id by calling one of the APIs to list your playlists, and the DJ was in there with the rest of them. I googled for that id, and found it in that &lt;A href="https://community.spotify.com/t5/Spotify-for-Developers/Spotify-DJ-playlist-info-images/m-p/5587781#M9360" target="_self"&gt;other post&lt;/A&gt;&amp;nbsp;and a bunch of others. If you're not seeing it maybe they're hiding it now. Sorry it's been a while and I can't quite remember.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 22:30:00 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/What-Spotify-Web-API-does-the-DJ-button-use/m-p/5778727#M12001</guid>
      <dc:creator>skehlet</dc:creator>
      <dc:date>2023-12-27T22:30:00Z</dc:date>
    </item>
  </channel>
</rss>

