Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

TikTok Web X-Bogus Signature

API-Dokumentation
https://api.sandbase.ai/v1/api/tiktok/web/generate-xbogus

Returns a signed TikTok Web request URL containing the required X-Bogus token. The endpoint takes an unsigned target API URL and a browser User-Agent string.

Preis
$0.001USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
2 erforderlich · 0 optional

Playground

Eingabe
Unsigned API URL
User browser User-Agent
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

TikTok Web X-Bogus Signature API

Generate the X-Bogus signature for a TikTok web request URL and user agent. TikTok's web endpoints reject unsigned requests; the signature is appended to the query string as X-Bogus=<value>.

Use cases

  • Sign requests when you call TikTok web endpoints from your own crawler.
  • Debug why a captured TikTok web request fails after its parameters change.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/generate-xbogus" \
  -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", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:145.0) Gecko/20100101 Firefox/145.0"}'

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

Parameters

NameTypeRequiredDescription
urlstringYesUnsigned API URL
user_agentstringYesUser browser User-Agent

Example response

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

{
  "url": "https://www.tiktok.com/tag/cat?_r=1&name=cat&u_code=f02lm2f78d1elh&_d=f02ll161mc…",
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:145.0) Gecko/20100101 Firefox/1…",
  "x_bogus": "DFSzswVY8ZXANGnECXHeqM9WX7nO"
}

Response fields

FieldMeaning
x_bogusThe signature to append as &X-Bogus=<value>.
url / user_agentThe inputs, echoed back.

Notes

  • The signature is bound to the exact query string and user agent: send requests with the same user agent you signed with, and sign again after changing any parameter.
  • Pair it with TikTok Device Register to get a matching device ID and cookie.

Pricing

$0.001 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.05 pro AufrufJSON

Anleitungen:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die TikTok Web X-Bogus Signature API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tiktok/web/generate-xbogus mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die TikTok Web X-Bogus Signature API?

$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die TikTok Web X-Bogus Signature API?

Erforderlich: url (string) und user_agent (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die TikTok Web X-Bogus Signature API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein TikTok-Entwicklerkonto oder einen API-Schlüssel?

Nein. TikTok Web X-Bogus Signature läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für TikTok API beantragen.