<?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 API Access Tokens return different results in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Access-Tokens-return-different-results/m-p/5050603#M1309</link>
    <description>&lt;P&gt;Hi, I'm using the Spotify Web API to search for songs (&lt;A href="https://developer.spotify.com/console/get-search-item" target="_blank" rel="noopener"&gt;https://developer.spotify.com/console/get-search-item&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Client ID/Secret and I wrote Python code to retrieve an access_token using the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://accounts.spotify.com/api/token" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/api/token&lt;/A&gt;&amp;nbsp;endpoint. This works fine, I am able to retrieve an access token. Now I tried to search for the following song:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;SPAN&gt;Worry No More (feat. Lil Yachty &amp;amp; Santigold)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I pass "&lt;SPAN&gt;Worry No More (feat. Lil Yachty &amp;amp; Santigold)" as q, and "track" as type. I get 0 results.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;So I went to &lt;A href="https://developer.spotify.com/console/get-search-item" target="_blank" rel="noopener"&gt;https://developer.spotify.com/console/get-search-item&lt;/A&gt;&amp;nbsp;and entered the same parameters but I was able to see the expected results. So I took the access_token given to me on the Web Console for the Search Endpoint and used it in my code (instead of requesting a token using my client credentials) and it worked, I got the expected results.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;For some reason the token given to me by&amp;nbsp;&lt;A href="https://accounts.spotify.com/api/token" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/api/token&lt;/A&gt;&amp;nbsp;(using client credentials) was not able to return results for that song, but the token provided by the Web Console worked fine. Why am I facing this issue?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have also asked this question on StackOverflow (&lt;A href="https://stackoverflow.com/questions/64290526/spotify-tokens-return-different-results-for-the-same-query" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/64290526/spotify-tokens-return-different-results-for-the-same-query&lt;/A&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sat, 10 Oct 2020 06:31:46 GMT</pubDate>
    <dc:creator>u6378881</dc:creator>
    <dc:date>2020-10-10T06:31:46Z</dc:date>
    <item>
      <title>API Access Tokens return different results</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Access-Tokens-return-different-results/m-p/5050603#M1309</link>
      <description>&lt;P&gt;Hi, I'm using the Spotify Web API to search for songs (&lt;A href="https://developer.spotify.com/console/get-search-item" target="_blank" rel="noopener"&gt;https://developer.spotify.com/console/get-search-item&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Client ID/Secret and I wrote Python code to retrieve an access_token using the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://accounts.spotify.com/api/token" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/api/token&lt;/A&gt;&amp;nbsp;endpoint. This works fine, I am able to retrieve an access token. Now I tried to search for the following song:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;SPAN&gt;Worry No More (feat. Lil Yachty &amp;amp; Santigold)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I pass "&lt;SPAN&gt;Worry No More (feat. Lil Yachty &amp;amp; Santigold)" as q, and "track" as type. I get 0 results.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;So I went to &lt;A href="https://developer.spotify.com/console/get-search-item" target="_blank" rel="noopener"&gt;https://developer.spotify.com/console/get-search-item&lt;/A&gt;&amp;nbsp;and entered the same parameters but I was able to see the expected results. So I took the access_token given to me on the Web Console for the Search Endpoint and used it in my code (instead of requesting a token using my client credentials) and it worked, I got the expected results.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;For some reason the token given to me by&amp;nbsp;&lt;A href="https://accounts.spotify.com/api/token" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/api/token&lt;/A&gt;&amp;nbsp;(using client credentials) was not able to return results for that song, but the token provided by the Web Console worked fine. Why am I facing this issue?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have also asked this question on StackOverflow (&lt;A href="https://stackoverflow.com/questions/64290526/spotify-tokens-return-different-results-for-the-same-query" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/64290526/spotify-tokens-return-different-results-for-the-same-query&lt;/A&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 06:31:46 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Access-Tokens-return-different-results/m-p/5050603#M1309</guid>
      <dc:creator>u6378881</dc:creator>
      <dc:date>2020-10-10T06:31:46Z</dc:date>
    </item>
  </channel>
</rss>

