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

后端 未结 1 1793
盖世英雄少女心
盖世英雄少女心 2021-01-18 22:31

I\'m currently using Instagram API media/search endpoint using this following sample configuration:

curl -XGET \'https://api.instagram.com/v1/media/search?
l         


        
1条回答
  •  北海茫月
    2021-01-18 22:45

    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.

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