Instagram Graph API,获得关注者的关注者 [英] Instagram Graph API, get followers of followers

查看:116
本文介绍了Instagram Graph API,获得关注者的关注者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找出答案...

I'm trying to figure something out...

由于大多数旧" API已关闭,因此我研究了Graph API.我想检索特定用户的关注者列表.对于我的一生,我无法弄清楚……这真的不再可能了吗? Business Discovery API仅限于企业帐户(目前是整个Graph API),但即使如此,似乎也只能检索followers_count,而不是实际的关注者.

As most of the 'old' API has been shut down, I've taken a look at the Graph API. I would like to retrieve the list of followers of a specific user. For the life of me I can't figure it out... is this really not possible anymore? The Business Discovery API is limited to only business accounts (as is the whole Graph API for now), but even that only seems to be able to retrieve the followers_count, not the actual followers.

https://developers.facebook.com/docs/instagram-api/业务发现

我无法解决的问题:在Graph API的所有这些限制下,HypeAuditor.com之类的服务仍如何运行?如果API受到如此难以置信的限制,他们如何获取数据?

What I can't wrap my head around: With all these limitations of the Graph API, how is it that services like HypeAuditor.com are still up and running? How are they getting their data, if the API is so incredibly limited?

也许有人有一些见识..

Maybe someone has some insights..

推荐答案

Instagram API已于2018年4月4日弃用(您可以在

Instagram API was deprecated as April 4th 2018 (You can read all of the change log here https://www.instagram.com/developer/changelog/) and this is all because privacy issues landed on Instagram as so many developers misused the API to retrieve user data massively using user's private key.

现在,您仍然可以使用Instagram API,但仅限于您自己的用户(因为Instagram仅使该端点可供您使用).如果要获取其他用户的数据(例如,贾斯汀·比伯的关注者,关注,帖子数等),则可以使用开发人员通过对Instagram应用程序进行反向工程而制作的Instagram Private API.如果您选择使用Instagram私有API,则需要小心,因为在一段时间内您对最大请求的限制会更大(根据我的经验,每5分钟左右有100个请求提取用户数据的请求).

Now, you can still use Instagram API but only limited to your own user (since Instagram only leave this endpoint available for you). If you want to get other user's data (for example Justin Bieber's follower, following, post count, etc.) you can use Instagram Private APIs made by developers by reverse engineering the Instagram app. If you choose to use Instagram private API, you need to be careful, because you will have bigger limitation of maximum request in some period of time (from my experience, about 100 request of pulling user data per-5 minutes or so).

您需要注意, Facebook不希望您弃用大多数API端点来访问其他人的数据.

Facebook目前正在开发一种称为Graph API的新Instagram API.但是,如果您没有任何产品处于生产状态,则您的应用程序可能会被拒绝(在When To Submit部分 https://developers.facebook.com/docs/apps/review/).通过使用此API,您可以通过连接Instagram和Facebook帐户来获取所有人口统计数据(仅限您自己的用户).

Facebook currently is developing new Instagram API for awhile called Graph API. But if you don't have any products in a production state, your application might be rejected (read here at When To Submit section https://developers.facebook.com/docs/apps/review/). By using this API, you can get all of your demographics data (limited to your own user) by connecting your Instagram and Facebook account.

这是我曾经使用过的优质Instagram私有API的引用:

This is a reference to a good Instagram Private API I ever use:

  1. PHP ( https://github.com/mgp25/Instagram-API ) 记下来,在下面进行解释.
  2. Python ( https://github.com/LevPasha/Instagram-API-python )
  1. PHP (https://github.com/mgp25/Instagram-API) Taken down, explanation below.
  2. Python (https://github.com/LevPasha/Instagram-API-python)

如果您只需要像这样的基本数据:

If you just need basic data like:

  1. 模拟Instagram搜索栏
  2. 基本数据,例如姓名,Instagram句柄,关注者人数

Instagram有供公众使用的API端点.您可以使用以下链接格式:

there is API endpoint for public use by Instagram. You can use this link format:

https://www.instagram.com/web/search/topsearch/?context=blended&query=put_instagram_username_here.

收集所需的数据(例如follower_count)后,您就可以开始处理数据并进行存储了.我可以通过在Instagram网站上进行网络调用进行调试来获取端点.

After gathering the desired data (e.g. follower_count) you can start processing the data and store it. I get the endpoint by debugging at network calls from the Instagram web.


更新(2020年2月19日):


UPDATE (19th February 2020):

mg25制造的PHP存储库已被Facebook Inc.(

PHP repository made by mg25 has been taken down by Facebook Inc. (github DMCA article here) because of data violation and prohibited usage behavior of Instagram API.

更新(2020年3月22日):

UPDATE (22nd March 2020):

这里是通过mgp25上传到Launchpad的Instagram-API的克隆( launchpad.net/instagram-api).谢谢尤金提供的信息!

Here is clone of Instagram-API by mgp25 uploaded to Launchpad (launchpad.net/instagram-api). Thank you Eugene for this info!

免责声明:使用该库需要您自担风险!由于不再维护该库,因此可能不建议使用某些API.这样做可能很危险,并可能导致永久禁止.

这篇关于Instagram Graph API,获得关注者的关注者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆