跳到主要内容

Instagram API

搜索 Instagram 内容,查看公开账号、Reels、标签与评论。

从一个帖子链接读到评论回复

  1. 1. 读取帖子评论

    把公开帖子的链接或短码传给 code_or_url。从返回的 items 里选一条评论,取出它的 id。

    instagram.post.comments
  2. 2. 展开这条评论的回复

    沿用同一个 code_or_url,把选中的 id 传给 comment_id。每条回复都有自己的 id。

    instagram.comment.replies
测试样本中的一条回复(节选字段)
{
  "items": [
    {
      "id": "reply-1",
      "parent_comment_id": "18117277147949901",
      "text": "Example reply"
    }
  ]
}

items 为空表示本页没有返回回复。如果结果包含 next,可以用它继续翻页。

先为读取评论请求报价。确认价格后,另行提交执行。

curl https://api.anyuse.app/v1/quotes -H "Authorization: Bearer $ANYUSE_API_KEY" -H "Content-Type: application/json" -d '{"operation":"instagram.post.comments","input":{"code_or_url":"DRhvwVLAHAG"}}'

Instagram 接口目录

让下一次调用从这里开始。