Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

API Access Tokens return different results

API Access Tokens return different results

Hi, I'm using the Spotify Web API to search for songs (https://developer.spotify.com/console/get-search-item)

 

I have a Client ID/Secret and I wrote Python code to retrieve an access_token using the https://accounts.spotify.com/api/token endpoint. This works fine, I am able to retrieve an access token. Now I tried to search for the following song:

Worry No More (feat. Lil Yachty & Santigold)

I pass "Worry No More (feat. Lil Yachty & Santigold)" as q, and "track" as type. I get 0 results. 

 

So I went to https://developer.spotify.com/console/get-search-item 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.

 

For some reason the token given to me by https://accounts.spotify.com/api/token (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?

 

I have also asked this question on StackOverflow (https://stackoverflow.com/questions/64290526/spotify-tokens-return-different-results-for-the-same-qu...)

 

Thanks!

Reply
0 Replies

Suggested posts

Type a product name