GET /v1/tiktok/web/fetch_tiktok_web_guest_cookie
Get the guest Cookie
stable · 3 credits per success
Get the guest Cookie of TikTok Web;Can be used to crawl data of TikTok Web, such as user videos, mix videos, etc.;Can fix identity to avoid duplicate data for some interfaces.;Please note: Guest Cookie cannot crawl all data, there are certain restrictions.;Can be used with open source projects to implement data crawling of TikTok Web using this interface.;user_agent: User browser agent;Guest Cook…
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| user_agent | string | query | yes | 用户浏览器代理 | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 |
Response fields
Field dictionary coming soon — the executable panel shows the live shape.
Errors
| code | HTTP | Meaning | Billed |
|---|---|---|---|
| 40001 | 400 | Invalid parameters | no |
| 40102 | 401 | Invalid or revoked API Key | no |
| 40201 | 402 | Insufficient credits | no |
| 40402 | 404 | Resource not found | no |
| 42201 | 422 | Quality gate failed | no |
| 42901 | 429 | Rate limit exceeded | no |
| 50401 | 504 | Upstream timeout | no |
| 50201 | 502 | Upstream error | no |
Billing
Success costs 3 credits. Any failure — including a 200 from upstream that fails the quality gate — costs 0.