Get the Instagram ID of a user without an access token
Details#
- The easiest way to get the instagram id of a given username.
- Access token is not needed.
- Only a few lines of code.
- PHP example available on github: https://github.com/anakornk/Get-Instagram-ID-From-Username-PHP/
Usage#
Send a get request with the parameter “username”

How it works#
- username =
$_GET["username"] - Send a get request to: https://www.instagram.com/username/?__a=1
- The returned JSON contains the user id.
Structure of the returned JSON (may have changed):

Code#
