<?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 Query search work on spotify app, but not when i use API in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Query-search-work-on-spotify-app-but-not-when-i-use-API/m-p/4948896#M97</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use the Spotify API to get some informations about a specific sound.&lt;/P&gt;&lt;P&gt;I have the track title and artist, so I'm using the search item endpoint.&lt;/P&gt;&lt;P&gt;My example is to find the title "Balayer" by "13 Block".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I go on&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;https://developer.spotify.com/console/get-search-item/?q=artist%3A%2213%20Block%22%20track%3A%22Balayer%22&amp;amp;type=track&amp;amp;market=&amp;amp;limit=10&amp;amp;offset=0&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;It found me the track I'm searching for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I got to my ReactJS app, I'm using axios package to call the API.&lt;/P&gt;&lt;P&gt;First I'm calling&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;https://accounts.spotify.com/api/token&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;With grant_type: client_credential, to get my API token. Then I'm doing a second call by using the URL given in the API test page, and of course the token in header, and my search return 0 items in the response.&lt;/P&gt;&lt;P&gt;I tried several URL encoding, I tried without artist: and track: keys, and it really don't want to find the track.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know why and how to fix it please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alexandre Navaro&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2020 14:40:15 GMT</pubDate>
    <dc:creator>Navalex</dc:creator>
    <dc:date>2020-05-07T14:40:15Z</dc:date>
    <item>
      <title>Query search work on spotify app, but not when i use API</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Query-search-work-on-spotify-app-but-not-when-i-use-API/m-p/4948896#M97</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use the Spotify API to get some informations about a specific sound.&lt;/P&gt;&lt;P&gt;I have the track title and artist, so I'm using the search item endpoint.&lt;/P&gt;&lt;P&gt;My example is to find the title "Balayer" by "13 Block".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I go on&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;https://developer.spotify.com/console/get-search-item/?q=artist%3A%2213%20Block%22%20track%3A%22Balayer%22&amp;amp;type=track&amp;amp;market=&amp;amp;limit=10&amp;amp;offset=0&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;It found me the track I'm searching for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I got to my ReactJS app, I'm using axios package to call the API.&lt;/P&gt;&lt;P&gt;First I'm calling&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;https://accounts.spotify.com/api/token&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;With grant_type: client_credential, to get my API token. Then I'm doing a second call by using the URL given in the API test page, and of course the token in header, and my search return 0 items in the response.&lt;/P&gt;&lt;P&gt;I tried several URL encoding, I tried without artist: and track: keys, and it really don't want to find the track.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know why and how to fix it please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alexandre Navaro&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 14:40:15 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Query-search-work-on-spotify-app-but-not-when-i-use-API/m-p/4948896#M97</guid>
      <dc:creator>Navalex</dc:creator>
      <dc:date>2020-05-07T14:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Query search work on spotify app, but not when i use API</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Query-search-work-on-spotify-app-but-not-when-i-use-API/m-p/4972686#M385</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/3645009"&gt;@Navalex&lt;/a&gt;, help's here!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hmm, that doesn't sound right! Are you still having issues with this? What is the response you in your ReactJS app? Also, what is the code you use to call the API? I'd love to get to the bottom of this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a good one!&lt;/P&gt;&lt;P&gt;Hubo&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 13:10:25 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Query-search-work-on-spotify-app-but-not-when-i-use-API/m-p/4972686#M385</guid>
      <dc:creator>Hubo</dc:creator>
      <dc:date>2020-06-08T13:10:25Z</dc:date>
    </item>
  </channel>
</rss>

