TikTok modelsapi generation api

tiktok/web/generate-xgnarly

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

Input
Idle

Example output — click Run to generate your own

API README

Generate XGnarly

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&region=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.

Related Models