aragonthebest
Newbie
- Jan 8, 2017
- 17
- 1
Hey, is there a way to get the username from a given userId, through webscrapping, without login?
worth a try, broI think it is more easiest get this information with login.
If you have this id-s, its not so difficult create an login... than loop throw and collect the real usernames.
I think it is more easiest get this information with login.
If you have this id-s, its not so difficult create an login... than loop throw and collect the real usernames.
yes this would be a possibility with "/web/friendships/{{accountId}}/follow/"
however, it would be very slow, because after a login, i can't do many requests in a short timeperiod
Almost all the endpoints (if not all) on Instagram are limited. You can try also users/{userId}/info/ (private Instagram API).
How many useids have you?
about 17k
but i think, you are right. If i use the private api, to catch the actual userIds from e.g. followers, I can also catch the actual usernames. After that, i can get the rest of the information through webscrapping without login
yes i am familiar with programming. So whats the way?Ok... I find a way in two steps, but without login. If you are familiar with programming, and JSON, you can make it.
https://www.instagram.com/graphql/query/?query_id=17888483320059182&variables={"id":"YOURIDWHATYOUWANTCHECK","first":1,"after":""}
https://www.instagram.com/p/YOURSHORTCODEWHATYOUCATCHFROMFIRSTREQUEST/?__a=1
So. First request this url.:
Code:https://www.instagram.com/graphql/query/?query_id=17888483320059182&variables={"id":"YOURIDWHATYOUWANTCHECK","first":1,"after":""}
Here you can use ID.
The response you will got his post.:
From this response JSON, you can catch his first post "Owner -> Shortcode".
Than, second request.:
Code:https://www.instagram.com/p/YOURSHORTCODEWHATYOUCATCHFROMFIRSTREQUEST/?__a=1
and from this jsonresponse.:
Owner - > username ! or what you need.![]()