I have a podcast which I am accessing by RSS to embed it in our web site. But I need to display the play count of all episodes. I can find the play count in the admin panel, but not in the RSS.
On the other hand, in the API documentation, there's a play_count field for a track. I guess if I loop through all tracks and fetch play_count, then I will receive the overall play count, right?
If that's true, I would like to ask the team to let me create an application, because it seems that's the only way to receive a secret and access the API.
Thank you
Related
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.
I'm trying to get the playlist information fromSoundCloud HTTP API and I'm getting the playlist information and the track_count return the right number for tracks that I have in the playlist but the tracks is empty.
I have tried the following links: https://api.soundcloud.com/playlists/215861217
The track_count returns for this playlist is 2.
Any idea why?
This is probably related to a change in the settings from the soundcloud developers. If you try to get the track information of the tracks of your playlist you get a 403 forbidden:
https://api.soundcloud.com/tracks/106185859?client_id=...
https://api.soundcloud.com/tracks/243762135?client_id=...
SoundCloud emailed back saying they have introduced an option for right holders to disable all API access to tracks by default, returning this 403 error when requested. They also said it's understandable that this is a confusing feature, and that they hope to make it more clear.
These type of questions should not be handled on stackoverflow, but unfortunately that is the only way to contact the soundcloud developers according to their documentation. I've tried reaching out to them on twitter, but so far no response.
My team and I are looking to use the embedded SoundCloud widget for a site we're building. We'd like to use the API to track the total number of plays by tracking the playback_count property for each track, however I've not been able to find specific information on how/when this is incremented. I'm looking to answer:
Does is only track completed plays? Or started plays?
Does it track multiple plays by the same user/client?
Does it track plays made by the streaming URL (in a custom player) or only the embedded player/SoundCloud website?
It appears that the playback_count is not updated immediately, is the playback_count updated (nightly/hourly etc.)?
Is there a list of supported browsers/devices for the
embed?
SoundCloud increments the count as soon as the play button is clicked (reference).
Plays are tracked by any user which is not the track owner (see above reference).
Tracks are only counted by the web player, mobile app, mobile website, and official embeds. Requests to any of the /streams endpoint values (ex: http_mp3_128_url), do not count towards the play count.
playback_count values may be invalid due to caching (reference).
The embed widget is supported by most browsers which support HTML5 media playback. See these blogs posts as well as SoundCloud's own HTML5 audio benchmark project here.
I have a website on which users can rate a concert and I'd like to post this action on the user's timeline.
But since facebook already has common Rate action only for books and videos, I cannot find a way to do this.
I see two alternatives (but I don't know if they're possible):
Using the common rate action on a custom object (for example, a music festival in my website)
Creating another action which is similar to rate just so I can publish on facebook (it is kind of cheating, but I can't really see another way)
I'd like to know which is the better way to go now, or if there's another alternative.
Since facebook only allows rating for books and videos yet, you could use in your facebook story symbols like ✪ or ✭.
So you only need to write them dynamically into your user story, user feed or the way you let your user post their ratings. I think when you put them into headline, they'll be big enough.
Here are some stars: ✩ ✪ ✫ ✬ ✭ ✮ ✯ ✰
I know that it is just a bad workaround, but as soon as I'll know that facebook changed their rating system, I'll update this answer.
I have an idea to create a "top posts" feature to my website, which creates the "top" list depending on how many likes and shares that a post have on facebook.
Users may see how many likes an post has received so far since they only have to ask for a single, defined url. However, the website itself has to be able to query all the links that are tied to itself (which have a predefined url template like website.com/[post-id]) to create the "top" list. Is it possible to do something similar (or achieve the same result in a different way)?
Any ideas on a real workflow about something like this will be appreciated!
this seems like a little but interesting project. I don't know if there is a feature that could get that directly in the way you want, but i did something similar.
First you have the Graph API, with that you can get the Posts of a user using feed, with that every post is telling you how many likes does it have which you can get with POST_ID/likes.
Then you'll have to check for changes in the post periodically comparing its created_time and updated_time.
This could seem very hard, because you have a lot of posts and you have to check them all for updates, but you can use batch_requests so you can check them all at once.
I have made a bookmarklet which shows top posts in the Facebook News Feed as well as Google+, Twitter and Instagram Profiles.
Just add a new bookmark in your bookmarks bar and replace its URL with the following code and save it, then go to the social network website and run it:
javascript:(function(){var s=document.createElement('script');s.src='https://niutech.github.io/topnewsfeed/topnewsfeed.min.js';document.body.appendChild(s);})()
The source code is available on GitHub.