答案 0 :(得分:6)
简单。只需将&count=-1
添加到api通话的后面即可。
例如:
https://api.instagram.com/v1/tags/YOURTAG/media/recent?access_token=YOURACCESSTOKEN&count=-1
* 2014年4月更新(来源:@ user1406691):count=-1
不再可用。响应:
{"meta":{"error_type":"APIInvalidParametersError","code":400,
"error_message":"Count must be larger than zero."}}
您可能希望改用:
https://api.instagram.com/v1/tags/YOURTAG/media/recent?access_token=YOURACCESSTOKEN&count=35
还有另一种通过rss + db的方法,但它更长,虽然它不限于30次/小时。
答案 1 :(得分:3)
实际上,有机会获得接下来的20张照片,然后是接下来的20张,依此类推...... 在JSON响应中,有一个" 分页"阵列:
"pagination":{
"next_max_tag_id":"1411892342253728",
"deprecation_warning":"next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead",
"next_max_id":"1411892342253728",
"next_min_id":"1414849145899763",
"min_tag_id":"1414849145899763",
"next_url":"https:\/\/api.instagram.com\/v1\/tags\/lemonbarclub\/media\/recent?client_id=xxxxxxxxxxxxxxxxxx\u0026max_tag_id=1411892342253728"
}
这是有关特定API调用和对象的信息" next_url "显示获取下20张图片的网址,以便获取该网址,并在接下来的20张图片中调用它...
有关Instagram API的更多信息请查看:https://medium.com/@KevinMcAlear/getting-friendly-with-instagrams-api-abe3b929bc52
答案 2 :(得分:1)
Instagram对其API有20个图像限制,请查看此主题和我的回答:
What is the maximum number of requests for Instagram?
另外,请查看此链接以绕过分页并显示所有结果:
http://thegregthompson.com/displaying-instagram-images-ignoring-page-pagination/