如何从 Instagram API 获取历史数据 [英] How to Get Historical Data from Instagram API

查看:36
本文介绍了如何从 Instagram API 获取历史数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作 Instagram 分析网络应用.我已经仔细阅读了所有 Instagram API 端点,但找不到任何获取历史数据的方法(即随时间推移的关注者).我所需要的只是一个日期,附加到每个关注者对象上.

但是,有一些 Instagram 分析网站可以提供此功能,例如 minter.io.

在这一点上,我认为:

  1. Minter 与 Instagram 有一些特殊安排,以获取其他数据,否则这些数据不会通过 API 提供.
  2. 我遗漏了一些东西..

我了解如何通过将用户数据与之前的报告进行比较来实现这一点(就像问这个问题)但显然 Minter 正在以其他方式做这件事,因为该报告是从我第一次与他们创建试用帐户时生成的.

任何帮助将不胜感激.提前致谢.

解决方案

现在 Facebook 图形 API 发布了 Instagram Insights API,它可以返回 Instagram 业务帐户的详细见解.

https://developers.facebook.com/docs/instagram-api/reference/user#insights

以上是用户洞察,其中包含关注者数量.现在,Graph API 下还提供了许多媒体见解.

有关如何使用此 API 的详细信息在以下答案中捕获:如何使用新的 Graph API 访问任何用户的 Instagram 提要?

I'm making an Instagram analytics web app. I've carefully read all of the Instagram API endpoints and I can't find any way to get historical data (ie, followers over time). All I would need would be something like a date followed, attached to each follower object.

However, there are Instagram analytics sites that offer this, for example, minter.io.

https://minter.io/faq#faq-posting-1

From link above: "Minter.io provides full historical data on Instagram accounts and hashtags except for: Accounts – List of Lost Followers Hashtags – Reach and Exposure In these reports the data will only be available from the date the report is first generated."

An example of this historical data, from minter.io report on my account:

At this point, I think that either:

  1. Minter has some special arrangement with Instagram to get additional data that otherwise isn't provided through API.
  2. I'm missing something..

I understand how this could be done by comparing user data to previous reports (like this SO question asked) but clearly Minter is doing it some other way, because that report was generated from the very first time I created a trial account with them.

Any help would be much appreciated. Thanks in advance.

解决方案

Now Facebook graph API has released the Instagram Insights API which returns detailed insights of Instagram Business accounts.

https://developers.facebook.com/docs/instagram-api/reference/user#insights

Above is for user insights, which has follower count. there are many media insights as well now available under graph API.

Details on how to consume this API is captured in the answer at: How to access Instagram feed of any user with new Graph API?

这篇关于如何从 Instagram API 获取历史数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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