# Why does my Douyin crawler only get the first 18 videos of an account?

Douyin returns the first page of an account's videos to anyone but answers the next page with `{"status_code": 0}` and no data unless the cookie is a valid login, so tools stop at the first page; in TikTokDownloader issue 706 (March 2026) that was 18 videos, and the author said reading cookies from newer browsers no longer works. XTikAPI's `douyin.videos.list` pages through an account's videos by sec_uid with `cursor`, no cookie needed, $0.002 a page.

Updated 2026-11-21

## What issue 706 shows

| Step | Result |
| --- | --- |
| Page 1 | 18 videos, `has_more=1` |
| Page 2 | `{"status_code": 0}` with no list |
| Tool message | "配置文件 cookie 参数未登录，数据获取已提前结束" |
| Cookie source | Read from Chrome by the tool's "read cookie from browser" option |
| Author's reply | That option doesn't work with newer browser versions and will be removed |

So the cookie looked valid but wasn't a usable login; paste the full cookie from the browser's developer tools instead.

## With XTikAPI

1. Get the sec_uid from a profile link with `douyin.accounts.id_from_url`.
2. `douyin.videos.list` with `id` (the sec_uid) and `cursor` from the previous page until there are no more.
3. `douyin.accounts.detail` gives the video count so you can check you got them all.

Cost: an account with 600 videos at 18 per page = 34 calls × $0.002 = $0.068.

## 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 sec_uid from profile link API](https://xtikapi.com/apis/douyin/accounts/id_from_url) ($0.002 a call): Extract the sec_user_id from a Douyin profile link.
- [Douyin account details API](https://xtikapi.com/apis/douyin/accounts/detail) ($0.002 a call): A Douyin account profile by UID.

## More about Douyin

- [Douyin API](https://xtikapi.com/apis/douyin)
- [What does "failed to get user data, get a new ttwid from the web" mean for Douyin?](https://xtikapi.com/answers/douyin-get-new-ttwid)
- [Douyin user homepage videos API (fetch_user_post_videos) returns 400: why?](https://xtikapi.com/answers/douyin-user-videos-api-400)
- [What is the difference between uid and sec_uid on Douyin, and how do I convert one to the other?](https://xtikapi.com/answers/douyin-sec-uid-vs-uid)
- [f2 Douyin download fails with Client error '403 Forbidden': how to fix it?](https://xtikapi.com/answers/f2-douyin-403-forbidden)
- [How can an AI agent search Zhihu and Douyin?](https://xtikapi.com/answers/ai-agent-search-zhihu-douyin)
- [MediaCrawler errors (Verifytype, Douyin page 1 empty, XHS 406, Kuaishou) & hosted alternatives?](https://xtikapi.com/answers/mediacrawler-errors-and-alternatives)

## 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-21.

- [TikTokDownloader issue #706 (only 18 videos, page 2 returns status_code=0)](https://github.com/JoeanAmier/TikTokDownloader/issues/706)

## Questions

### Is status_code 0 a success?

Usually 0 means success on Douyin, which is what makes this confusing: here it comes with an empty list, and the tool treats it as "not logged in".

---

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