Is it possible to check whether a user has access to Spotify for Artists for a specific artist? - spotify

I am trying to automatically verify that a user is a particular Spotify artist (or at least on the artist's team). The problem is that an artist and a user are different. Spotify's authentication API deals with user accounts. However, user accounts are used to access Spotify for Artists and are internally verified by Spotify.
Therefore, it looks like I just need some way to check whether the user can access the artist. Is there any API or other way to check that a particular authenticated user is tied to a Spotify for Artists account?

Related

Saving user data from Spotify API

I'm currently toying around with the Spotify api to create a mobile app that "matches" people based on their top artists, tracks, and genres.
For this, I need to save the user data (top 50 tracks and artists, from the Personalization API) and fetch them back as needed.
So basically if User A signed in the app with its Spotify account, its data is saved in my DB.
After that, if User B wants to see if he is a match with User A the server will provide information about both User A and User B, for instance, what artist they both like.
There is this point in the TOS about user data:
"Spotify user data can be cached only for operating your SDA. If a Spotify user logs out of your SDA or becomes inactive, you will delete any Spotify Content related to that user stored on your servers. To be clear, you are not permitted to store Spotify Content related to a Spotify user or otherwise request user data if a Spotify user is not using your SDA"
As far as I understand, it's ok to save the user data in an external server/DB as long as I delete that data as soon as the user logs out from my app, is that right?
I'm asking because at the same time there is this restriction stated in the TOS:
"Do not transfer Spotify Content to unauthorized third parties, including (i) directly or indirectly transferring any data (including aggregate, anonymous or derivative data) received from Spotify to, or use such data in connection with, any ad network, ad exchange, data broker, or other advertising or monetization-related toolset, even if a user consents to such transfer or use; or (ii) to another music service that competes with Spotify or the Spotify Service."

Get user ID - WebAPI Spotify (Spotipy)

my question
is possible get a user id in any way? I would search a user from his name and print his recently artist played
Thanks
This is not possible due to Spotify's Web API has no endpoint where you can fetch user ids by their names.
What you can do is creating an application where a specific user can login using Spotify. Afterwards you can use this endpoint in order to retrieve the recently played tracks of that exact user. The track object in the response will hold the artist as well.

Spotify API: Get user owned playlists only

During developing a little spotify widget I want to receive my playlists. This is no problem with the Spotify API but I need to get only the playlists where the owner is the current user.
Is this possible?
Thanks a lot!
Julian
Julian, there's no API endpoint to only retrieve the endpoints that the user has created. Instead, your application needs to retrieve the Current User's list of Playlists and loop through them to filter out the user's own playlists by the owner property. (See Playlist object for details.)
If you don't know the user's username, use the Get Current User's Profile endpoint.

Is there any way to get user news through the official Instagram API?

I want to build Instagram client for Ubuntu. I already figured out how to get data like user feed through access token through Instagram API. But I can't figure out how to get user news (e.g. someone liked your photo, mentioned you in comment etc.), I guess user need to be logged on to watch his news (via http://instagram.com/api/v1/news/inbox/).
So, the question: is there any way to get user feed through API, or through access token? I don't want to request user password in my application, all I got is access token.
This endpoint (v1/news/inbox/) is not supported by official Instagram API. By the way; you can't access the data.

Obtaining the user's username via Foursquare API

I'm trying to obtain the user's username aka http://foursquare.com/USERNAME via the API. There seems to be no support for it in the User JSON response nor can I seem to find it anywhere else in the docu. Shouldn't it be available via a User request???
Foursquare identifies users by their user ID which is a number. Their default profile location is http://foursquare.com/user/USER_ID. You can also access a user's profile via http://foursquare.com/TWITTER_USERNAME if the user has connected their Twitter handle.
So given a user who has connected their twitter handle "FOOBAR" to foursquare, you can access their profile at http://foursquare.com/FOOBAR.

Resources