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
Page 1
Result: 18 videos, has_more=1
Page 2
Result: {"status_code": 0} with no list
Tool message
Result: "配置文件 cookie 参数未登录,数据获取已提前结束"
Cookie source
Result: Read from Chrome by the tool's "read cookie from browser" option
Author's reply
Result: 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
- Get the sec_uid from a profile link with
douyin.accounts.id_from_url. douyin.videos.listwithid(the sec_uid) andcursorfrom the previous page until there are no more.douyin.accounts.detailgives 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
Each with its price; the endpoint page has parameters, fields and a recorded response.
How to do it
Sources
What this page says about other products comes from their own pages and docs, read on 2026-11-21.
More about Douyin
- Douyin API
- What does "failed to get user data, get a new ttwid from the web" mean for Douyin?
- Douyin user homepage videos API (fetch_user_post_videos) returns 400: why?
- What is the difference between uid and sec_uid on Douyin, and how do I convert one to the other?
- f2 Douyin download fails with Client error '403 Forbidden': how to fix it?
- How can an AI agent search Zhihu and Douyin?
- MediaCrawler errors (Verifytype, Douyin page 1 empty, XHS 406, Kuaishou) & hosted alternatives?
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".
One key. Start now.
19 platforms, 229 endpoints, from $0.002 a call. Errors and timeouts are free.
Start free