[ HELP NEED ] Instagram Follower Count With PHP

You need a php script, that displays the number of followers a certain account has? Does it always have to be the same account or do you need to input the username?
 
Always for the same name
 
I wrote few lines of code for you.
<?php
$account='audi';
$instagramsource=file_get_contents('https://instagram.com/' . $account);
preg_match_all('/"userInteractionCount":"(.*?)"/', $instagramsource, $count);
$followcount=$count[1][0];
echo "$account instagram account has $followcount followers";
?>
 
Not work for my
upload_2019-9-17_11-47-1.png

php version 7.3

Edit:
Fixed. Thanks
 
Last edited by a moderator:
Back
Top