# Douyin scraper keeps getting CODE 429: what actually works?

429 is Douyin's rate limit, and the usual home fixes don't move it. In TikTokDownload issue 639 (January 2024, 26 comments) it hit every version including f2, users restarted routers, re-pasted cookies and switched accounts with no change, it also appeared on a Tencent Cloud server, one user saw it on Douyin's own web page and said simply resending gets through, and another found changing IP didn't help. XTikAPI's Douyin endpoints send the requests from our side, $0.002 a call, and a failed call is not charged, so you can just retry.

Updated 2026-11-25

## What people tried in issue 639

| Tried | Result |
|---|---|
| Restart router, PC, modem | No change |
| Re-copy cookie, change Douyin web account | No change |
| Run on a cloud server | Same 429 |
| Change IP | Did not help, per one user |
| Resend the request | Works, per a user who saw 429 in Douyin's web app too |
| `max_connections = 1` in `conf.ini` | One user said it had no effect in the new version |

The pattern points at a per-time-window limit on Douyin's API, so slowing down and retrying is the lever, not the cookie.

## Retry on our side instead

1. Call `douyin.videos.list` (an account's works), `douyin.videos.detail` (one video) or `douyin.comments.list` (comments) as you need.
2. If a call fails, retry with the same `Idempotency-Key`; it is never billed twice within 24 hours, and failed calls cost nothing.

Cost: 300 videos' comments, 5 pages each = 1,500 calls × $0.002 = $3.

## Why XTikAPI

- XTikAPI reads Douyin with 34 endpoints from $0.002 a call, and a failed call is not charged.
- Fewer tokens for AI: across 19 recorded live Douyin calls (2026-11-18), raw platform JSON is ~1.44M tokens vs ~169k via XTikAPI REST (88.3% fewer) and ~36k via MCP (97.5% fewer).
- See before you pay: 192 of 229 endpoints show a recorded real response on their page (30 of 34 for Douyin).
- Spending you control: a failed call or a timeout is not charged (charged: false), X-Max-Price caps one call, and the same Idempotency-Key within 24 hours is never billed twice.
- Free trial: a verified account gets $0.50, no card.

## Endpoints

- [Douyin video list API](https://xtikapi.com/apis/douyin/videos/list) ($0.002 a call): Videos posted by one Douyin account, newest first.
- [Douyin video details API](https://xtikapi.com/apis/douyin/videos/detail) ($0.002 a call): One Douyin video by ID: caption, author, plays, likes, comments and shares.
- [Douyin comments API](https://xtikapi.com/apis/douyin/comments/list) ($0.002 a call): A page of comments on one Douyin video.

## More about Douyin

- [Douyin API](https://xtikapi.com/apis/douyin)
- [How often should a Douyin scraper change its cookie, and how fast can it request?](https://xtikapi.com/answers/douyin-cookie-rotation-frequency)
- [f2 Douyin download fails with Client error '403 Forbidden': how to fix it?](https://xtikapi.com/answers/f2-douyin-403-forbidden)
- [Douyin_TikTok_Download_API works locally but returns no video after Docker deploy: why?](https://xtikapi.com/answers/douyin-tiktok-api-docker-no-video)
- [How can I get the play count of a Douyin video?](https://xtikapi.com/answers/douyin-video-play-count-api)
- [MediaCrawler errors (Verifytype, Douyin page 1 empty, XHS 406, Kuaishou) & hosted alternatives?](https://xtikapi.com/answers/mediacrawler-errors-and-alternatives)
- [How can an AI agent search Zhihu and Douyin?](https://xtikapi.com/answers/ai-agent-search-zhihu-douyin)

## How to do it

- [How to list every video from a Douyin account](https://xtikapi.com/guides/douyin-user-videos)
- [How to get all comments on a Douyin video](https://xtikapi.com/guides/douyin-video-comments)

## Sources

What this page says about other products comes from their own pages and docs, read on 2026-11-25.

- [TikTokDownload issue #639 (CODE 429, any working fix?)](https://github.com/Johnserf-Seed/TikTokDownload/issues/639)

## Questions

### Is the limit per IP or per cookie?

Users in issue 639 changed both without effect; one concluded it limits requests per time window.

---

XTikAPI: one API key for public social media data, prepaid per call. [HTML version](https://xtikapi.com/answers/douyin-crawler-code-429) · [llms.txt](https://xtikapi.com/llms.txt) · [OpenAPI](https://xtikapi.com/openapi.json)
