<?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: Bug in Get Track/Get Multiple Tracks Web API where availableMarkets is sometimes empty in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Bug-in-Get-Track-Get-Multiple-Tracks-Web-API-where/m-p/6603974#M16390</link>
    <description>&lt;P&gt;I just wanted to confirm that there is an inconsistency in how &lt;A href="https://developer.spotify.com/documentation/web-api/concepts/track-relinking" target="_self"&gt;Track Relinking&lt;/A&gt; is being done in the API. We intend to address this next year.&lt;BR /&gt;&lt;BR /&gt;But what you are seeing is actually the intended behavior. When you do not provide a market, we are unable to determine playability in a market, so we instead return the available markets for that specific track.&lt;BR /&gt;&lt;BR /&gt;When you provide a market, we can not only determine if that track is playable or not, we can also get any possible relinked track. This basically means that the licensor has chosen to replace one version of a track (the one you are requesting) with another (the one relinked).&lt;BR /&gt;&lt;BR /&gt;The API should then return all the metadata of the relinked track, and only provide a limited amount of data about the track you were requesting in the `linked_from` field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, today this does not happen fully. Some of the metadata of the relinked track is there, but it is mixed in with the track you originally requested. We intend to fix this so that the behavior is as described in the documentation:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;"...Web API recognizes that the specified track is unplayable and instead returns information about a track that is playable in the specified market."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a good illustration of this with example JSON in the documentation about &lt;A href="https://developer.spotify.com/documentation/web-api/concepts/track-relinking" target="_self"&gt;Track Relinking&lt;/A&gt;. I suggest checking that out. Also, thank you for reporting this and making us aware of the bug.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2024 15:10:29 GMT</pubDate>
    <dc:creator>LambertSpot</dc:creator>
    <dc:date>2024-12-23T15:10:29Z</dc:date>
    <item>
      <title>Bug in Get Track/Get Multiple Tracks Web API where availableMarkets is sometimes empty</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Bug-in-Get-Track-Get-Multiple-Tracks-Web-API-where/m-p/6593269#M16305</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Web API&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is a bug in the Spotify Web API where for some tracks availableMarkets is sometimes empty. You can currently try track id &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;18GLelA5vVdzd9X7WGPmJ8&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and see for yourself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;SPAN&gt;Get Track API:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;https://api.spotify.com/v1/tracks/18GLelA5vVdzd9X7WGPmJ8&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Response:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;"uri": "spotify:track:18GLelA5vVdzd9X7WGPmJ8",&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;available_markets&lt;/SPAN&gt;&lt;SPAN&gt;": &lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But if I include a market:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;https://api.spotify.com/v1/tracks/1bpTsEhmS4DQ1rC6htLlWL?market=US&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Response:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;"uri": "spotify:track:18GLelA5vVdzd9X7WGPmJ8",&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"is_playable&lt;/SPAN&gt;&lt;SPAN&gt;": true&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;so it is available in that market and several others, but that is not properly reflected in the API response sometimes.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 21:28:38 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Bug-in-Get-Track-Get-Multiple-Tracks-Web-API-where/m-p/6593269#M16305</guid>
      <dc:creator>gregggreg</dc:creator>
      <dc:date>2024-12-18T21:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Get Track/Get Multiple Tracks Web API where availableMarkets is sometimes empty</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Bug-in-Get-Track-Get-Multiple-Tracks-Web-API-where/m-p/6603974#M16390</link>
      <description>&lt;P&gt;I just wanted to confirm that there is an inconsistency in how &lt;A href="https://developer.spotify.com/documentation/web-api/concepts/track-relinking" target="_self"&gt;Track Relinking&lt;/A&gt; is being done in the API. We intend to address this next year.&lt;BR /&gt;&lt;BR /&gt;But what you are seeing is actually the intended behavior. When you do not provide a market, we are unable to determine playability in a market, so we instead return the available markets for that specific track.&lt;BR /&gt;&lt;BR /&gt;When you provide a market, we can not only determine if that track is playable or not, we can also get any possible relinked track. This basically means that the licensor has chosen to replace one version of a track (the one you are requesting) with another (the one relinked).&lt;BR /&gt;&lt;BR /&gt;The API should then return all the metadata of the relinked track, and only provide a limited amount of data about the track you were requesting in the `linked_from` field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, today this does not happen fully. Some of the metadata of the relinked track is there, but it is mixed in with the track you originally requested. We intend to fix this so that the behavior is as described in the documentation:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;"...Web API recognizes that the specified track is unplayable and instead returns information about a track that is playable in the specified market."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a good illustration of this with example JSON in the documentation about &lt;A href="https://developer.spotify.com/documentation/web-api/concepts/track-relinking" target="_self"&gt;Track Relinking&lt;/A&gt;. I suggest checking that out. Also, thank you for reporting this and making us aware of the bug.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 15:10:29 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Bug-in-Get-Track-Get-Multiple-Tracks-Web-API-where/m-p/6603974#M16390</guid>
      <dc:creator>LambertSpot</dc:creator>
      <dc:date>2024-12-23T15:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Get Track/Get Multiple Tracks Web API where availableMarkets is sometimes empty</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Bug-in-Get-Track-Get-Multiple-Tracks-Web-API-where/m-p/6603994#M16391</link>
      <description>&lt;P&gt;So you are expected to get (without market parameter):&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;"uri": "spotify:track:18GLelA5vVdzd9X7WGPmJ8",&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;available_markets&lt;/SPAN&gt;&lt;SPAN&gt;": &lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;And you are expected to get (with market parameter):&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;"uri": "spotify:track:6zsH33Xbm0gAtBTx9R2vP0",&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"is_playable&lt;/SPAN&gt;&lt;SPAN&gt;": true&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;"linked_from": {&lt;BR /&gt;  "uri": "spotify:track:18GLelA5vVdzd9X7WGPmJ8"&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;But instead of getting data from the linked track (with market parameter):&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;"name": "(Poor Mi) Israelites"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you are getting data from the originally requested track (with market parameter):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"name": "Israelites"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This is not the expected behavior. If there is a relinked track, the metadata should come from that track.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 15:20:48 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Bug-in-Get-Track-Get-Multiple-Tracks-Web-API-where/m-p/6603994#M16391</guid>
      <dc:creator>LambertSpot</dc:creator>
      <dc:date>2024-12-23T15:20:48Z</dc:date>
    </item>
  </channel>
</rss>

