Instagram userId to username

aragonthebest

Newbie
Joined
Jan 8, 2017
Messages
17
Reaction score
1
Hey, is there a way to get the username from a given userId, through webscrapping, without login?
 
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.
 
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.
worth a try, bro
 
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
 
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 also try users/{userId}/info/ (private Instagram API).
 
Almost all the endpoints (if not all) on Instagram are limited. You can try also users/{userId}/info/ (private Instagram API).

Yes but a private instagram api would also need a login.
i agree with the statement, that the endpoints are limited, but you can always use proxys. And than there are no limits :)
 
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
 
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

I try one thing.
 
igerslike.com has an built-in scrapper for this kind of job
 
Ok... I find a way in two steps, but without login. If you are familiar with programming, and JSON, you can make it.
 
Ok... I find a way in two steps, but without login. If you are familiar with programming, and JSON, you can make it.
yes i am familiar with programming. So whats the way?
 
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.:)
 
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.:)


NICE! Thank you :)

This would probably not work for private user or user with 0 medias. But its ok :D
 
Last edited:
Back
Top