Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 730 Bytes

File metadata and controls

35 lines (22 loc) · 730 Bytes

Get-Instagram-ID-From-Username-PHP

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.

How it works?:

  1. username = $_GET["username"];

  2. Send a get request to:

https://www.instagram.com/username/?__a=1

  1. The returned JSON contains the user id.

Code:

Usage:

Send a get request with the parameter "username"

Credits:

http://stackoverflow.com/a/38342137/5334285