<?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 Syntax for accessing cover images in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Syntax-for-accessing-cover-images/m-p/5458276#M7048</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free/Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(iPhone 8, Samsung Galaxy 9, Macbook Pro late 2016)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(iOS 10, Android&amp;nbsp;Oreo, Windows 10,etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Pretty new at JS, but I'm unable to access the URL to a track's image file. It seems to be a syntax issue but I ive tried every way but upside down and it still does not send me the link back.&lt;/P&gt;&lt;P&gt;This is what I have landed on at the moment , r is just controlling a loop for a table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- var image_id = [r.track.album].images[0].url&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is my what i am accessing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;app.get("/recent", async (req, res) =&amp;gt; {
  const userInfo = await getData("/me");
  const recents = await getData("/me/player/recently-played");

  console.log(recents.items);
  
  res.render("recent", {
    user: userInfo,
    recents: recents.items
  });
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what console.log puts out for each track in the recents array&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; track: {
      album: [Object],
      artists: [Array],
      available_markets: [Array],
      disc_number: 1,
      duration_ms: 61333,
      explicit: false,
      external_ids: [Object],
      external_urls: [Object],
      href: 'https://api.spotify.com/v1/tracks/7JqXZgtuqIFwzREMFAJOOS',
      id: '7JqXZgtuqIFwzREMFAJOOS',
      is_local: false,
      name: 'Erykah’s Gun',
      popularity: 50,
      preview_url: 'https://p.scdn.co/mp3-preview/94173470666754f32131c8964da1bc2a54860ce3?cid=9d8af94533ce40bda08ac5760e77ff9c',
      track_number: 14,
      type: 'track',
      uri: 'spotify:track:7JqXZgtuqIFwzREMFAJOOS'
    },
    played_at: '2022-11-15T04:14:29.673Z',
    context: {
      external_urls: [Object],
      href: 'https://api.spotify.com/v1/playlists/37i9dQZF1EVHGWrwldPRtj',
      type: 'playlist',
      uri: 'spotify:playlist:37i9dQZF1EVHGWrwldPRtj'
    }
  },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or tips would be appreciated, thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 22:43:44 GMT</pubDate>
    <dc:creator>Dorito2000</dc:creator>
    <dc:date>2022-11-15T22:43:44Z</dc:date>
    <item>
      <title>Syntax for accessing cover images</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Syntax-for-accessing-cover-images/m-p/5458276#M7048</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free/Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(iPhone 8, Samsung Galaxy 9, Macbook Pro late 2016)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(iOS 10, Android&amp;nbsp;Oreo, Windows 10,etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Pretty new at JS, but I'm unable to access the URL to a track's image file. It seems to be a syntax issue but I ive tried every way but upside down and it still does not send me the link back.&lt;/P&gt;&lt;P&gt;This is what I have landed on at the moment , r is just controlling a loop for a table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- var image_id = [r.track.album].images[0].url&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is my what i am accessing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;app.get("/recent", async (req, res) =&amp;gt; {
  const userInfo = await getData("/me");
  const recents = await getData("/me/player/recently-played");

  console.log(recents.items);
  
  res.render("recent", {
    user: userInfo,
    recents: recents.items
  });
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what console.log puts out for each track in the recents array&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; track: {
      album: [Object],
      artists: [Array],
      available_markets: [Array],
      disc_number: 1,
      duration_ms: 61333,
      explicit: false,
      external_ids: [Object],
      external_urls: [Object],
      href: 'https://api.spotify.com/v1/tracks/7JqXZgtuqIFwzREMFAJOOS',
      id: '7JqXZgtuqIFwzREMFAJOOS',
      is_local: false,
      name: 'Erykah’s Gun',
      popularity: 50,
      preview_url: 'https://p.scdn.co/mp3-preview/94173470666754f32131c8964da1bc2a54860ce3?cid=9d8af94533ce40bda08ac5760e77ff9c',
      track_number: 14,
      type: 'track',
      uri: 'spotify:track:7JqXZgtuqIFwzREMFAJOOS'
    },
    played_at: '2022-11-15T04:14:29.673Z',
    context: {
      external_urls: [Object],
      href: 'https://api.spotify.com/v1/playlists/37i9dQZF1EVHGWrwldPRtj',
      type: 'playlist',
      uri: 'spotify:playlist:37i9dQZF1EVHGWrwldPRtj'
    }
  },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or tips would be appreciated, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 22:43:44 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Syntax-for-accessing-cover-images/m-p/5458276#M7048</guid>
      <dc:creator>Dorito2000</dc:creator>
      <dc:date>2022-11-15T22:43:44Z</dc:date>
    </item>
  </channel>
</rss>

