ios - Instagram私有(private)API关注者/取消关注者

标签 ios swift instagram-api

我在我的iOS应用程序中使用Instagram公共API来获取用户分析(例如关注者/关注者等),但是由于Cambridge Analytica Misues由于最近面对Facebook,Instagram终止了一些公共API,因此突然停止了工作。

所以我的问题是,有一些像这样的私有API(https://github.com/ping/instagram_private_api)将起作用,或者也将停止工作?

非常感谢您的指导。

最佳答案

没有专用的API,但是有些事情可能会有所帮助。您可以使用Instragram公共搜索:

https://www.instagram.com/web/search/topsearch?context=user&q={username}


这将返回所有匹配用户的JSON结果。如果您对JSON满意,这应该很容易进行搜索。第一个结果可能是您的用户。

另一件事是每个用户在以下位置都有一个页面:

https://www.instagram.com/{username}


在此页面上,您可以找到带有可轻松刮取的内容的元标记。他们以“ og:”开头

<meta property="og:description" content="6,853 Followers, 1,282 
Following, 392 Posts - See Instagram photos and videos from Steve 
Porter Photography (@shutternuts)">

关于ios - Instagram私有(private)API关注者/取消关注者,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50543149/

相关文章:

ios - 如何在Chrome上模拟iOS用户代理,以使Apple Pay能够显示?

iphone - 更新 XCode 项目模板详细信息

xcode - 试着绕过展开线? swift 2.0,XCode 7

javascript - 创建 Instagram API 地理订阅时出现 CORS 问题

jquery - Instagram:未获取更新时间

instagram-api - Instagram API 按标签搜索,空白返回

iphone - 使用映射模型在核心数据对象模型之间迁移

ios - 来自 PFUser 的 QBUser

ios - locationManager 代表不工作

ios - SceneKit:围绕自身旋转节点