# Generate TikTok XGnarly

Generate XGnarly encryption, used for TikTok Web API requests. Needs url. Served by TikHub.

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

- Tool ID: `tikhub/tiktok-web-generate-xgnarly`
- Name in the catalog: Tiktok, Generate XGnarly
- 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. 10/second.

Price verification date: 2026-10-05.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "title": "Url",
      "description": "包含域名和参数的请求的API URL，不需要进行URL编码 | The requested API URL, no need to URL encode"
    },
    "body": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Body",
      "description": "请求的API参数，适用于POST请求 | The API parameters of the request, applicable for POST requests",
      "default": ""
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}
```

## Published example

No example input is published for this tool. Ask for the inputs required by its schema.

## 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-Web-API/generate_xgnarly_api_v1_tiktok_web_generate_xgnarly_post)

[REST inspection](https://api.agentik.cc/v1/tools/tikhub/tiktok-web-generate-xgnarly) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/tikhub/tiktok-web-generate-xgnarly) · [Agent index](/llms.txt)
