We are currently working on a spotify app but we don't know how to get the unique userId
Does anyone know how to get it ?
This answer says that Spotify is intentionally hiding it from you. They've provided you with the identifier field to give you a key to identify a user using your app.
Related
I need to scrape Instagram by user id number instead of username. How can I do it?
You can access user profile like this
https://instagram.com/{username}
but I need to access it like below. It doesn't have to be exactly like below. Is it possible to find such path?
https://instagram.com/{profile_id}
I don't think there's any possible way to do it.
Anyway, how do you get the profile_id. I thought it is not available to be seen anywhere?
you could send a GET request to this url
https://i.instagram.com/api/v1/users/<user_id>/info/
from its response you'll get the username and from that you can use your initial url
https://instagram.com/<username>/
I heard that Instagram recently changed their APIs and I have a related question to that.
Let's assume I would like to build an "Instagram feed app of people I follow". So this app would just show me the pictures of all people I follow. From what I understand this would be possible, but I would always have same manual effort:
From the Instagram developer website I understand that I need the access_token from all my friends.
Do I understand that correctly?
This would mean every time I follow someone new, I would have to get his/her access_token manually and add it into my app.
Do I understand this correctly or is there a programmatic/automated way to get the needed access_token from the new followed person?
Yes, you are correct. This is not possible at the moment. I'm not sure how you would get the access token of friends. You would have to have them login as well. BTW: This seems to be the way facebook is going (since they now control Instagram). They require that both friends have authorized your app and then they will list their followers.
Since Spotify announced to close Echo Nest API and migrate several methods in Spotify API, I decided to implement theses new functions now.
Like Echo Nest API, is it possible to get a track with a foreign ID like Deezer ? Or to get the foreign ID of a Spotify track ? At May 31 maybe ?
Thanks.
Right now there is no info about it. No one can tell. I already know of another developer hoping for the same. He asked about it here and here. You can see that he posted on Spotify web api Github site and got no answer.
One of the cool things about Spotify is the ability to view playlists created by both users and artists.
You can get a list of playlists for any user with:
https://api.spotify.com/v1/users/{user_id}/playlists
This will work if you plug in an artist's user id as well.
Example: https://api.spotify.com/v1/users/officialfoofighters/playlists returns playlists created by Foo Fighters (the actual band).
The problem is that I see no way to programmatically get an artist's user id. The actual artist id is different and will not work. I managed to manually get Foo Fighter's user id in a hacky way using the Spotify desktop client, but I would like to find a programmatic solution.
Anyone know of any workarounds?
I'm happy that you're asking for this, because it's a feature that we've been wanting to add to the Web API for a while. So even though the answer to this question is that it isn't possible to find an artist's username using the Web API (and the other way around) right now, I'd urge you to keep up to date on changes in the API through #SpotifyPlatform or our Change Log.
I just wonder whether there's a way to get user's gender on instagram... I walked through instagram's api and for user's info got from users/userId doesn't include the gender info.
Thanks for your help.
NO, there is currently no way to get the gender of the instagram user from API
Instagram API does not work, they do not allow this anymore.
The thing you can do, is to scrape name of the user and then determine gender based on name. There is Python lib for this, you can find it here: https://pypi.org/project/gender/