# How often should a Douyin scraper change its cookie, and how fast can it request?

Users report a Douyin web cookie can last about a week, and that Douyin blocks by IP and by request pattern rather than by account: in Douyin_TikTok_Download_API issue 417 one user ran with a random interval around 30 seconds plus a proxy, and in TikTokDownloader issue 478 (May 2025) a batch job hit cookie errors after about 35 creators and recovered after an hour. Neither project publishes official limits. XTikAPI reads Douyin with no cookie on your side, from $0.002 a call.

Updated 2026-11-23

## What users report

| Source | Report |
| --- | --- |
| Issue 417 (Jun 2024) | Cookie fine for a week; Douyin bans the IP; random ~30 s between requests "可以用很久" |
| Issue 417, maintainer | Douyin and TikTok generally don't ban the account; when the cookie fails, get a new one by hand |
| Issue 417 | Another user saw the video detail page itself blocked (redirects to other videos) while other features worked |
| Issue 478 (May 2025) | Batch download of 200 creators: cookie error after ~35; waiting an hour restored it |
| Issue 478, maintainer | Run from source to set your own request delay and pause interval |

These are user observations, not limits Douyin publishes, and they shift when Douyin changes its checks.

## If you keep your own crawler

1. Randomize the delay between requests and pause between creators, as the old TikTokDownloader 5.5 did (3 minutes after every 10 creators, per issue 478).
2. Treat an empty response as a block, not as no data.
3. Keep a fresh cookie ready and rotate IPs; a pool of accounts, as one user in 417 suggests, spreads the load.

## Or skip cookies

`douyin.videos.list` pages a creator's videos (`id`, `cursor`), `douyin.videos.detail` reads one video, `douyin.comments.list` its comments. A failed call is not charged.

Cost: 200 creators × 3 pages = 600 calls × $0.002 = $1.20 per run.

## 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)
- [Douyin scraper keeps getting CODE 429: what actually works?](https://xtikapi.com/answers/douyin-crawler-code-429)
- [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-23.

- [Douyin_TikTok_Download_API issue #417 (cookie and request frequency)](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues/417)
- [TikTokDownloader issue #478 (cookie error after 35 creators)](https://github.com/JoeanAmier/TikTokDownloader/issues/478)

## Questions

### Will Douyin ban my account?

The Douyin_TikTok_Download_API maintainer said in issue 417 that Douyin and TikTok generally don't ban accounts; blocks hit the IP or the request.

---

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