生成 XGnarly /Generate XGnarly
TikTokapi
About
生成 XGnarly /Generate XGnarly
Documentation
生成 XGnarly /Generate XGnarly
[中文]
用途:
- 生成 XGnarly 加密,用于 TikTok Web API 请求
- 此接口使用最新版本(V5.2.0,截至2026年3月)的签名服务,不可自定义 User-Agent,会自动生成一个常见浏览器的 User-Agent
- 此接口为完美还原算法,无视除验证码外的一切风控
参数:
- url (str): 不携带签名(X-Bogus 或 X-Gnarly)并且包含域名的请求URL,不需要进行URL编码
- body (str): 请求的API参数,适用于POST请求,如果是GET请求则不需要提供
返回:
- X-Gnarly 加密字符串 + 随机浏览器的 User-Agent
[English]
Purpose:
- Generate XGnarly encryption, used for TikTok Web API requests
- This interface uses the latest version (V5.2.0, as of March 2026) signing service, User-Agent cannot be customized, a common browser User-Agent will be automatically generated
- This interface perfectly restores the algorithm, ignores all risk controls except for verification codes
Parameters:
- url (str): The requested API URL without signature (X-Bogus or X-Gnarly) and including the domain name, no need to URL encode
- body (str): The API parameters of the request, applicable for POST requests, not required for GET requests
Return:
- X-Gnarly encryption string + User-Agent of a random browser
[示例/Example]
{
"url": "https://www.tiktok.com/api/search/user/full/?WebIdLastTime=1756087650&aid=1988&app_language=zh-Hans&app_name=tiktok_web&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=MacIntel&browser_version=5.0%20%28Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_7%29%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome%2F139.0.0.0%20Safari%2F537.36&channel=tiktok_web&cookie_enabled=true&cursor=10&data_collection_enabled=false&device_id=7542339104672111234&device_platform=web_pc&focus_state=true&from_page=search&history_len=3&is_fullscreen=true&is_page_visible=true&keyword=musk&odinId=7542338997269211234&os=mac&priority_region&referer®ion=US&screen_height=967&screen_width=1496&search_id&tz_name=America%2FLos_Angeles&user_is_login=false&web_search_code=%7B%22tiktok%22%3A%7B%22client_params_x%22%3A%7B%22search_engine%22%3A%7B%22ies_mt_user_live_video_card_use_libra%22%3A1%2C%22mt_search_general_user_live_card%22%3A1%7D%7D%2C%22search_server%22%3A%7B%7D%7D%7D&webcast_language=zh-Hans",
"body": ""
}
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.
Try 生成 XGnarly /Generate XGnarly
Test this model in the Sandbase Playground with your own prompts.
Open in PlaygroundRelated Models
提取列表作品id/Extract list video idTikTokapi提取列表用户sec_user_id/Extract list user sec_user_idTikTokapi获取列表unique_id/Get list unique_idTikTokapi提取单个作品id/Extract single video idTikTokapi批量直播间开播状态检测/Batch live room start status checkTikTokapi直播间开播状态检测/Live room start status checkTikTokapi解密strData/Decrypt strDataTikTokapi设备注册/Register device for TikTok WebTikTokapi