skip to Main Content

I am looking to integrate Spotify artist data into an app. The ‘artist’ is authenticating with their user account, which they normally use to access their artist account. This particular artist is authenticating to Spotify via Facebook.

I can authenticate the user via our app and make requests to Spotify API with the access_token and refresh_token.

But I can’t seem to find a relationship between the authenticated user and their artist_id.

Is this even possible? If not, how can we get the artist info?

api.spotify.com/v1/me – the required artist data is not there

2

Answers


  1. I think you cannot automatic assign or search your user profile with the artist.

    On this site when you are logged user you can find “you” as an artist.

    IMO this action give you possibility to assign your account to Artist Profile.

    Login or Signup to reply.
  2. with the curl you can do this:

    curl -X "GET" "https://api.spotify.com/v1/me/following?type=artist&liit=20" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer here_your_access_token"
    

    To understand, look at https://developer.spotify.com/console/get-following/

    Try to adapt to your app, for example, I am not using curl on my app, I am using the httparty library.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search