<?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 Web API - preview_url for track is null in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-preview-url-for-track-is-null/m-p/5451414#M6876</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Italy&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Web API&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Windows 10&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;I am using the Web-API for a project. I found multiple tracks, where the field "preview_url" is null in the response (nearly half of those I tested). Tried with client credentials authentication and authorization code. I get the same response, with "preview_url" set to null each time. I am wondering why I do not get null when trying the same request with the Spotify API on rapidapi.com (&lt;A href="https://rapidapi.com/Glavier/api/spotify23/" target="_blank" rel="noopener"&gt;https://rapidapi.com/Glavier/api/spotify23/&lt;/A&gt;). Also setting a market where the track is available does not solve the problem.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example track ids where this occurrs:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;37ZJ0p5Jm13JPevGcx4SkF&lt;/LI&gt;&lt;LI&gt;0QPRDC97rIQB3Jh3hrVJoH&lt;/LI&gt;&lt;LI&gt;1kPpge9JDLpcj15qgrPbYX&lt;/LI&gt;&lt;LI&gt;2tGvwE8GcFKwNdAXMnlbfl&lt;/LI&gt;&lt;LI&gt;4ZtFanR9U6ndgddUvNcjcG&lt;/LI&gt;&lt;LI&gt;5wANPM4fQCJwkGd4rN57mH&lt;/LI&gt;&lt;LI&gt;6uxYfENm7zw050dNUi031W&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Example URL:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.spotify.com/v1/tracks?ids=37ZJ0p5Jm13JPevGcx4SkF&amp;amp;market=IT" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/tracks?ids=37ZJ0p5Jm13JPevGcx4SkF&amp;amp;market=IT&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example response:&lt;/STRONG&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;&lt;LI-CODE lang="javascript"&gt;{
    "tracks": [
        {
            "album": {
                "album_type": "album",
                "artists": [
                    {
                        "external_urls": {
                            "spotify": "https://open.spotify.com/artist/58lV9VcRSjABbAbfWS6skp"
                        },
                        "href": "https://api.spotify.com/v1/artists/58lV9VcRSjABbAbfWS6skp",
                        "id": "58lV9VcRSjABbAbfWS6skp",
                        "name": "Bon Jovi",
                        "type": "artist",
                        "uri": "spotify:artist:58lV9VcRSjABbAbfWS6skp"
                    }
                ],
                "external_urls": {
                    "spotify": "https://open.spotify.com/album/0kBfgEilUFCMIQY5IOjG4t"
                },
                "href": "https://api.spotify.com/v1/albums/0kBfgEilUFCMIQY5IOjG4t",
                "id": "0kBfgEilUFCMIQY5IOjG4t",
                "images": [
                    {
                        "height": 64,
                        "url": "https://i.scdn.co/image/ab67616d000048511336b31b6a1799f0de5807ac",
                        "width": 64
                    },
                    {
                        "height": 300,
                        "url": "https://i.scdn.co/image/ab67616d00001e021336b31b6a1799f0de5807ac",
                        "width": 300
                    },
                    {
                        "height": 640,
                        "url": "https://i.scdn.co/image/ab67616d0000b2731336b31b6a1799f0de5807ac",
                        "width": 640
                    }
                ],
                "name": "Slippery When Wet",
                "release_date": "1986-08-16",
                "release_date_precision": "day",
                "total_tracks": 10,
                "type": "album",
                "uri": "spotify:album:0kBfgEilUFCMIQY5IOjG4t"
            },
            "artists": [
                {
                    "external_urls": {
                        "spotify": "https://open.spotify.com/artist/58lV9VcRSjABbAbfWS6skp"
                    },
                    "href": "https://api.spotify.com/v1/artists/58lV9VcRSjABbAbfWS6skp",
                    "id": "58lV9VcRSjABbAbfWS6skp",
                    "name": "Bon Jovi",
                    "type": "artist",
                    "uri": "spotify:artist:58lV9VcRSjABbAbfWS6skp"
                }
            ],
            "disc_number": 1,
            "duration_ms": 249293,
            "explicit": false,
            "external_ids": {
                "isrc": "USPR38619998"
            },
            "external_urls": {
                "spotify": "https://open.spotify.com/track/37ZJ0p5Jm13JPevGcx4SkF"
            },
            "href": "https://api.spotify.com/v1/tracks/37ZJ0p5Jm13JPevGcx4SkF",
            "id": "37ZJ0p5Jm13JPevGcx4SkF",
            "is_local": false,
            "is_playable": true,
            "name": "Livin' On A Prayer",
            "popularity": 84,
            "preview_url": null,
            "track_number": 3,
            "type": "track",
            "uri": "spotify:track:37ZJ0p5Jm13JPevGcx4SkF"
        }
    ]
}&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Oct 2022 10:01:07 GMT</pubDate>
    <dc:creator>anonymusdevelopment</dc:creator>
    <dc:date>2022-10-30T10:01:07Z</dc:date>
    <item>
      <title>Web API - preview_url for track is null</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-preview-url-for-track-is-null/m-p/5451414#M6876</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Italy&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Web API&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Windows 10&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;I am using the Web-API for a project. I found multiple tracks, where the field "preview_url" is null in the response (nearly half of those I tested). Tried with client credentials authentication and authorization code. I get the same response, with "preview_url" set to null each time. I am wondering why I do not get null when trying the same request with the Spotify API on rapidapi.com (&lt;A href="https://rapidapi.com/Glavier/api/spotify23/" target="_blank" rel="noopener"&gt;https://rapidapi.com/Glavier/api/spotify23/&lt;/A&gt;). Also setting a market where the track is available does not solve the problem.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example track ids where this occurrs:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;37ZJ0p5Jm13JPevGcx4SkF&lt;/LI&gt;&lt;LI&gt;0QPRDC97rIQB3Jh3hrVJoH&lt;/LI&gt;&lt;LI&gt;1kPpge9JDLpcj15qgrPbYX&lt;/LI&gt;&lt;LI&gt;2tGvwE8GcFKwNdAXMnlbfl&lt;/LI&gt;&lt;LI&gt;4ZtFanR9U6ndgddUvNcjcG&lt;/LI&gt;&lt;LI&gt;5wANPM4fQCJwkGd4rN57mH&lt;/LI&gt;&lt;LI&gt;6uxYfENm7zw050dNUi031W&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Example URL:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.spotify.com/v1/tracks?ids=37ZJ0p5Jm13JPevGcx4SkF&amp;amp;market=IT" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/tracks?ids=37ZJ0p5Jm13JPevGcx4SkF&amp;amp;market=IT&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example response:&lt;/STRONG&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;&lt;LI-CODE lang="javascript"&gt;{
    "tracks": [
        {
            "album": {
                "album_type": "album",
                "artists": [
                    {
                        "external_urls": {
                            "spotify": "https://open.spotify.com/artist/58lV9VcRSjABbAbfWS6skp"
                        },
                        "href": "https://api.spotify.com/v1/artists/58lV9VcRSjABbAbfWS6skp",
                        "id": "58lV9VcRSjABbAbfWS6skp",
                        "name": "Bon Jovi",
                        "type": "artist",
                        "uri": "spotify:artist:58lV9VcRSjABbAbfWS6skp"
                    }
                ],
                "external_urls": {
                    "spotify": "https://open.spotify.com/album/0kBfgEilUFCMIQY5IOjG4t"
                },
                "href": "https://api.spotify.com/v1/albums/0kBfgEilUFCMIQY5IOjG4t",
                "id": "0kBfgEilUFCMIQY5IOjG4t",
                "images": [
                    {
                        "height": 64,
                        "url": "https://i.scdn.co/image/ab67616d000048511336b31b6a1799f0de5807ac",
                        "width": 64
                    },
                    {
                        "height": 300,
                        "url": "https://i.scdn.co/image/ab67616d00001e021336b31b6a1799f0de5807ac",
                        "width": 300
                    },
                    {
                        "height": 640,
                        "url": "https://i.scdn.co/image/ab67616d0000b2731336b31b6a1799f0de5807ac",
                        "width": 640
                    }
                ],
                "name": "Slippery When Wet",
                "release_date": "1986-08-16",
                "release_date_precision": "day",
                "total_tracks": 10,
                "type": "album",
                "uri": "spotify:album:0kBfgEilUFCMIQY5IOjG4t"
            },
            "artists": [
                {
                    "external_urls": {
                        "spotify": "https://open.spotify.com/artist/58lV9VcRSjABbAbfWS6skp"
                    },
                    "href": "https://api.spotify.com/v1/artists/58lV9VcRSjABbAbfWS6skp",
                    "id": "58lV9VcRSjABbAbfWS6skp",
                    "name": "Bon Jovi",
                    "type": "artist",
                    "uri": "spotify:artist:58lV9VcRSjABbAbfWS6skp"
                }
            ],
            "disc_number": 1,
            "duration_ms": 249293,
            "explicit": false,
            "external_ids": {
                "isrc": "USPR38619998"
            },
            "external_urls": {
                "spotify": "https://open.spotify.com/track/37ZJ0p5Jm13JPevGcx4SkF"
            },
            "href": "https://api.spotify.com/v1/tracks/37ZJ0p5Jm13JPevGcx4SkF",
            "id": "37ZJ0p5Jm13JPevGcx4SkF",
            "is_local": false,
            "is_playable": true,
            "name": "Livin' On A Prayer",
            "popularity": 84,
            "preview_url": null,
            "track_number": 3,
            "type": "track",
            "uri": "spotify:track:37ZJ0p5Jm13JPevGcx4SkF"
        }
    ]
}&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 10:01:07 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-preview-url-for-track-is-null/m-p/5451414#M6876</guid>
      <dc:creator>anonymusdevelopment</dc:creator>
      <dc:date>2022-10-30T10:01:07Z</dc:date>
    </item>
  </channel>
</rss>

