Announcements

Help Wizard

Step 1

NEXT STEP

Check If User Follows Artists or Users API returns inconsistent results

Check If User Follows Artists or Users API returns inconsistent results

Plan

Free

Country

Multiple: Poland (testing from), US (backend infrastructure location)

 

Device

WEB/Curl

Operating System

OSX/Linux

 

My Question or Issue

API to check if current user is following artist returns inconsistent results. If I'm running it from my local env (from Poland), it returns correct results, however if I run same request with the same token, it returns incorrect results that don't reflect the actual situation.

 

Example curl:

curl --request GET \
  --url 'https://api.spotify.com/v1/me/following/contains?type=artist&ids=2ye2Wgw4gimLv2eAKyk1NB%2C6mdiAmATAx73kdxrNrnlao' \
  --header 'Authorization: Bearer 1POdFZRZbvb...qqillRxMr2z'

Response from my local env (Poland) which corresponds to actual state. The API calls from this location reflect the changes immediately.

[true, true]

Same curl running on one of our backend instances in US, always returns incorrect result and it doesn't change regardless if I follow or unfollow the artist.

[true, false]

 

Our APP is still in development mode and has the following scopes:

  • "user-follow-read",
  • "playlist-read-private",
  • "user-library-read"
Reply
0 Replies

Suggested posts

Let's introduce ourselves!

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…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random