Douyin Web Guest Cookie
https://api.sandbase.ai/v1/api/douyin/web/web-guest-cookieReturns a guest cookie for Douyin Web based on a specified browser user agent string. This cookie helps establish identity for browsing web endpoints.
- Price
- $0.0015USD / callFirst 100 calls per day free (shared per organization)
- Method
- POST
- Response
- JSON
- Parameters
- 1 required · 0 optional
Try the model
Playground
[
{
"data": {
"Cookie": "odin_tt=d43d11a83ae416dc24a943b0590685a40cd2215d95763ada9689c37fee664891;passport_fe_beating_status=false;sid_guard=4256de2eeab4caca559f3327d127e94a%7C1790689960%7C21600%7CTue%2C+29-Sep-2026+19%3A52%3A40+GMT;uid_tt=5e4470bd96ae87638b79abf3bfaad940;uid_tt_ss=5e4470bd96ae87638b79abf3bfaad940;sid_tt=4256de2eeab4caca559f3327d127e94a;sessionid=4256de2eeab4caca559f3327d127e94a;sessionid_ss=4256de2eeab4caca559f3327d127e94a;session_tlb_tag=sttt%7C13%7CQlbeLuq0yspVnzMn0SfpSv________-s6_eMkZxNIGcQfHYE8y13-cKLbr8SN4z0IiRGNsqzIeY%3D;is_staff_user=false;sid_ucp_v1=1.0.0-KDJkOGIyM2RhMTc1MzgyMjc5NGM5MmIyODdlZGY5NjE0YjQ0MmY3NjEKCBCohe_VBhgNGgJsZiIgNDI1NmRlMmVlYWI0Y2FjYTU1OWYzMzI3ZDEyN2U5NGE;ssid_ucp_v1=1.0.0-KDJkOGIyM2RhMTc1MzgyMjc5NGM5MmIyODdlZGY5NjE0YjQ0MmY3NjEKCBCohe_VBhgNGgJsZiIgNDI1NmRlMmVlYWI0Y2FjYTU1OWYzMzI3ZDEyN2U5NGE;passport_assist_user=;ttwid=1%7CCZF_q-9ekCCdBkkTgvi4GcILkChbvbGASwtpCylMxFo%7C1790689961%7C85f562eb868adab6ebf498272314d9f4ff5f34f7ba734dc7fc07efb1c683fafe;",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
}
}
]Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- $0.0015 / run
- Daily free calls
- First 100 calls per day free (shared per organization)
Request & response
- Method
- POST
- Request body
- application/json
- Response
- application/json
- Execution
- sync
Parameters
- user_agent
- string · required
Access
- Provider
- Douyin
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/douyin/web/web-guest-cookie
- Authentication
- Bearer API key
API README
Douyin Web Guest Cookie API
Retrieve a guest session cookie for Douyin Web by supplying a valid browser user_agent.
Use cases
- Obtain guest credentials for crawling Douyin Web data.
- Maintain session identity when querying public user and mix videos.
- Prevent duplicate responses across public web data requests.
Request
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/web-guest-cookie" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_agent": "<user_agent>"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
user_agent | string | Yes | User browser agent |
Notes
- Requires
user_agentcontaining a valid browser agent string.
Related APIs
- Douyin Batch Video ID Extraction: Extracts video IDs from a list of Douyin video URLs.
- Douyin sec_user_ids from URLs (Batch): Extracts Douyin sec_user_id values in bulk from a list of user homepage URLs.
- Douyin Webcast ID Extraction: Extracts webcast IDs from a submitted list of Douyin live room links.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/douyin/web/web-guest-cookie" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
Douyin Web Guest CookieThis API Douyin | $0.0015 per call | JSON | Jul 31, 2026 |
Douyin | $0.0015 per call | JSON | Jul 31, 2026 |
Douyin | $0.0015 per call | JSON | Jul 31, 2026 |
Douyin | $0.0015 per call | JSON | Jul 31, 2026 |
Douyin | $0.0015 per call | JSON | Jul 31, 2026 |
Douyin | $0.04 per call | JSON | Jul 31, 2026 |
Questions
FAQ
How do I use the Douyin Web Guest Cookie API?
Send a POST request to https://api.sandbase.ai/v1/api/douyin/web/web-guest-cookie with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
How much does the Douyin Web Guest Cookie API cost?
$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.
What parameters does the Douyin Web Guest Cookie API accept?
Required: user_agent (string). The Parameters table and the Playground on this page list every field.
What does the Douyin Web Guest Cookie API return?
A JSON response returned in the same HTTP request (synchronous).
Do I need a Douyin developer account or API key?
No. Douyin Web Guest Cookie runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Douyin API access separately.
