Is it correct that the Instagram Location/Search endpoint does NOT support pagination?

后端 未结 1 1603
抹茶落季
抹茶落季 2021-01-06 02:44

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

相关标签:
1条回答
  • 2021-01-06 03:32

    /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

    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

    0 讨论(0)
提交回复
热议问题