Details:
1) Easiest way to get the instagram id of the given username.
2) Access token is not needed.
3) Only a few lines of code.
4) PHP example available on github.
https://github.com/anakornk/Get-Instagram-ID-From-Username-PHP/
How it works?:
1) username = $_GET[“username”];
2) Send a get request to:
https://www.instagram.com/username/?__a=1
3) The returned JSON contains the user id.
Structure of the returned JSON:
Code:
Usage:
Send a get request with the parameter “username”
Credits:
http://stackoverflow.com/a/38342137/5334285