Instagram API 媒体端点给出空结果

Instagram API media endpoint giving null results

我有一个要求,我需要在 Instagram 的给定位置标记所有图像。 为此,我正在尝试将 Instagram API 与媒体端点一起使用,如 link https://www.instagram.com/developer/endpoints/media/.

中所述

我使用下面的APIURL来获取媒体信息。 https://api.instagram.com/v1/media/search?lat=48.858844&lng=2.294351&access_token=

但是结果显示为{"meta":{"code":200},"data":[]} 对于任何位置坐标,结果显示相同。

访问密钥有效,我得到了位置端点的结果

您可能处于沙盒模式https://www.instagram.com/developer/sandbox/

您只会在结果中看到您的照片和您的沙盒用户,请尝试搜索您已发布照片的位置,并且只会显示在结果中,一旦您的应用经过审核并上线,所有结果都会显示.

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