它是正确的,因为Instagram的位置/搜索端点不支持分页? [英] Is it correct that the Instagram Location/Search endpoint does NOT support pagination?
问题描述
我已阅读多个岗位有关的Instagram的API只返回20个结果在一个时间的事实。在许多情况下,人们认为,所有你需要做的是利用它在分页信息返回的下一个URL。我会被罚款这一说法,但返回的JSON
I have read several postings about the fact that the Instagram API returns only 20 results at a time. In many cases, people have suggested that all you need to do is to use the next URL which is returned in the pagination information. I would be fine with that, but the JSON returned by
https://api.instagram.com/v1/locations/search ?
似乎不具有任何分页信息。我看到一个帖子,指出/媒体/搜索不支持分页。我只是想确认这同样适用于/位置/搜索真。谁能证实?
does not appear to have any pagination information. I have seen a posting that says that /media/search does not support pagination. I just wanted to confirm that the same is true for /locations/search. Can anyone confirm?
如果这是正确的,没有任何人有关于如何在一个特定的区域获取所有Instagram的事件列表中的任何想法,而不仅仅是最初的20左右?
And if this is correct, does anyone have any thoughts about how you can get a list of all Instagram events in a specific area, rather than just the first 20 or so?
推荐答案
/媒体/搜索
终点没有分页,但你可以得到下一组的20图片通过使用URL参数 max_timestamp
,获得 CREATED_TIME
最后一张照片的API响应并把它作为 max_timestamp
为下一个URL调用,它会返回下一个20那我是如何实现在这里: HTTP: //www.gramfeed.com/instagram/map
/media/search
end point does not have pagination, but you can get next set of 20 pics by using url param max_timestamp
, get the created_time
of the last photo in api response and apply it as max_timestamp
for next url call, it will return the next 20. Thats how I implemented here: http://www.gramfeed.com/instagram/map
为地点/搜索
终点,时间戳不适用,您可以更改距离
URL参数,并获得更多结果: http://www.gramfeed.com/instagram/places
for locations/search
end point, timestamp does not apply, you can change distance
url param and get more results: http://www.gramfeed.com/instagram/places
这篇关于它是正确的,因为Instagram的位置/搜索端点不支持分页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!