如何获取Instagram个人资料信息?

问题描述:

我想知道如何让instagrams个人资料信息(头像和追随者数量)根据请求显示。如何获取Instagram个人资料信息?

你可以看到这里的行动脚本:http://followers10k.club/

,我需要访问IG API?

或者它可以与某种报废?

非常感谢你我提前!

我发现脚本是负责与跟随者的信息显示IG用户名:

<?php         
        $username = $_GET['username']; 
        $url = "https://www.instagram.com/" . $username;         
        $data = @file_get_contents($url); 
        preg_match('/\"followed_by\"\:\s?\{\"count\"\:\s?([0-9]+)/',$data,$followed_by); 
        preg_match('/\"follows\"\:\s?\{\"count\"\:\s?([0-9]+)/',$data,$following); 
        preg_match('/\"full_name"\:\s?\"([a-zA-Z ]+)/',$data,$full_name); 
        preg_match('/\"profile_pic_url"\:\s?\"((http[s]?:\/\/)?([^\/\s]+\/)(.*?)")/',$data,$profile_pic);     
       if ($data === false) { ?> 

我现在的问题是:当有人进入一个真正的Instagram的用户名我的网站不能识别它,并说有一个错误&输入一个有效的用户名。