API to add album or a playlist to a playlist - beatsmusic

Is there any API to add the contents of an album or a existing playlist to a new playlist? Based on the current documentation, it seems that only addition of a track to a playlist is supported. I'm hoping to avoid bulk add (by fetching the content of a playlist) and then adding them as tracks.
There are nice convenient APIs to add an album to MyLibrary. It would be nice to have something similar to add an album to a playlist.

There isn't currently a way to do what you ask. You have to get all the track ids from the playlist or album and then add them to the new playlist. You can bulk add the tracks, at least, but you'll still have to do it in two separate steps for now.

Related

How to get the full track mp3 url?

Through the track api I got preview field,it can provide a 30 second address.but I want get a full track mp3 url, excuse how to get the full track mp3 url by deezer API when I have a Premium+ users token.Thinks.
The only way to play a full track is by using our SDKs available here: http://developers.deezer.com
There is no possibility to retrieve the MP3 URL.

How To Get All Songs of An Artist on Spoitfy?

In their docs for getting top tracks on an artist they mention this:
The 10 maximum tracks are the ones displayed by the Spotify app. If you want to fetch more artist’s top tracks, an alternative way is to use Echo Nest song/search to accomplish this. It will accept a Spotify artist id for input and give you Spotify id’s in the output.
I'm pretty sure the Echo Nest Api no longer exists, so I am wondering if there is still a way to get songs of an artist other than just 10 of them?
Alternatively I was thinking of using Last.fm's Api to do it if Spotify no longer supports that functionality, if anyone has any other suggestions of how one could work around this that would be great! Thanks in advance.
I think you won't be able to achieve it in single API call in Spotify. However there's an alternative:
Request all albums of an artist (have a look here):
https://api.spotify.com/v1/artists/{id}/albums
And then request the tracks of each album (have a look here):
https://api.spotify.com/v1/albums/{id}/tracks
To avoid one request for each album, you can get multiple albums at once and when an album is requested, the tracks of such album will be returned in a paging object. You can pass the desired albums identifiers separated by , in the id query parameter to the following endpoint (have a look here):
https://api.spotify.com/v1/albums
A solution that was more sufficient for me here was:
https://api.spotify.com/v1/search?type=track&q=artist:ArtistName
this returns the top songs by this artist, with pagination so definitely more than 10 results.
The only caveat is that this includes songs that the artist might be featured on, but I think this is useful really as if it's a popular song your user might be looking for it.

Search for tracks in Deezer playlist

In the Deezer API, is it possible to search for tracks in a specific playlist? Something like http://api.deezer.com/search/track?playlist=785141981&q=felix.
I don't think you can.
You will have to load the playlist with http://api.deezer.com/playlist/785141981, then look for the tracks.data property.
You will have all the tracks for this playlist then you can do the search manually.

get music from Mixcloud/soundcloud and use with own player?

I want to make a website with my own audio player (with waveform.js but own styled), but at the same time take my audio tracks from soundcloud or mixcloud, is this possible?
I have read the documentation for soundcloud api and realized that yes, but to be sure I need to check in practice.
Therefore, I decided to ask you first, is it possible to take from soundcloud or mixcloud mp3, artist name, trackname and count of likes (count both from my site and sc/mc)? If not, what parts of native sc/mc player I have to use at least?
Thanks.
yes this is possible using the soundcloud api.
<audio src="http://api.soundcloud.com/tracks/TRACKID/stream?client_id=CLIENTID" controls="true" preload="auto"></audio>
replacing TRACKID and CLIENTID with their respected values.

Spotify Playlist URl

I'm working with Spotify. I've Spotify playlist with me. Now the question is how to obtain the url from that playlist in order to play the song??
SPPlaylist has a spotifyURL property, as does SPTrack (and pretty much every other metadata object).