# TikTok encryption algorithm

TikTok APP encryption algorithm, used to generate encrypted parameters in the request header. Takes url, data and device info, all optional. Served by TikHub.

Purpose:
- TikTok APP encryption algorithm, used to generate encrypted parameters in the request header.
- The generated encrypted parameter list:
    - `x-ladon`
    - `x-khronos`
    - `x-argus`
    - `x-gorgon` (8404)

Parameters:
- url: Full URL to be encrypted
- data: If the interface is a POST request, please fill in the data of the POST request to participate in the encryption calculation. For GET requests, pass an empty string.
- device_info: Device information, optional parameter, if not filled in, the default device information will be used, and the device information will modify the parameters in the URL passed in.

Return:
- Encrypted parameter list

- Tool ID: `tikhub/tiktok-app-v3-ttencrypt-algorithm`
- Name in the catalog: Tiktok, TikTok APP encryption algorithm
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [TikTok videos](/tools/tiktok/videos.md)
- Price: $0.002 per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.002
}
```

Pricing source: [https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info](https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info). Official per-success route price USD 0.002; daily upstream discounts may reduce provider cost. No discount invented for the customer. 20/second.

Price verification date: 2026-10-05.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "title": "Url",
      "description": "需要加密的URL/URL to be encrypted",
      "default": "https://api16-normal-useast5.tiktokv.us/tiktok/v1/upvote/item/list?user_id=6726034365602628610&offset=0&count=21&scene=0&iid=7425045478163400491&device_id=7349721034012280362&ac=WIFI&channel=googleplay&aid=1233&app_name=musical_ly&version_code=360704&version_name=36.7.4&device_platform=android&os=android&ab_version=36.7.4&ssmix=a&device_type=Pixel+6+Pro&device_brand=google&language=zh&os_api=33&os_version=13&openudid=711192517a8bbf03&manifest_version_code=2023607040&resolution=1440*2891&dpi=560&update_version_code=2023607040&_rticket=1728977220468&is_pad=0&app_type=normal&sys_region=CN&last_install_time=1728977141&timezone_name=America%2FLos_Angeles&app_language=zh-Hans&ac2=wifi5g&uoo=0&op_region=CN&timezone_offset=-28800&build_number=36.7.4&host_abi=arm64-v8a&locale=zh-Hans&region=CN&content_language=en%2C&ts=1728977220&cdid=aa21524b-8633-49ca-8e6e-3275fe1672db"
    },
    "data": {
      "type": "string",
      "title": "Data",
      "description": "如果有POST请求，请填写POST请求的数据参与加密计算/If there is a POST request, please fill in the data of the POST request to participate in the encryption calculation",
      "default": ""
    },
    "device_info": {
      "additionalProperties": true,
      "type": "object",
      "title": "Device Info",
      "description": "设备信息，可选参数，如果不填写则使用默认设备信息/Device information, optional parameter, if not filled in, the default device information is used",
      "default": {
        "aid": "1233",
        "cdid": "b820f79c-c74a-47b0-912f-ee3002ce60dc",
        "channel": "googleplay",
        "cookies": {},
        "device_brand": "HONOR",
        "device_id": "7423364899755607598",
        "device_manufacturer": "HUAWEI",
        "device_model": "HONOR V30",
        "device_platform": "android",
        "device_type": "OXF-AN00",
        "dpi": 480,
        "host_abi": "arm64-v8a",
        "iid": "7423365134775469866",
        "lanusk": "",
        "manifest_version_code": "2023604040",
        "mc": "7E:EE:BA:BC:5E:40",
        "mssdk_token": "",
        "openudid": "63401ab5140125d1",
        "os_api": 29,
        "os_version": "10",
        "resolution": "2400*1080",
        "rom": "11.0.0.185C00",
        "rom_version": "OXF-AN00-user 11.0.0 HUAWEIOXF-AN00 185-CHN-LGRP3 release-keys",
        "server_time": 1728386909,
        "ua": "com.zhiliaoapp.musically/2023604040 (Linux; U; Android 10; zh_CN; OXF-AN00; Build/185-CHN-LGRP3;tt-ok/3.12.13.4-tiktok)",
        "update_version_code": "2023604040",
        "uuid": "350244698061054",
        "version_code": "360404",
        "version_name": "36.4.4"
      }
    }
  },
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "tikhub/tiktok-app-v3-ttencrypt-algorithm",
  "input": {
    "url": "https://api16-normal-useast5.tiktokv.us/tiktok/v1/upvote/item/list?user_id=6726034365602628610&offset=0&count=21&scene=0&iid=7425045478163400491&device_id=7349721034012280362&ac=WIFI&channel=googleplay&aid=1233&app_name=musical_ly&version_code=360704&version_name=36.7.4&device_platform=android&os=android&ab_version=36.7.4&ssmix=a&device_type=Pixel+6+Pro&device_brand=google&language=zh&os_api=33&os_version=13&openudid=711192517a8bbf03&manifest_version_code=2023607040&resolution=1440*2891&dpi=560&update_version_code=2023607040&_rticket=1728977220468&is_pad=0&app_type=normal&sys_region=CN&last_install_time=1728977141&timezone_name=America%2FLos_Angeles&app_language=zh-Hans&ac2=wifi5g&uoo=0&op_region=CN&timezone_offset=-28800&build_number=36.7.4&host_abi=arm64-v8a&locale=zh-Hans&region=CN&content_language=en%2C&ts=1728977220&cdid=aa21524b-8633-49ca-8e6e-3275fe1672db",
    "data": "",
    "device_info": {
      "aid": "1233",
      "cdid": "b820f79c-c74a-47b0-912f-ee3002ce60dc",
      "channel": "googleplay",
      "cookies": {},
      "device_brand": "HONOR",
      "device_id": "7423364899755607598",
      "device_manufacturer": "HUAWEI",
      "device_model": "HONOR V30",
      "device_platform": "android",
      "device_type": "OXF-AN00",
      "dpi": 480,
      "host_abi": "arm64-v8a",
      "iid": "7423365134775469866",
      "lanusk": "",
      "manifest_version_code": "2023604040",
      "mc": "7E:EE:BA:BC:5E:40",
      "mssdk_token": "",
      "openudid": "63401ab5140125d1",
      "os_api": 29,
      "os_version": "10",
      "resolution": "2400*1080",
      "rom": "11.0.0.185C00",
      "rom_version": "OXF-AN00-user 11.0.0 HUAWEIOXF-AN00 185-CHN-LGRP3 release-keys",
      "server_time": 1728386909,
      "ua": "com.zhiliaoapp.musically/2023604040 (Linux; U; Android 10; zh_CN; OXF-AN00; Build/185-CHN-LGRP3;tt-ok/3.12.13.4-tiktok)",
      "update_version_code": "2023604040",
      "uuid": "350244698061054",
      "version_code": "360404",
      "version_name": "36.4.4"
    }
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://api.tikhub.io/#/TikTok-App-V3-API/TTencrypt_algorithm_api_v1_tiktok_app_v3_TTencrypt_algorithm_post)

[REST inspection](https://api.agentik.cc/v1/tools/tikhub/tiktok-app-v3-ttencrypt-algorithm) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/tikhub/tiktok-app-v3-ttencrypt-algorithm) · [Agent index](/llms.txt)
