Instagram标签最近的搜索始终返回null数组

时间:2016-05-11 05:44:17

标签: instagram instagram-api

我想找到特定的标签媒体和这些信息。

并且,遵循instagram API文档。

但是,特定标签媒体API总是返回空数组。

我尝试了这一步。

  1. 获取AccessToken
  2. https://api.instagram.com/oauth/authorize/?client_id=[C_ID]&redirect_uri=http://localhost:3001/instagram/callback&response_type=token&scope=basic+public_content+relationships

    重定向并返回accestoken

    http://localhost:3001/instagram/callback#access_token=ACCESS_TOKEN

    1. 查找特定标签(例如雪)
    2. https://api.instagram.com/v1/tags/snow?access_token=ACCESS_TOKEN

      回,且

      {
           "meta": 
           {
               "code": ​200
           },
           "data": 
                 {
                  "media_count": ​11664,
                  "name": "snow"
            }
      
       }
      
      1. 查找特定标签媒体列表
      2. https://api.instagram.com/v1/tags/snow/media/recent?access_token=ACCESS_TOKEN

        回,且

        {
        
            "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": [ ]
        
        }
        

        为什么要返回null数组?

        什么是max_tag_id,min_tag_id?

1 个答案:

答案 0 :(得分:0)

您几乎肯定看不到任何结果,因为您搜索的主题标签在过去的20篇帖子中未被使用过。

这是一个简短的article explaining how the new Instagram API works

TL; DR:如果您的应用处于沙盒模式,则只能看到您或您的沙盒用户查看过去的20个帖子。