Why does the Instragram API ignore the min_id parameter for my request?

I am making a users / media / recent GET endpoint GET , but this is ignoring my min_id parameter. My last request is as follows (replace it with your own access_token tag):

https://api.instagram.com/v1/users/self/media/recent/?access_token=xxxxxxxx.xxx92d6.6584xxxxxe4d03a3cf2xxxcdb7da&min_id=1162106936627841123_10443137

Results are returned, but min_id ignored, and all messages are returned from the most recent one.

How can I force the Instragram API to accept my min_id parameter?

+5
source share
1 answer

Thanks to first-hand experience, unfortunately, the Instagram API returns only the most recent media, regardless of what min_id . The job is to find and use only max_id for media. You might want to store it in an array so that later you can just pull out max_id :

 $.ajax({ type: "GET", //min_id endpoint does not work for instagram API //as it will always return the most recent photos. //Using the max_id and going backward is the only workaround. //Therefore accessing the max_id from the array that was saved earlier url: "https://api.instagram.com/v1/users/"+ instagram_id +"/media/recent/?access_token=" + token + "&count=" + count +"&max_id=" + pageArray[currentPage-2], dataType: "jsonp", jsonp: "callback", success: function(obj) { //do something }, error: function() { //do something } }); 

Another way is to use a combination of min_id and max_id to get a series of media. However, it looks like it excludes or does not show the min_id and max_id . This means that only media between min_id and max_id .

+1
source

All Articles