用途:通过 instagram-cli 读取、管理并回答 Instagram 数据相关问题,覆盖个人资料、粉丝/关注列表、帖子、评论、点赞者、故事、信息流、收藏与账号洞察。
主要能力:accounts 列出已关联账号;profile/user-profile 获取资料与粉丝数;posts、feed、post 读取帖子;fetch-post-comments、fetch-post-likers 读取评论与点赞者;followers、following、close-friends 读取关系列表;saved-posts、saved-collections 管理收藏;own-stories、stories-tray、story-media 读取故事;account-insights 读取账号洞察;update-bio、update-interests、post-feed、post-story、set-profile-picture、profile-banner 等写入操作。
使用方式:除 accounts、connect-url、disconnect-url、--help 外,所有命令都需 --account-id,取用户自己的 user_fbid。用 exec 运行命令,标志名须与文档一致。fetch-post-comments 与 fetch-post-likers 用 --post-ids(即使单条);save-post、unsave-post、media-understanding 用 --media-ids。分页用 --after 传上一响应的游标(own-stories-archive 用 --max-id)。
限制:不支持关注、取关、移除粉丝、拉黑、点赞、评论、回复评论、删除/归档/置顶帖子或编辑文案。写入操作仅在用户明确要求时执行。Instagram API 有速率限制,遇 429 应停止本任务所有调用;批量读取反复 HTTP 500 也应停止。超过 50 个账号或帖子的逐条调用,先处理最近 50 个。公开资料读取无需关联账号,但原生 profile、user-profile、post 命令仍需关联账号。未提供的信息不应编造。