Reputation: 31
I am making an Android-based application that utilizes Instagram API to retrieve comment data from Instagram, where I need all the comments on the post, but after I tried it with a request https://api.instagram.com/v1/media/{media_id}/comments?access_token={access_token} I didn't get pagination and only returned the latest 150 comments?
I hope to get all post comments even though the number of comments is more than 150 comments
Upvotes: 3
Views: 21254
Reputation: 44907
This is what I've found in the Instagram API documentation about pagination:
So i think you just need to check in the JSON answer you get, if you can find a pagination
tag and the next_url
tag and just call it to get the next results.
Upvotes: 3