Answer the question
In order to leave comments, you need to log in
Is it possible to open a profile on instagram using id in the address bar?
how to replace the nickname in the address bar with instagram id so that the profile opens?
Similarly VK: vk.com/durov ------> vk.com/id1
Answer the question
In order to leave comments, you need to log in
You cannot do this directly - you must first convert the identifier into a username.
To do this, you can make a request to https://i.instagram.com/api/v1/users/25025320/info/ , where instead of 25025320 substitute the required id - json will be returned indicating the user's login. In the request, be sure to specify the User-Agent of the Instagram mobile application.
This is a private api, and most likely there are limits on the number of requests per unit of time.
Source https://stackoverflow.com/a/56424242
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question