如何使用Instagram图API获取第三人称Instagram数据

发布于 2025-02-12 09:50:17 字数 342 浏览 1 评论 0 原文

我成功地使用Instagram Graph API获取自己的数据,但无法找到获取其他人数据的方法。 官方文件清楚地表明,可以获得其他Instagram业务的基本数据元数据,并且无法找到有关它的任何代码或文档。 如果有人知道该怎么做,我很想知道。 即使为我提供了所说的信息的链接,这些链接被大大应用了。

公文 https://developers.faceers.facebook.com/docs/instagram-api

I am successful of fetching my own data using Instagram Graph Api but unable to find a way to get other person's data.
Official document clearly state that metadata of basic data for other Instagram businesses and creators are obtainable but not been able to find any code or document about it.
If anybody know how to do it I would love to know.
Even providing me a link to document or web page that have said information is hugely appriciated.

official document
https://developers.facebook.com/docs/instagram-api

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别念他 2025-02-19 09:50:17

这在 api参考

棘手的部分是您需要在URL中提供您的Instagram帐户ID (或“业务帐户ID”)。 (基本上,您的帐户节点用于访问 business_discovery edge。)

您在字段参数中提供目标帐户的用户名,例如:

https://graph.facebook.com/v3.2/YOUR_ACCOUNT_ID?fields=business_discovery.username(bluebottle){followers_count,media_count}&access_token={access-token}

其中 blueblottle 是用户名。您想要数据的帐户。

请注意,这确实与业务和创建者帐户一起使用,因此您不会以这种方式获得任何随机帐户的数据。


编辑:我已经介绍了在。总而言之,您可以使用此请求获取所有可访问的Instagram配置文件的帐户ID:

me/accounts?fields=instagram_business_account{id,name,username}

在Graph Api Explorer中尝试一下

然后,您将使用返回的 ID 返回 instagram_business_account_account 响应的字段。

This is described in the Business Discovery documentation. See also the API reference.

The tricky part is that you need to provide your Instagram account ID (or “business account ID”) in the URL. (Basically, your account's node is used to access the business_discovery edge.)

You provide the target account's username in the field parameter, for example:

https://graph.facebook.com/v3.2/YOUR_ACCOUNT_ID?fields=business_discovery.username(bluebottle){followers_count,media_count}&access_token={access-token}

Where bluebottle is the username of the account you want data for.

Mind that this really works with business and creators accounts, so you won't obtain data for any random account this way.


Edit: I've covered the process of getting the “business account ID” in this blog post. In summary, you can get the account ID of all accessible Instagram profiles using this request:

me/accounts?fields=instagram_business_account{id,name,username}

(Try it in Graph API Explorer)

You will then use the id field of the returned instagram_business_account response.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文