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

Inconsistent artist names between Spotify APP and SDK callback

Inconsistent artist names between Spotify APP and SDK callback

When playing the song Golden, the artist names displayed on the App are: HUNTR/X, EJAE, AUDREY NUNA, etc. However, the artist name obtained through the Spotify API method: 

- (void)playerStateDidChange:(id<SPTAppRemotePlayerState>)playerState;

 is only: HUNTR/X.

The version of the Spotify SDK I am using is: 3.0.0, and the iOS device model is: iPhone17,2.

I hope we can communicate here to find the cause of the problem, or I would appreciate some information about how I can proceed or who I can talk to to get this resolved. Thanks!

 

Reply
1 Reply

Hello! Welcome to the Spotify Community.

 

The playerStateDidChange method returns only the track's main artist by design, to keep the response fast and streamlined.

 

To get the full list of all artists (such as "HUNTR/X, EJAE, AUDREY NUNA"), you need to follow these steps:

1. In playerState, get the track's URI (playerState.track.uri).

2. Extract the track's ID from this URI.

3. Use this ID to make a call to the Spotify Web API at the /v1/tracks/{id} endpoint.

4. The response from this API will contain an artists array with the full list of all artists, which you can then display in your app.

 

Keep me updated if you still need help!

 

Cheers,
ribezaz

ribezazSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

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