如何获取其他页面关注者在Instagram中的数量? [英] How to get other pages followers count number in Instagram?
本文介绍了如何获取其他页面关注者在Instagram中的数量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能在Instagram中获取其他页面的追随者人数? 我只能获取个人资料关注者的人数,但是我也想获取其他关注者吗? (例如php)
is there possibility to get other pages follower count number in Instagram? I can get only my profile followers count number, but I want to get other followers too? (for example in php)
有什么想法吗?
推荐答案
是的,?__a=1
查询可能返回json.
Yes, it's possible with ?__a=1
queries which return json.
$otherPage = 'nasa';
$response = file_get_contents("https://www.instagram.com/$otherPage/?__a=1");
if ($response !== false) {
$data = json_decode($response, true);
if ($data !== null) {
$follows = $data['graphql']['user']['edge_follow']['count'];
$followedBy = $data['graphql']['user']['edge_followed_by']['count'];
echo $follows . ' and ' . $followedBy;
}
}
这篇关于如何获取其他页面关注者在Instagram中的数量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文