我怎样才能 "min_tag_id" 从 instagram api 中获取最近标记的媒体列表

How can I get "min_tag_id" to get a list of recently tagged media from instagram api

考虑到官方文档,我刚刚使用了下面的 link。

https://api.instagram.com/v1/tags/{tag-name}/media/recent?access_token=ACCESS-TOKEN

但是,即使我不使用 max_tag_id/min_tag_id 作为参数,它也会 returns 错误消息:

 {"pagination": {"deprecation_warning": "next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead"}, "meta": {"code": 200}, "data": []}

如何让 max_tag_id/min_tag_id 能够获得标记媒体的列表?

我也使用 link 为 min_tag_id 提供随机数,如下所示:

https://api.instagram.com/v1/tags/snowy/media/recent?access_token=272673723.8eadebe.2243d71d379541118c9f24bc221a99e5&min_tag_id=10

它给我以下错误信息:

"error_message": "min_id must not be a media id."

如何获取要使用的媒体 ID min_tag_id?我的主要问题是从 instagram api 获取标记媒体。但它很烂。

我的状态是沙盒模式

您只能在沙盒模式下访问最新的 20 篇帖子,一旦进入实时模式,您将看到带有 min_tag_id 和 max_tag_id

的分页数据

The behavior of the API when you are in sandbox mode is the same as when your app is live, but comes with the following restrictions:

  • Data is restricted to sandbox users and the 20 most recent media from each sandbox user
  • Reduced API rate limits

https://www.instagram.com/developer/sandbox/