<?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 Search for Item endpoint returning wrong Artist in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Search-for-Item-endpoint-returning-wrong-Artist/m-p/6137265#M14202</link>
    <description>&lt;P&gt;I am testing out the Search for Item end point to search for artists. I am getting back the wrong artist consistently. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl --request GET \&lt;BR /&gt;--url '&lt;A href="https://api.spotify.com/v1/search?q=radiohead&amp;amp;type=artist&amp;amp;limit=1&amp;amp;offset=0" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/search?q=radiohead&amp;amp;type=artist&amp;amp;limit=1&amp;amp;offset=0&lt;/A&gt;' \&lt;BR /&gt;--header 'Authorization: Bearer 1POdFZRZbvb...qqillRxMr2z'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;returns back Thom Yorke instead of Radiohead.&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;{
  "artists": {
    "href": "https://api.spotify.com/v1/search?query=radiohead&amp;amp;type=artist&amp;amp;locale=en-US%2Cen%3Bq%3D0.9&amp;amp;offset=0&amp;amp;limit=1",
    "limit": 1,
    "next": "https://api.spotify.com/v1/search?query=radiohead&amp;amp;type=artist&amp;amp;locale=en-US%2Cen%3Bq%3D0.9&amp;amp;offset=1&amp;amp;limit=1",
    "offset": 0,
    "previous": null,
    "total": 801,
    "items": [
      {
        "external_urls": {
          "spotify": "https://open.spotify.com/artist/4CvTDPKA6W06DRfBnZKrau"
        },
        "followers": {
          "href": null,
          "total": 1079828
        },
        "genres": ["alternative rock", "art pop", "art rock", "electronica", "glitch pop", "indie rock", "oxford indie"],
        "href": "https://api.spotify.com/v1/artists/4CvTDPKA6W06DRfBnZKrau",
        "id": "4CvTDPKA6W06DRfBnZKrau",
        "images": [
          {
            "url": "https://i.scdn.co/image/ab6761610000e5ebaa834b50a2fbd31708a71681",
            "height": 640,
            "width": 640
          },
          {
            "url": "https://i.scdn.co/image/ab67616100005174aa834b50a2fbd31708a71681",
            "height": 320,
            "width": 320
          },
          {
            "url": "https://i.scdn.co/image/ab6761610000f178aa834b50a2fbd31708a71681",
            "height": 160,
            "width": 160
          }
        ],
        "name": "Thom Yorke",
        "popularity": 56,
        "type": "artist",
        "uri": "spotify:artist:4CvTDPKA6W06DRfBnZKrau"
      }
    ]
  }
}&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;</description>
    <pubDate>Sat, 15 Jun 2024 19:44:45 GMT</pubDate>
    <dc:creator>ricknucci</dc:creator>
    <dc:date>2024-06-15T19:44:45Z</dc:date>
    <item>
      <title>Search for Item endpoint returning wrong Artist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Search-for-Item-endpoint-returning-wrong-Artist/m-p/6137265#M14202</link>
      <description>&lt;P&gt;I am testing out the Search for Item end point to search for artists. I am getting back the wrong artist consistently. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl --request GET \&lt;BR /&gt;--url '&lt;A href="https://api.spotify.com/v1/search?q=radiohead&amp;amp;type=artist&amp;amp;limit=1&amp;amp;offset=0" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/search?q=radiohead&amp;amp;type=artist&amp;amp;limit=1&amp;amp;offset=0&lt;/A&gt;' \&lt;BR /&gt;--header 'Authorization: Bearer 1POdFZRZbvb...qqillRxMr2z'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;returns back Thom Yorke instead of Radiohead.&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;{
  "artists": {
    "href": "https://api.spotify.com/v1/search?query=radiohead&amp;amp;type=artist&amp;amp;locale=en-US%2Cen%3Bq%3D0.9&amp;amp;offset=0&amp;amp;limit=1",
    "limit": 1,
    "next": "https://api.spotify.com/v1/search?query=radiohead&amp;amp;type=artist&amp;amp;locale=en-US%2Cen%3Bq%3D0.9&amp;amp;offset=1&amp;amp;limit=1",
    "offset": 0,
    "previous": null,
    "total": 801,
    "items": [
      {
        "external_urls": {
          "spotify": "https://open.spotify.com/artist/4CvTDPKA6W06DRfBnZKrau"
        },
        "followers": {
          "href": null,
          "total": 1079828
        },
        "genres": ["alternative rock", "art pop", "art rock", "electronica", "glitch pop", "indie rock", "oxford indie"],
        "href": "https://api.spotify.com/v1/artists/4CvTDPKA6W06DRfBnZKrau",
        "id": "4CvTDPKA6W06DRfBnZKrau",
        "images": [
          {
            "url": "https://i.scdn.co/image/ab6761610000e5ebaa834b50a2fbd31708a71681",
            "height": 640,
            "width": 640
          },
          {
            "url": "https://i.scdn.co/image/ab67616100005174aa834b50a2fbd31708a71681",
            "height": 320,
            "width": 320
          },
          {
            "url": "https://i.scdn.co/image/ab6761610000f178aa834b50a2fbd31708a71681",
            "height": 160,
            "width": 160
          }
        ],
        "name": "Thom Yorke",
        "popularity": 56,
        "type": "artist",
        "uri": "spotify:artist:4CvTDPKA6W06DRfBnZKrau"
      }
    ]
  }
}&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;</description>
      <pubDate>Sat, 15 Jun 2024 19:44:45 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Search-for-Item-endpoint-returning-wrong-Artist/m-p/6137265#M14202</guid>
      <dc:creator>ricknucci</dc:creator>
      <dc:date>2024-06-15T19:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Item endpoint returning wrong Artist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Search-for-Item-endpoint-returning-wrong-Artist/m-p/6138572#M14208</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an issue I faced a while ago, and it still appears to exist. Attached is the solution that wor&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="Screenshot from 2024-06-16 15-43-02.png" style="width: 400px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/174385iA3D99A4100C147D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot from 2024-06-16 15-43-02.png" alt="Screenshot from 2024-06-16 15-43-02.png" /&gt;&lt;/span&gt;ked for me. It appears that if you set the search limit to 1, it doesn't return what you want, but if you change it to 2, it somehow manages to get it correct. In the example below, I have proven with 2 artists that the best way to resolve this issue is to set the limit to 2, and extract the first artist. In the first example, a search for Radiohead, and a limit of 1 results in REM, but changing the limit to 2 results in Radiohead being the first result. This also occurs with all the other artists I tested, including Depeche Mode, which returns Duran Duran on a limit of 1; Depeche Mode on a limit of 2.&lt;/P&gt;&lt;P&gt;I hope this helps, and let me know if you still can't get it to work,&lt;/P&gt;&lt;P&gt;Alex Kinney&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 14:53:38 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Search-for-Item-endpoint-returning-wrong-Artist/m-p/6138572#M14208</guid>
      <dc:creator>AlexKinney</dc:creator>
      <dc:date>2024-06-16T14:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Item endpoint returning wrong Artist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Search-for-Item-endpoint-returning-wrong-Artist/m-p/6138681#M14209</link>
      <description>&lt;P&gt;@AlexKinney you can insert a code block by first clicking on the …, and then on the &amp;lt;/&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 16:10:18 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Search-for-Item-endpoint-returning-wrong-Artist/m-p/6138681#M14209</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-06-16T16:10:18Z</dc:date>
    </item>
  </channel>
</rss>

