apiinstagram-apiuserid

Instagram get user ID from username


I recently found out from my employer that a public access token is no longer needed for obtaining a user ID from a user name which is great but I cannot find the relative documentation. I have been on the Instagram api and I cannot find this information or how it is achieved.

I found the solution using a client_ID like so.

https://api.instagram.com/v1/users/search?q=[USERNAME]&client_id=[CLIENT ID]

Solution

  • I found the solution using a client_ID like so.

    https://api.instagram.com/v1/users/search?q=[USERNAME]&client_id=[CLIENT ID]