# Instaloader 常见报错排查：401/429、话题 404、Reels 为空与评论失败

Instaloader 常见问题集中在四处：401/429 频控（换 IP/Cookie 也常挡）、4.14.1 之前版本的话题标签 404、`get_reels()` 因 GraphQL `doc_id` 废弃静默返回空列表，以及热门帖子 `get_comments()` 切到 `i.instagram.com` 失败。先升到 4.14.1+ 再按表定位；只读公开主页、帖子、Reels、话题和评论的话，XTikAPI 不用登录 Instagram，一次 $0.002 起。

更新于 2026-11-25

## 四大常见故障速查表

| 现象 / 报错 | GitHub issue 原因 | 修复办法与状态 |
| --- | --- | --- |
| 401 “Please wait a few minutes” 或 429 `Too Many Requests`（issue 2511、2750） | Instagram 限流当前会话或账号，换 IP 和 Cookie 往往也无效 | 别同时跑多实例或边跑边刷 App，很多时候只能等待冷却 |
| 抓话题标签报 `404 Not Found`（`explore/tags/<tag>/`，issue 2144） | 旧 `?__a=1&__d=dis` 接口下线，改到 `api/v1/tags/web_info/` 并需 `x-ig-app-id: 936619743392459` | **Instaloader 4.14.1**（2025 年 1 月）已修复，先升级 |
| `profile.get_reels()` 不报错但返回空列表（issue 2797，2026 年 11 月） | Reels 查询的 GraphQL `doc_id` 废弃，定时任务容易静默失效 | 未关闭；提问者手动改用 doc_id `28971369649196954` 并修改提取逻辑 |
| `post.get_comments()` 抛 `ConnectionException`（200 + `fail`，issue 2635） | 评论少走网页接口正常，评论多超过翻页上限后切到 `i.instagram.com` 失败 | 2026 年 9 月因无跟进关闭，暂无官方修复 |

## 免会话文件读取 Instagram 公开数据

1. 账号资料与数字 ID：`instagram.accounts.detail` 传用户名（`id`），一次 $0.004。
2. 帖子与 Reels：`instagram.posts.list`、`instagram.reels.list` 传数字 `id` 并用 `max_id` 翻页（一页 $0.002）。
3. 话题帖子：`instagram.hashtag_posts.list` 传 `hashtag`（不带 `#`）与 `end_cursor`（一页 $0.002）。
4. 评论与回复：`instagram.comments.list`（传帖子 `url` 与 `pagination_token`，一页 $0.004）及 `instagram.comment_replies.list`。

费用参考：50 个账号每天取一页帖子、30 天 = 1500 次 × $0.002 = $3；30 个话题每天 5 页 = 4500 次 = $9。

## 为什么用 XTikAPI

- XTikAPI 有 9 个Instagram接口，一次 $0.002 起，失败不收费。
- 更省 Token：按 2026-11-18 实测的 8 个Instagram接口真实返回，平台原始 JSON 约 280k token，经 XTikAPI 归一化后约 39k token（省 86.1%），MCP 输出约 29k token（省 89.7%）。
- 先看再用：229 个接口里有 192 个在接口页上放了一份录制的真实返回（Instagram 8/9），字段一目了然。
- 预付余额，不订阅：余额不过期，没用完的充值 14 天内可退。
- 免费试用：验证过邮箱送 $0.50，不用绑卡。

## 用到的接口

- [Instagram 用户资料](https://xtikapi.com/zh/apis/instagram/accounts/detail) ($0.004 / 次): 按用户名取公开主页：简介、粉丝数、关注数、帖子数、认证。
- [Instagram 用户帖子](https://xtikapi.com/zh/apis/instagram/posts/list) ($0.002 / 次): 按用户编号取一个公开账号的帖子，可翻页。
- [Instagram 用户 Reels](https://xtikapi.com/zh/apis/instagram/reels/list) ($0.002 / 次): 取一个公开账号的 Reels 短视频。
- [Instagram 话题标签帖子](https://xtikapi.com/zh/apis/instagram/hashtag_posts/list) ($0.002 / 次): 按话题标签取一页帖子，`end_cursor` 翻页。
- [Instagram 帖子评论](https://xtikapi.com/zh/apis/instagram/comments/list) ($0.004 / 次): 按 shortcode 或链接取一页帖子评论。
- [Instagram 评论回复](https://xtikapi.com/zh/apis/instagram/comment_replies/list) ($0.004 / 次): 取一条 Instagram 评论下的回复。
- [Instagram 帖子详情](https://xtikapi.com/zh/apis/instagram/posts/detail) ($0.004 / 次): 按链接取一条帖子：文案、图片或视频、点赞数、评论数。

## Instagram的更多问题

- [Instagram API](https://xtikapi.com/zh/apis/instagram)
- [Agent Reach 的 Instagram 主页、粉丝返回 HTTP 400 怎么办](https://xtikapi.com/zh/answers/agent-reach-instagram-http-400)
- [爬 Instagram 账号被临时锁定怎么办](https://xtikapi.com/zh/answers/instagram-account-temporarily-locked)
- [Instagram Graph API 能查别人的粉丝数和帖子吗](https://xtikapi.com/zh/answers/instagram-graph-api-other-accounts-business-discovery)
- [Instagram Basic Display API 停了，用什么替代](https://xtikapi.com/zh/answers/instagram-basic-display-api-replacement)

## 出处

本页写到的别家的情况，都来自对方自己的页面和文档，读取于 2026-11-25。

- [Instaloader issue 2511：401 Unauthorized 提示 Please wait a few minutes](https://github.com/instaloader/instaloader/issues/2511)
- [Instaloader issue 2750：429 Too Many Requests](https://github.com/instaloader/instaloader/issues/2750)
- [Instaloader issue 2144 与 v4.14.1：话题标签 404 修复](https://github.com/instaloader/instaloader/issues/2144)
- [Instaloader issue 2797：Reels 返回空列表](https://github.com/instaloader/instaloader/issues/2797)
- [Instaloader issue 2635：热门帖子 get_comments 失败](https://github.com/instaloader/instaloader/issues/2635)

## 常见问题

### 为什么 `get_comments()` 测试帖子能跑通，热门帖子就报错？

评论少的帖子只走网页接口就能拿完；热门帖子超过翻页上限后会切到失效的 `i.instagram.com` 接口（issue 2635）。

### 为什么抓 Reels 每次跑完都要检查条数？

`doc_id` 失效时 `get_reels()` 不抛异常、直接返回空列表，定时任务会“假成功”但一条数据没入库。

---

XTikAPI: one API key for public social media data, prepaid per call. [HTML version](https://xtikapi.com/zh/answers/instaloader-errors-and-fixes) · [llms.txt](https://xtikapi.com/llms.txt) · [OpenAPI](https://xtikapi.com/openapi.json)
