【问题标题】:Instagram API Endpoint: GET /locations/search Distance ParameterInstagram API 端点:GET /locations/search 距离参数
【发布时间】:2018-10-09 09:45:36
【问题描述】:

我目前正在使用 Instagram API 的位置/搜索端点,使用 python 脚本来接收特定坐标对(lat、lng)的单个位置名称。 为了只取回最匹配的位置,我尝试实现 distance 参数并将其设置为 0(也尝试了 1 等 - 玩弄它)。 我的 get 请求目前如下所示:

{base}locations/search?lat={latitude}&lng={longitude}&distance={dist}&access_token={token}'.format(base="https://api.instagram.com/v1/".....)

我使用 Instagram 开发者文档作为参考。 (https://www.instagram.com/developer/endpoints/locations/)

但是无论我输入什么作为距离参数,输出总是相同的。这意味着我总是会返回多个位置。正如我上面提到的,我玩弄了它 - 似乎没有任何效果。

如果有人能帮助我并告诉我我做错了什么,我将不胜感激。 在此先感谢:)

【问题讨论】:

    标签: api parameters location instagram endpoint


    【解决方案1】:

    这不是问题的直接答案,但对于最终解决这个问题的人来说 - 这个端点不再存在。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-28
      相关资源
      最近更新 更多