Get user's gender on Instagram - instagram

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/

Related

how to access Instagram user profile by using user id instead of username?

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>/

Instagram API Possible Solution

I have one question, with an Instagram Username. Can I get back data from that user? for example, get photos and number of followers? (only if profile is public)
I'm creating a website were users can upload their Instagram username #example and based on that scrap and create a profile on the website with their latest photos and the number of followers (all of this without logging).
I think This image will help to understand what I'm trying to achieve, Can someone guide me? this is possible with Instagram API?
Yes this was possible recently with https://www.instagram.com/<username>/?__a=1 but instagram recently blocked this possibility.
I'll update my post if I find a new method.

How to retrieve Instagram followers' locations?

I've searched through the topics but it seems that exactly this questions hadn't been asked yet.
Could anyone, please, share their opinion on how to retrieve an Instagram account followers' posts locations in order to map them after that on one map?
On the account there are around 2000-2100 followers.
Thank you in advance!
To get detailed user information from instagram you have to use the GET /users/user-id endpoint.
So to get the location information for all an accounts followers you have to use
GET/users/user-id/followed-by and iterate through the results.
Be careful. Instagram api limit is currently 5000 requests per hour. Accounts with more followers than that you will have to use some form of queue
Edit: just seen you want the post locations:
Similar method, excite instead of GET /users/user-id user GET /users/user-id/recent and grab the locations of the media. Note in my experience the location function is used very little by instagram users. I once pulled 3000 media that had only 20 media with a location
You cannot just location of a user using APIs, there are couple ways you can guess the location, by looking for bio information and check if they have any location specified or you can check location of all the photos posted by a user and kind of guess the location by analyzing where most of the photos are being posted at.
you can use the API /users/user-id/recent to get all the photos from a user and look for location property in API response and map it on google map.
you can use http://gramfeed.com to see user photos with a map of photo locations, you will have to do this for each user and determine the location.

How to get Spotify UserId?

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.

find venue with twitter id via API

We integrate our service to 4sqr, this is done by our customer informing us of their venue-id from the 4sqr URL. However, if a venue is claimed and a twitter associated with the venue the url is switched to one with the twitter id.
so, one of two things after this twitter acct is in place for a venue:
1. how does one find the venue-id in your UI?
or
2. how does one query the venue details using the twitter handle?
thanks
Foursquare's /users/search should work (you're basically searching for a "venue user"). https://developer.foursquare.com/docs/explore#req=users/search%3Ftwitter%3Dwinkellyauto

Resources