Is it possible to feed the Soundcloud widget a list of song track IDs? - soundcloud

Is it possible to feed the Soundcloud widget a list/array of song IDs, or do I need to listen for specific events and load them in that way?

sure, you can.
next time, pls come up with code.
docs:
https://developers.soundcloud.com/docs/api/html5-widget
playground:
https://w.soundcloud.com/player/api_playground.html
(i guess in the playground example you will find a list example, favs from user with id 1539950)

Related

YouTube API. How to display the video view counter and the channel subscriber counter? SWIFT

I'm a completely new user of Swift, I understand YouTube api using this playlist: https://www.youtube.com/playlist?list=PLMRqhzcHGw1aLoz4pM_Mg2TewmJcMg9ua But I had a problem: 1- I need to be able to display it in addition to the video itself and its name number of views 2 - I need to display separately the number of subscribers of the channel whose playlist I want to display
How to get this information from youtube api? Please explain as simply as possible, I'm still a noob, thanks!

Is there a way to match ID video and ID post with Facebook Graph API?

I need to gather reaction count, share count, comments, duration and view count of every video posted on my Facebook account. I use :
https://graph.facebook.com/v10.0/me/videos to get the comments, duration and view count
https://graph.facebook.com/v10.0/me/posts to get reaction count and share count.
Each call returns an ID. However, I get the video ID with me/videos and the post ID with me/posts which differ from one another even if they are linked to the same video. I do not manage to find a key to match them. Is there a way to find the post ID from me/videos or the video ID form me/posts? Or is there another way to make them match?
The attachments field of the post should contain the reference to the video.
The opposite connection does not exists AFAIK, because there could be multiple posts made sharing the same video.

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.

API to add album or a playlist to a playlist

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.

SoundCloud search API order by hottnes

The API method https://api.soundcloud.com/tracks.json?oder=hotness&q= used to return great hot tracks with many plays on soundCloud. It now returns a bunch of random tracks with 0 plays. Has anyone else noticed it? Is there another way to get a bunch of hot tracks available on SoundCloud via the API?
They removed hotness params.
Check here http://developers.soundcloud.com/blog/removing-hotness-param