Get play count of a track from Spotify API - spotify

Is it possible to get the play count of a song (for the current user)? I only found Toplist and the Track class, but neither tells me how often a user listened to a song.

As far as I know there is no way to retrieve that data at the moment.

This is not possible through the Spotify API right now.
The Last.fm API does offer information similar to this, as a potential work-around.

Marked as not right now on the Spotify support site.
http://community.spotify.com/t5/Spotify-Ideas/Personal-play-count-for-songs/idi-p/506618
However, this article from 538 a journalist got a look at Nestify where that information is available.
I would assume that the information would eventually be made available via the API.

Related

Playlist for "all songs" and organizing alphabetically

I am wondering if there is anywhere I can to give suggestions to the developers. I love spotify and I use it daily, at least! There are just a few things that I think would be great improvements. Such as, adding a playlist that includes all songs in every playlist that you, personally make. Or something similar to that. It would also be really helpful and convenient if you had the option to organize playlists alphabetically. Please let me know if there is a place where these ideas can be heard!
Thanks!
This is a great point and this is a problem that we've recognised as well. We're currently working on new ways of creating a discussion between third party developers and the teams that works on the APIs, so please stay tuned and have a look at the Developer site from time to time. If you've got feature suggestions for Spotify in general, there's the Spotify Ideas forum. We also monitor #SpotifyPlatform on Twitter for API related topics.

Is possible to acces the waveform of a song from a spotify app?

I am thinking on how to build an spotify app that does beat detection (extract bpm of a song).
For that I need to access the raw audio, the waveform, and analyze it.
I am new to building spotify apps.
I know that with "libspotify" you can access raw audio. Can you do the same through the spotify apps API? And how?
For the record, currently exist two spotify apps apis:
Current
Preview
Unless you're really keen on writing that beat detection code yourself, you should look at the APIs provided by the EchoNest, which include that (and many other awesome things).
see Getting the tempo, key signature, and other audio attributes of a song
In a word: no. That isn't currently available in the Apps API.
There’s a new endpoint I guess. See an example https://medium.com/swlh/creating-waveforms-out-of-spotify-tracks-b22030dd442b?source=linkShare-962ec94337a0-1616364513
That uses the endpoint https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-analysis/
Edit: I agree with commenter #wizbcn that this does not answer this question. Is it sort of incorrect to leave it here because I found this SO post while searching for info about visualizing the tack's waveform as in the linked article? Maybe I should make this a comment instead?

Is there a way to find number of subscribers from a playlist URL?

I'm making a spotify app that I want to show the number of subscribers from a given playlist URL submitted by a user.
I have looked around their documentation but can't seem to find much useful information.
Thanks!
EDIT: I would like to use the web API as I don't really know C. Hopefully it's still possible.
The Web API doesn't support any playlist lookup at all, so unfortunately this isn't possible.
libSpotify supports this (see sp_playlist_num_subscribers), but be aware you need to have the user log into their Spotify account before this can be done, which may not be what you're wanting to do.

Mobile check in API with embedded form

I'm looking to pull some information off of the people that check into my location to learn a bit about them. The plan is to offer them a special through foursquare once they've completed the form. Has anyone done this? Is it even possible?
See https://foursquare.com/business/merchants/claiming for information about claiming your venue and https://developer.foursquare.com/overview/merchants for the relevant API endpoints.

Why do I need a flickr api key?

Reading through the Flickr API documentation it keeps stating I require an API key to use their REST protocols. I am only building a photo viewer, gathering information available from Flickr's public photo feed (For instance, I am not planning on writing an upload script, where a API key would be required). Is there any added functionality I can get from getting a Key?
Update I answered the question below
To use the Flickr API you need to have an application key. We use this to track API usage.
Currently, commercial use of the API is allowed only with prior permission. Requests for API keys intended for commercial use are reviewed by staff. If your project is personal, artistic, free or otherwise non-commercial please don't request a commercial key. If your project is commercial, please provide sufficient detail to help us decide. Thanks!
http://www.flickr.com/services/api/misc.api_keys.html
We set up an account and got an API key. The answer to the question is, yes there is advanced functionality with an API key when creating something like a simple photo viewer. The flickr.photos.search command has many more features for reciving an rss feed of images than the Public photo feed, such as only retrieving new photos since the last feed request (via the min_upload_date attribute) or searching for "safe photos" only.
If you have a key, they can monitor your usage and make sure that everything is copacetic -- you are below request limit, etc. They can separate their stats on regular vs API usage. If they are having response time issues, they can make response a bit slower to API users in order to keep the main website responding quickly, etc.
Those are the benefits to them.
The benefits to you? If you just write a scraper, and it does something they don't like like hitting them too often, they'll block you unceremoniously for breaking their ToS.
If you only want to hit the thing a couple of times, you can get away without the Key. If you are writing a service that will hit their feed thousands of times, you want to give them the courtesy of following their rules.
Plus like Dave Webb said, the API is nicer. But that's in the eye of the beholder.
The Flickr API is very nice and easy to use and will be much easier than scraping the feed yourself.
Getting a key takes about 2 minutes - you fill in a form on the website and then email it to you.
Well, they say you need a key - you need a key, then :-) Exposing an API means you can pull data off the site way easier, it is understandable they want this under control. It is pretty much the same as with other API enabled sites.

Resources