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

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

Type a product name