Created
March 15, 2018 18:03
-
-
Save burhandodhy/bd1be9dc402397dc3e6e550137a593d6 to your computer and use it in GitHub Desktop.
Get Instagram Follower Counts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$username = 'burhandodhy'; | |
$response = @file_get_contents( "https://www.instagram.com/$username/?__a=1" ); | |
if ( $response !== false ) { | |
$data = json_decode( $response, true ); | |
if ( $data !== null ) { | |
$full_name = $data['graphql']['user']['full_name']; | |
$follower = $data['graphql']['user']['edge_followed_by']['count']; | |
echo "{$full_name} have {$follower} followers."; | |
} | |
} else { | |
echo 'Username not found.'; | |
} | |
?> |
this code not working for me...
Anyone managed how to get an instagram follower counter in 2021? :C
Anyone?
We need help about it
If its not working for you. Insta blocked you from sending any more requests.
This is not working!!
this is not working!
Its working like a charm, maybe you all dont have a cert installed? can you do curl on ssl? if not, you need a certificate on your local server. a pem/cert file (on xampp) or similar. i dont got any problems here.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's work for my Accounts. Thanks, good job.