<?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 API Returns Irrelevant Track on Limit=1 in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Search-API-Returns-Irrelevant-Track-on-Limit-1/m-p/7041581#M18390</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Malaysia&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Mac Mini M2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;macOS 15.4.1&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’ve been experimenting with the Spotify Web API (v1) and noticed something odd with the /search endpoint that I’m not sure how to explain. I’m wondering if anyone else has encountered this or can shed some light.&lt;/P&gt;&lt;P&gt;Here are two specific examples:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Request:&lt;BR /&gt;/v1/search?q=not%20like%20us&amp;amp;limit=1&amp;amp;type=track&lt;BR /&gt;Expected: “Not Like Us” by Kendrick Lamar&lt;BR /&gt;Actual: “LUTHER (with SZA)” by Kendrick Lamar, SZA&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Request:&lt;BR /&gt;/v1/search?q=i%20gotta%20feeling&amp;amp;limit=1&amp;amp;type=track&lt;BR /&gt;Expected: “I Gotta Feeling” by The Black Eyed Peas&lt;BR /&gt;Actual: “We Hug Now” by Sydney Rose&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;In both cases, if I increase the limit to 2 or higher, the expected result appears correctly as one of the top items. This makes me wonder:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Is this an issue with how the API handles ranking when limit=1?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Could it be a token/authorization scope issue?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Or am I structuring my query incorrectly?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any insight or advice would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jul 2025 11:02:58 GMT</pubDate>
    <dc:creator>ooneoneo</dc:creator>
    <dc:date>2025-07-07T11:02:58Z</dc:date>
    <item>
      <title>Search API Returns Irrelevant Track on Limit=1</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Search-API-Returns-Irrelevant-Track-on-Limit-1/m-p/7041581#M18390</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Malaysia&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Mac Mini M2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;macOS 15.4.1&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’ve been experimenting with the Spotify Web API (v1) and noticed something odd with the /search endpoint that I’m not sure how to explain. I’m wondering if anyone else has encountered this or can shed some light.&lt;/P&gt;&lt;P&gt;Here are two specific examples:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Request:&lt;BR /&gt;/v1/search?q=not%20like%20us&amp;amp;limit=1&amp;amp;type=track&lt;BR /&gt;Expected: “Not Like Us” by Kendrick Lamar&lt;BR /&gt;Actual: “LUTHER (with SZA)” by Kendrick Lamar, SZA&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Request:&lt;BR /&gt;/v1/search?q=i%20gotta%20feeling&amp;amp;limit=1&amp;amp;type=track&lt;BR /&gt;Expected: “I Gotta Feeling” by The Black Eyed Peas&lt;BR /&gt;Actual: “We Hug Now” by Sydney Rose&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;In both cases, if I increase the limit to 2 or higher, the expected result appears correctly as one of the top items. This makes me wonder:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Is this an issue with how the API handles ranking when limit=1?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Could it be a token/authorization scope issue?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Or am I structuring my query incorrectly?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any insight or advice would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 11:02:58 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Search-API-Returns-Irrelevant-Track-on-Limit-1/m-p/7041581#M18390</guid>
      <dc:creator>ooneoneo</dc:creator>
      <dc:date>2025-07-07T11:02:58Z</dc:date>
    </item>
  </channel>
</rss>

