public_content 范围 returns 空结果的 Instagram 沙盒应用程序请求

Instagram sandboxed app request with public_content scope returns empty result

我正在尝试拉取带有特定标签的媒体。我已经授权并取回范围为 'basic' 和 'public_content' 的令牌。然而,以下请求返回状态代码 200,但即使是空数据也是如此。标签 'london' 内容很多。

https://api.instagram.com/v1/tags/london?access_token= [我的代币]

此请求是否格式错误或 Instagram API 行为不当?

在沙盒模式下,Instagram 仅 returns 与沙盒用户关联的数据。

写在docs, section API behaviour:

Data is restricted to sandbox users and the 20 most recent media from each sandbox user.

[...]

As another example, let's consider an endpoint that returns a list of media: /tags/{tag-name}/media/recent. The response returned by this endpoint will contain only media with the given tag, as expected. But instead of returning media from any public Instagram user, it will return only media that belongs to your sandbox users, restricted to the last 20 for each user.

如果您为沙盒用户创建了一个 "london" 标签,您应该会看到它。一旦您的应用程序切换到实时状态,您应该会看到所有 public 个可用的 "london" 个标签。

您的请求没有格式错误,API 的行为如文档中所述。