# Douyin_TikTok_Download_API works locally but returns no video after Docker deploy: why?

Usually the container isn't reading the config you edited: in issue 391 (May 2024, 19 comments) the same cookie and UA worked locally but not in Docker on a NAS, and the fix that worked was mounting your `config.yaml` into the container's `crawlers/douyin/web/` path and restarting it. Later the maintainer added that an empty response means Douyin blocked the request, so change the cookie. XTikAPI's `douyin.videos.detail` returns a video's data with no cookie to keep alive, $0.002 a call.

Updated 2026-11-23

## Check these in order

| What you see | Likely cause | What to do |
| --- | --- | --- |
| Works locally, nothing in Docker, same IP (issue 391) | The container still uses the config baked into the image | Mount the file: `-v /path/config.yaml:/app/crawlers/douyin/web/config.yaml`, then restart the container |
| You edited the file inside the container | Changes need a restart | `docker restart` after editing |
| Web page in Docker says "暂未开放，敬请期待" for user homepages (issue 538) | That page isn't offered in the web UI | Call the API route instead, per the maintainer |
| API returns empty data | Douyin blocked the request (risk control) | Replace the cookie in the config (maintainer, issue 538) |

In September 2026 the maintainer released v5.0.0, a rewrite with different endpoints and configuration, and closed the v4 issues, so paths above apply to v4.

## Getting video data without the container

1. Turn a share link into an aweme ID with `douyin.videos.id_from_url`.
2. `douyin.videos.detail` with that `id` returns caption, author, plays, likes, comments, shares and publish time.
3. A creator's videos: `douyin.videos.list` with their `id`, `cursor` for more.

Cost: 2,000 links a month = 4,000 calls (ID + detail) × $0.002 = $8.

## 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).
- Made for AI: hosted OAuth MCP server (/v1/mcp), Markdown twin per page, llms.txt and OpenAPI for ChatGPT, Claude and Cursor.
- Free trial: a verified account gets $0.50, no card.

## Endpoints

- [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 video ID from link API](https://xtikapi.com/apis/douyin/videos/id_from_url) ($0.002 a call): Extract the aweme_id from a Douyin share link or video URL.
- [Douyin video list API](https://xtikapi.com/apis/douyin/videos/list) ($0.002 a call): Videos posted by one Douyin account, newest first.

## More about Douyin

- [Douyin API](https://xtikapi.com/apis/douyin)
- [How can I get the play count of a Douyin video?](https://xtikapi.com/answers/douyin-video-play-count-api)
- [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)
- [How often should a Douyin scraper change its cookie, and how fast can it request?](https://xtikapi.com/answers/douyin-cookie-rotation-frequency)
- [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)

## 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 #391 (works locally, not in Docker)](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues/391)
- [Douyin_TikTok_Download_API issue #538 (user homepage in Docker)](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues/538)

## Questions

### Does XTikAPI return the video file?

It returns the video's data (caption, author, counts, publish time); download the file yourself if you need it.

---

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