我想找到特定的标签媒体和这些信息 .
并且,遵循instagram API文档 .
但是,特定标签媒体API总是返回null数组 .
我尝试了这一步 .
- 获取AccessToken
重定向并返回accestoken
http://localhost:3001/instagram/callback#access_token=ACCESS_TOKEN
- 查找特定标签(例如雪)
https://api.instagram.com/v1/tags/snow?access_token=ACCESS_TOKEN
回,
{
"meta":
{
"code": 200
},
"data":
{
"media_count": 11664,
"name": "snow"
}
}
- 并查找特定标签媒体列表
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 回答
您几乎肯定没有看到任何结果,因为您搜索的主题标签未在过去的20篇帖子中使用过 .
这是一个简短的article explaining how the new Instagram API works .
TL; DR:如果您的应用处于沙盒模式,则只能看到您或您的沙盒用户查看过去20个帖子 .