Skip to content

Get the instagram id of the given username without an access token.

Notifications You must be signed in to change notification settings

anakornk/Get-Instagram-ID-From-Username-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Get the instagram id of the given username without an access token.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages