Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

TikTok Web X-Gnarly Signature

APIドキュメント
https://api.sandbase.ai/v1/api/tiktok/web/generate-xgnarly

Returns generated X-Gnarly signature values for TikTok web requests based on a target endpoint URL and optional request body data.

料金
$0.002USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 1 件

プレイグラウンド

入力
The requested API URL, no need to URL encode
The API parameters of the request, applicable for POST requests
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

TikTok Web X-Gnarly Signature API

Returns signature values for a TikTok web request, including xGnarly, xBogus and xDynosaur, plus a signed copy of the URL. It needs the full request url and an optional body string for POST requests.

Use cases

  • Sign a TikTok web endpoint URL before you send the request yourself.
  • Get the xGnarly value to attach to a request that needs it.
  • Sign a POST request by passing its parameters in body.
  • Reuse the returned user_agent so your request headers match the signature.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/generate-xgnarly" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.tiktok.com/tag/cat?_r=1&name=cat&u_code=f02lm2f78d1elh&_d=f02ll161mcjihj&share_challenge_id=7551&sharer_language=en&source=h5_m"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
urlstringYesThe requested API URL, no need to URL encode
bodystringNoThe API parameters of the request, applicable for POST requests

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "body": "",
  "signature": {
    "signedUrl": "https://www.tiktok.com/tag/cat?_r=1&name=cat&u_code=f02lm2f78d1elh&_d=f02ll161mc…",
    "xBogus": "1",
    "xDynosaur": "MwDqFZsDyJz0WUQqmwWXyw3eVqiiAocN4i8HrXlDijQD7wFNRr2Tz5/6YUbiz4AE3BgF2bNXJHozDynN…",
    "xGnarly": "MkD6M/0-wSOgEHM72xx9Pmya70CI67jZFmlC6-SUgWujQf0-x/rRdQxOIvXBvWjzh0hCieJoa1YfSSWb…"
  },
  "status": "success",
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko/20100101 Firefox/1…",
  "version": "5.3.2"
}

Response fields

FieldMeaning
signature.xGnarlyThe X-Gnarly signature value generated for the given url.
signature.xBogusThe X-Bogus value for the same request. It is 1 in this example.
signature.xDynosaurThe X-Dynosaur value generated for the request.
signature.signedUrlThe input url with the X-Dynosaur parameter appended as a query parameter.
bodyThe request body that was signed. It is an empty string when you send no body.
user_agentThe browser User-Agent string the signature was generated with.
versionThe version string of the signing logic, for example 5.3.2.
statusWhether the call worked. A good call returns success.

Notes

Pricing

$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
TikTok$0.002 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.05 / 回JSON

ガイド:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

質問

FAQ

TikTok Web X-Gnarly Signature API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/web/generate-xgnarly に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

TikTok Web X-Gnarly Signature API の料金はいくらですか?

1回あたり $0.002、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

TikTok Web X-Gnarly Signature API はどのパラメータを受け付けますか?

必須: url (string)。 任意: body (any)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

TikTok Web X-Gnarly Signature API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

TikTok の開発者アカウントまたは API key は必要ですか?

いいえ。TikTok Web X-Gnarly Signature は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。