English 中文(简体)
Spotify API get Related Artists
原标题:
  • 时间:2011-04-27 21:40:05
  •  标签:
  • api
  • spotify

Is there a way to get a list of related artists through the spotify api. Like the small list that displays in the actual program?

Would be very useful if so, but I am not so sure

Cheers

最佳回答

Yes, it s available through libspotify. There s a SPArtistBrowse class that contains a lot of metadata, including the related artists. Check out the

CocoaLibSpotify comes with a documentation package, where you can find more details on what s included: https://github.com/spotify/cocoalibspotify.

Do note that it s currently extremely slow to load an entire SPArtistBrowse object. I m assuming it s got something to do with libspotify loading it all in one chunk and on the main thread (?). From what I know, Spotify are suppose to remedy that in an upcoming version of libspotify, though.

问题回答

Get an artist s related artists is now available through the Spotify Web API.

GET https://api.spotify.com/v1/artists/{id}/related-artists is the format.

https://api.spotify.com/v1/artists/43ZHCT0cAZBISjO8DG9PnE/related-artists is an example request.

For more information, see the API documentation.

There is also a JSFiddle demo app.

Definitely! All you need is the "artist_id" and the SpotifyPublicAPI can return a list of the related artists. You don t need an access_token at all.

You can easily test the API call here on RapidAPI. I ve specifically linked you to the getArtistsRelatedArtists endpoint. Rapid will provide you with a code snippet you can copy and paste directly into your code to make the call.

Here is an example testing the API call using Beyonce s artist_id:

getArtiistsRelatedArtists Beyonce

Here is a sample code snippet provided by RapidAPI wth Beyonce s artist_id passed as a parameter:

BeyonceCodeSnippet





相关问题
C# Networking API s [closed]

Lately I ve been looking for a good networking API i could possibly use and/or reference some of the code within, but i have mere luck searching for some on Google/Bing. Hopefully somebody here has ...

getting XML from other domain using ASP.NET

I m fairly new to ASP.NET. And I was wondering how I could go about getting xml from a site (Kuler s API in this case), and then post the result using AJAX? So what I want here, is to be able to do a ...

Most appropriate API for URL shortening service

I ve just finished an online service for shortening URLs (in php5 with Zend Framework); you can enter an URL and you get an short URL (like tinyurl and such sites). I m thinking about the API for ...

UML Diagram to Model API

I need to create a diagram to document a RESTFul API that build, which UML diagram should I use? Thanks in advance,

How best to expose Rails methods via an API?

Let s say I have a model foo, and my model has a publish! method that changes a few properties on that model and potentially a few others too. Now, the Rails way suggests that I expose my model over ...

简讯

我是否可以使用某些软件来建立简便的航天国家服务器,最好是在 Java? 所有我都希望我的航天国家服务机在任何要求中都用同样的IP地址来回答。

About paypal express checkout api

In this picture,there are 3 main steps:SetExpressCheckout,GetExpressCheckoutDetails and DoExpressCheckoutDetails,I m now sure SetExpressCheckout is to be called by myself,what about ...

热门标签