Instagram API media/search/ endpoint return results outside the time range

放肆的年华 提交于 2019-12-01 18:13:14

I believe that Instagram rounds time constraints to the nearest minute. Rounding down for min and up for max. So the time ranges in your query spans two minutes. So, your query window is actually 120 seconds. You'll have to filter out the extras yourself.

Keep in mind that the media search is going to return a maximum of 20 results. So you may want to split that query up in to two separate queries for each of the 60 second windows it spans. I don't think media search results use pagination to display additional results. So you don't really know how much data you're losing.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!