Unable to retrieve all posts under an Instagram account using the Instagram Graph API
1

Problem: When we use the Instagram Graph API to fetch all Feeds and Reels posts under an Instagram account, we are unable to retrieve all posts.

The test account 'melbosstest' has a total of 269 posts, including 235 Feeds posts and 34 Reels posts. However, without any time restrictions, we can only retrieve a total of 124 posts, including 104 Feeds posts and 20 Reels posts. The earliest publication date of these retrievable posts is November 27, 2023.

The attached image shows the API we called and the returned results

However, using the same API and method to fetch Feeds and Reels posts from other accounts, like 'Melbossmusic', we can retrieve almost all posts. It has a total of 802 posts, and we can retrieve about 749 posts, including feeds and reels.

Please help us check if there are any restrictions on the account that prevent us from retrieving all posts, or if there are any adjustments needed when calling the API. Thank you!

Holly
Enviada hace 4 meses aproximadamente
Respuesta seleccionada
1

Did you try using the pagination links in the response? paging.next contains the URL for the next page with results.

21 de junio a las 2:30
Krystian