Reputation: 81
I realized, that since Sunday, 8th December 2013 the Instagram API do not return the correct count of users who has liked a media.
Example: For a media with 500 likes the API returns a list with only about 120 users.
Before Sunday everything works well and I do not have any notification from Instagram changing there policy on this topic.
The official Instagram API Console returns the same amount of users like my app, and therefore I think the Instagram API has a bug or they changed the policy.
Do everybody noticed the same issue?
Thanks a lot for any feedback helping to solve the problem! Joseph
Upvotes: 6
Views: 9835
Reputation: 72885
Instagram has always limited the number of likes returned in the {media_id}/likes
endpoint to ~100. This is to reduce load on their servers (and to protect the API client from not crashing trying to load potentially thousands of likers in the resultant payload). They do not paginate the list of likers either, unfortunately.
Note though, that in the case where likes exceeds 120, that the number of likers returned in the /likes
endpoint is entirely different than the count
property returned on the {media_id}
endpoint itself.
For example:
https://api.instagram.com/v1/media/607348114809499642_58658/likes
returns only 120 likes in the array, whereas
https://api.instagram.com/v1/media/607348114809499642_58658
indicates the count is 6930
Update
It appears these results may now be paginated as they appear in the official app paginated. However, as TomRoggero points out below, that may not actually be available in the API.
Upvotes: 4
Reputation: 426
Instagram appears to have changed their /likes API end point recently. The changes/errors I've noticed are:
Previously, up to 1000 likes were available per photo via the pagination process.
Like you, I have seen no official announcement of the changes in their API. I continue to be disappointed by their serial lack of communication and constant removal of features from the API.
Upvotes: 9