# f2 Douyin download fails with Client error '403 Forbidden': how to fix it?

It's a new Douyin gateway check, not an expired cookie. In f2 issue 443 (August 2026, 31 comments) liked-video downloads stopped with `403 Forbidden` after a page or two even with a fresh cookie; opening the request URL showed "Blocked by ArgusSecurityPlugin Uifid Not Found", and users fixed it by sending the `uifid` value from the cookie as a header, plus any `x-tt-argus` string on the likes and favorites lists. f2's last release is still v0.0.1.7 (December 2024). For posted videos, XTikAPI's `douyin.videos.list` pages an account's works with no cookie on your side, $0.002 a page.

Updated 2026-11-25

## What you see and what it means

| What you see | What it is | What to do |
|---|---|---|
| 403 on liked or favorite videos after 1-2 pages | A new gateway check on login-only lists; posted videos were not affected | Add the `uifid` header (and `x-tt-argus` for likes/favorites) |
| "Blocked by ArgusSecurityPlugin Uifid Not Found" when opening the URL | The same check | Same |
| Still 403 after the fix, only on a server | One user's server was blocked while the same code worked locally (Sep 2026) | Run from another network |
| Every single-video download 403 | Reported in September 2026; fixed once only the part after `UIFID=` went into the config | Copy just the value, not the whole cookie |

The commenter who found it warned that `x-tt-argus` only works while Douyin does not check its value.

## If you only need posted videos

1. Turn the profile link into a `sec_uid` with `douyin.accounts.id_from_url`.
2. Call `douyin.videos.list` with `id`, pass `cursor` for the next page; `sort` changes the order.
3. One video's full data: `douyin.videos.detail`.

Cost: 50 creators × 4 pages = 200 calls × $0.002 = $0.40.

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

## 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)
- [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)
- [How often should a Douyin scraper change its cookie, and how fast can it request?](https://xtikapi.com/answers/douyin-cookie-rotation-frequency)
- [Douyin_TikTok_Download_API works locally but returns no video after Docker deploy: why?](https://xtikapi.com/answers/douyin-tiktok-api-docker-no-video)
- [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-25.

- [f2 issue #443 (Douyin Client error 403 Forbidden)](https://github.com/Johnserf-Seed/f2/issues/443)

## Questions

### Can XTikAPI download my own liked videos?

No. Likes and favorites are lists tied to your login; XTikAPI reads public data such as an account's posted videos, comments and search.

### Is it my cookie expiring?

Usually not: users in issue 443 refreshed the cookie and still got 403 until they added the `uifid` header.

---

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