<?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 Spotify Web API: How to get genres from TrackObject in playlist in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-Web-API-How-to-get-genres-from-TrackObject-in-playlist/m-p/5700713#M11594</link>
    <description>&lt;P&gt;I am using the Spotify Web API through Python. I am currently extracting tracks from a playlist. With that in mind, I also wanted to get the genres for each song.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first question is if there's a way to a genre for a specific song? At the moment, I don't think there is but I could be mistaken.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Assuming there wasn't, I tried to get the genres for a song by keying in to each track. However, I noticed that there is no genre's key for any of the songs. I am using the the Top 100 songs, so I'd assume that these songs would have a genre.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what the 'artist' key returns for a given artist in a given song:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;[{'external_urls': {'spotify': '&lt;/SPAN&gt;&lt;A href="https://open.spotify.com/artist/2LIk90788K0zvyj2JJVwkJ" target="_blank" rel="nofollow noopener"&gt;https://open.spotify.com/artist/2LIk90788K0zvyj2JJVwkJ&lt;/A&gt;&lt;SPAN&gt;'}, 'href': '&lt;/SPAN&gt;&lt;A href="https://api.spotify.com/v1/artists/2LIk90788K0zvyj2JJVwkJ" target="_blank" rel="nofollow noopener"&gt;https://api.spotify.com/v1/artists/2LIk90788K0zvyj2JJVwkJ&lt;/A&gt;&lt;SPAN&gt;', 'id': '2LIk90788K0zvyj2JJVwkJ', 'name': 'Jack Harlow', 'type': 'artist', 'uri': 'spotify:artist:2LIk90788K0zvyj2JJVwkJ'}]&lt;BR /&gt;&lt;BR /&gt;This is the documentation I was looking at:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.spotify.com/documentation/web-api/reference/get-playlists-tracks" target="_blank"&gt;https://developer.spotify.com/documentation/web-api/reference/get-playlists-tracks&lt;/A&gt;&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;</description>
    <pubDate>Sun, 26 Nov 2023 19:48:03 GMT</pubDate>
    <dc:creator>rishii</dc:creator>
    <dc:date>2023-11-26T19:48:03Z</dc:date>
    <item>
      <title>Spotify Web API: How to get genres from TrackObject in playlist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-Web-API-How-to-get-genres-from-TrackObject-in-playlist/m-p/5700713#M11594</link>
      <description>&lt;P&gt;I am using the Spotify Web API through Python. I am currently extracting tracks from a playlist. With that in mind, I also wanted to get the genres for each song.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first question is if there's a way to a genre for a specific song? At the moment, I don't think there is but I could be mistaken.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Assuming there wasn't, I tried to get the genres for a song by keying in to each track. However, I noticed that there is no genre's key for any of the songs. I am using the the Top 100 songs, so I'd assume that these songs would have a genre.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what the 'artist' key returns for a given artist in a given song:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;[{'external_urls': {'spotify': '&lt;/SPAN&gt;&lt;A href="https://open.spotify.com/artist/2LIk90788K0zvyj2JJVwkJ" target="_blank" rel="nofollow noopener"&gt;https://open.spotify.com/artist/2LIk90788K0zvyj2JJVwkJ&lt;/A&gt;&lt;SPAN&gt;'}, 'href': '&lt;/SPAN&gt;&lt;A href="https://api.spotify.com/v1/artists/2LIk90788K0zvyj2JJVwkJ" target="_blank" rel="nofollow noopener"&gt;https://api.spotify.com/v1/artists/2LIk90788K0zvyj2JJVwkJ&lt;/A&gt;&lt;SPAN&gt;', 'id': '2LIk90788K0zvyj2JJVwkJ', 'name': 'Jack Harlow', 'type': 'artist', 'uri': 'spotify:artist:2LIk90788K0zvyj2JJVwkJ'}]&lt;BR /&gt;&lt;BR /&gt;This is the documentation I was looking at:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.spotify.com/documentation/web-api/reference/get-playlists-tracks" target="_blank"&gt;https://developer.spotify.com/documentation/web-api/reference/get-playlists-tracks&lt;/A&gt;&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;</description>
      <pubDate>Sun, 26 Nov 2023 19:48:03 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-Web-API-How-to-get-genres-from-TrackObject-in-playlist/m-p/5700713#M11594</guid>
      <dc:creator>rishii</dc:creator>
      <dc:date>2023-11-26T19:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify Web API: How to get genres from TrackObject in playlist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-Web-API-How-to-get-genres-from-TrackObject-in-playlist/m-p/5701481#M11595</link>
      <description>&lt;P&gt;The &lt;A href="https://developer.spotify.com/documentation/web-api/reference/get-multiple-artists" target="_blank" rel="noopener"&gt;Get Several Artists&lt;/A&gt;&amp;nbsp;endpoint provides genres.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 05:56:09 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-Web-API-How-to-get-genres-from-TrackObject-in-playlist/m-p/5701481#M11595</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-11-27T05:56:09Z</dc:date>
    </item>
  </channel>
</rss>

