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

TikTok WSS X-Bogus Signature

API-Dokumentation
https://api.sandbase.ai/v1/api/tiktok/web/generate-wss-xb-signature

Generates the X-Bogus signature required for TikTok WebSocket connections. Accepts an optional custom browser user-agent string.

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

Playground

Eingabe
User browser agent (optional, uses default UA if not provided)
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

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

API-README

TikTok WSS X-Bogus Signature API

Returns an X-Bogus signature string for TikTok WebSocket (WSS) connections. The only input is an optional user_agent string. If you leave it out, the API uses a default browser user agent.

Use cases

  • Sign a TikTok live room WebSocket URL before you open the connection.
  • Generate a signature that matches the user agent your own client sends.
  • Refresh the signature in a script that reconnects to a TikTok WebSocket listener.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/generate-wss-xb-signature" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

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

Parameters

NameTypeRequiredDescription
user_agentstringNoUser browser agent (optional, uses default UA if not provided)

Example response

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

{
  "x_bogus": "fd9W5SN3j9PxkwTy"
}

Response fields

FieldMeaning
x_bogusThe X-Bogus signature string for a TikTok WSS connection.
x_bogusIn the example, the value is a 16-character string of letters and digits. Treat it as an opaque token and pass it on unchanged.
x_bogusThe response has no other keys. Read this single value from the top level of the JSON object.

Notes

Pricing

$0.001 per successful call. Failed calls 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 WSS X-Bogus Signature API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tiktok/web/generate-wss-xb-signature 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 WSS 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 WSS X-Bogus Signature API?

Es sind keine Parameter erforderlich. Optional: user_agent (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die TikTok WSS 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 WSS 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.