PHP:
<?php
$username = 'page id';
$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} {$follower}تا فالور داره.
";
}
} else {
echo 'همچین کاربری نداریم';
}
?>