Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
Please see below the most popular frequently asked questions.
Loading article...
Loading faqs...
Please see below the current ongoing issues which are under investigation.
Loading issue...
Loading ongoing issues...
When I use OAuth and Client Credentials to query the Spotify API, I get different search results. Specifically, with OAuth, I can't find certain tracks. For instance, when I search for "concorde lady machine," it should return a track with the ID 23Z5gNoNs9jZCAh9ILPbKL, but this track doesn’t appear in the results when using OAuth as authorization. I've checked that the track is available for the user and I can get it using directly the id.
I've continued experimenting and found that the issue is due to my account. I tried with another account using OAuth, and I get the expected result, the same as when using Client Credentials. I would really appreciate some support, as I've already contacted the support chat, but they can't help me because it’s a developer-related issue, and this is the only path they've suggested—asking here. However, since it’s account-specific, I think I need a different channel to communicate with someone regarding this issue. Thank you.
I've investigated more and I think that this is caused by the "locale" parameter. I've different values in my accounts:
locale=en-US%2Cen%3Bq%3D0.9
locale=en%2Ces-ES%3Bq%3D0.9%2Ces%3Bq%3D0.8%2Caf%3Bq%3D0.7
I've tried to make an http request with this parameter but it doesn't affect the results. I would appreciate if I can review or change this value on my account.
Hi. I think you'll find using the market parameter might help.
For me https://api.spotify.com/v1/search?q=concorde%20lady%20machine&type=track&market=ES found the track.
https://api.spotify.com/v1/search?q=concorde%20lady%20machine&type=track&market=US did not.
Hi, thanks for the feedback, I've already tried using the market parameter but it didn't resolve the issue. It's something related to the account or a configuration that user can't change, the same api call with the same parameters for another account returns the expected result and both accounts are in the same region. This "locale" parameter is the only difference I've been able to see between each one.
Hi fullfine_dev!
The reason you are getting a different search result between OAuth and Client Credentials is because the former takes into consideration the specific user to personalize the result (unless the user has opted out of personalization).
We also do not guarantee that search results will be the same between different users, you should expect the result to vary.
As for why you are not getting a specific track when searching for a specific string could be due to track relinking, or how the search algorithm works. We would discourage you from trying to create app logic that depends on a string returning the same track in search every time, for every user, because we make no guarantees of this.
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game and get…