Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instagram API not fufilling count parameter

The project can be viewed at http://watchsuburbia.com

I have a pagination gallery of Instagram images with a specific tag, but it is not loading more than 64 photos right now (was loading approximately 70 previously). If you go to page 5, you can see it just stops abruptly. I have the count parameter in my URL and it's set to something high like 250 just to test, lowing it to something like 100 doesn't make a difference. There are currently 211 photos with the specific tag.

The url I'm using is

https://api.instagram.com/v1/tags/watchsuburbia/media/recent?client_id=[CLIENTID]&access_token=[ACCESSTOKEN]&count=300

*Obviously with real clientid and access_token*

UPDATE The limit has gotten even shorter again and is capping at 4 pages of photos now. It seems to get progressively lower every day which is extremely odd.

like image 870
himynameismarvin Avatar asked Aug 16 '12 21:08

himynameismarvin


1 Answers

What Instagram does is finds most recent X number of images you asked for (in this case, anything tagged #watchsuburbia) Then it checks if those are private, removes those and returns that subset. So if 3 videos out of that X are private, it'll actually return X-3 images.

What the co-founder suggests is that you look for more than you need as a buffer and filter it yourself.

Side note: everyone in those videos sounds so Canadian.

like image 168
Bella Avatar answered Sep 25 '22 10:09

Bella