-
Easiest way to get the instagram id of the given username.
-
Access token is not needed.
-
Only a few lines of code.
-
PHP example.
-
username = $_GET["username"];
-
Send a get request to:
https://www.instagram.com/username/?__a=1
- The returned JSON contains the user id.
Send a get request with the parameter "username"