Instagram API 2023

免费增值
通过 mrngstar | 已更新 לפני 7 ימים | Social
人气

9.9 / 10

延迟

1,865ms

服务等级

100%

Health Check

100%

返回所有讨论

Media comments by media ID and shortcode limited to very few comments

Rapid account: Timvdata
timvdata
לפני 24 ימים

When using the Media comments by media ID and shortcode endpoints, very few comments will be returned. there are 15 comments reurned on the first page, then If you give a “last_min_id” you will get maybe 5 new comments on the 2nd page & the rest are repeats.
If you give another “last_min_id” you will just get these same comments repeated in a different order.

Is it possible to access more comments? This cap of around 20 comments per post is very limiting!!

Also, i’m not sure how the comments are ordered? is it most recent or most popular?

Rapid account: Mrngstar
mrngstar Commented לפני 21 ימים

Hello Tim,

We’ve added “sort_order” filter to the comments endpoint. Now you can sort comments by popular, recent and verified.

Thanks

Rapid account: Mrngstar
mrngstar Commented לפני 24 ימים

Regarding comments order, currently its default but for some users comment sorting option is available because this feature is available for few users.

  1. recent
  2. popular
  3. verified

We are working on adding these filters.

Rapid account: Mrngstar
mrngstar Commented לפני 24 ימים

Hello Tim,

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.

Is it possible to access more comments? This cap of around 20 comments per post is very limiting!!
Ans: This limit is imposed by Instagram.

You can also refer this discussion for more info https://rapidapi.com/mrngstar/api/instagram-api-20231/discussions/113491

Please let us know if you have any questions.

Thanks

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论