<?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: Endpoint /search returns different values for &amp;quot;total&amp;quot; although the query is identical in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-Endpoint-search-returns-different-values-for-quot-total/m-p/5058615#M1400</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Germany&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;The curl command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X "GET" "https://api.spotify.com/v1/search?q=Ope&amp;amp;type=artist&amp;amp;market=US&amp;amp;limit=10&amp;amp;offset=0" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer MY-TOKEN"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;returns the following meta-data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"limit": 10,
"next": "https://api.spotify.com/v1/search?query=Ope&amp;amp;type=artist&amp;amp;market=US&amp;amp;offset=10&amp;amp;limit=10",
"offset": 0,
"previous": null,
"total": 4070&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The total is 4070. If I then request the next URL &lt;STRONG&gt;&lt;A href="https://api.spotify.com/v1/search?query=Ope&amp;amp;type=artist&amp;amp;market=US&amp;amp;offset=10&amp;amp;limit=10" target="_blank"&gt;https://api.spotify.com/v1/search?query=Ope&amp;amp;type=artist&amp;amp;market=US&amp;amp;offset=10&amp;amp;limit=10&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;is suddenly 4080. On the third page (offest=20) the total is 4085. On the fourth page the total is 4082.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like a bug to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 16:37:58 GMT</pubDate>
    <dc:creator>DanielWagner87</dc:creator>
    <dc:date>2020-10-22T16:37:58Z</dc:date>
    <item>
      <title>Web API: Endpoint /search returns different values for "total" although the query is identical</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-Endpoint-search-returns-different-values-for-quot-total/m-p/5058615#M1400</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Germany&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;The curl command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X "GET" "https://api.spotify.com/v1/search?q=Ope&amp;amp;type=artist&amp;amp;market=US&amp;amp;limit=10&amp;amp;offset=0" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer MY-TOKEN"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;returns the following meta-data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"limit": 10,
"next": "https://api.spotify.com/v1/search?query=Ope&amp;amp;type=artist&amp;amp;market=US&amp;amp;offset=10&amp;amp;limit=10",
"offset": 0,
"previous": null,
"total": 4070&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The total is 4070. If I then request the next URL &lt;STRONG&gt;&lt;A href="https://api.spotify.com/v1/search?query=Ope&amp;amp;type=artist&amp;amp;market=US&amp;amp;offset=10&amp;amp;limit=10" target="_blank"&gt;https://api.spotify.com/v1/search?query=Ope&amp;amp;type=artist&amp;amp;market=US&amp;amp;offset=10&amp;amp;limit=10&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;is suddenly 4080. On the third page (offest=20) the total is 4085. On the fourth page the total is 4082.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like a bug to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 16:37:58 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-Endpoint-search-returns-different-values-for-quot-total/m-p/5058615#M1400</guid>
      <dc:creator>DanielWagner87</dc:creator>
      <dc:date>2020-10-22T16:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Web API: Endpoint /search returns different values for "total" although the query is i</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-Endpoint-search-returns-different-values-for-quot-total/m-p/5058661#M1402</link>
      <description>&lt;P&gt;Same here, but I think this is quite a long-standing issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In some cases it can even return the wrong total with only one page of results!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 18:21:08 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-Endpoint-search-returns-different-values-for-quot-total/m-p/5058661#M1402</guid>
      <dc:creator>kkhal</dc:creator>
      <dc:date>2020-10-22T18:21:08Z</dc:date>
    </item>
  </channel>
</rss>

