Instagram API 2023

FREEMIUM
(Ким) mrngstar | Оновлено 3 दिन पहले | Social
Популярність

9.9 / 10

Затримки

1,941ms

Рівень обслуговування

100%

Health Check

100%

Повернутися до всіх обговорень

Duplicate Comments in Post

Rapid account: Lohchab 17 Rahul
lohchab17rahul
4 महीने पहले

we have tested for few instagram post by using endpoint get comments. we are receiving lot of duplicate values. This is link of one of post we have receive duplicate are https://www.instagram.com/p/C2cLZv9MtpX/

we have receive 45 comments in which 15 are duplicates. can you please take a look in this matter. we are also intrested in subscribing .
ThanKs

Rapid account: Mrngstar
mrngstar Commented 4 महीने पहले

Hello Rahul,

Thanks for contacting us.

Please pass next_acc received from response to next request along with min_id.

Example:

url = “https://instagram-api-20231.p.rapidapi.com/api/media_comments_from_shortcode/D”

querystring = {“min_id”:“example”,“next_acc”:“example”}

headers = {
“X-RapidAPI-Key”: “KEY”,
“X-RapidAPI-Host”: “instagram-api-20231.p.rapidapi.com
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())

For first request, min_id and next_acc should be empty then for each pagination requests, please pass next_min_id to min_id and next_acc to next_acc.
This will resolve your issue.

Please let us know if you have any questions.

Thanks

Приєднуйтесь до обговорення — додайте повідомлення нижче:

Вхід / Реєстрація, щоб публікувати нові повідомлення