获取游客 Cookie/Get the guest Cookie

TikTokapi

About

获取游客 Cookie/Get the guest Cookie

Documentation

获取游客 Cookie/Get the guest Cookie

[中文]

用途:

  • 获取 TikTok Web的游客Cookie
  • 可以用于爬取 TikTok Web 的数据,如用户作品、合辑作品等。
  • 可以固定身份避免部分接口重复数据。
  • 请注意:游客Cookie无法爬取所有数据,有一定的限制。
  • 可以配合开源项目使用此接口实现TikTok Web的数据爬取。

参数:

  • user_agent: 用户浏览器代理

返回:

  • 游客Cookie

[English]

Purpose:

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

Parameters:

  • user_agent: User browser agent

Return:

  • Guest Cookie

[示例/Example]

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"

[响应/Response]:

{
    "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",
    "Cookie": "ttwid=1%7Ck5lqyYxAq2wSmaEculMCk31ur4lkvy3DVwn6Phf45GQ%7C1759321284%7C6bac9a25e1f6b512aecad91a37167ad753b47f2306ffe0d70695001d6b4dd793;tt_csrf_token=tueWm0Fw-jL4Ie3Iu2z755XYPzAphhgJmHDA;tt_chain_token=drrbnMAs2A13tME+L6XbsA==",
    "Referer": "https://www.tiktok.com/explore"
}

Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.

Try 获取游客 Cookie/Get the guest Cookie

Test this model in the Sandbase Playground with your own prompts.

Open in Playground

Related Models