Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

TikTok WSS X-Bogus Signature

Dokumentacja API
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.

Cena
$0.001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
0 wymaganych · 1 opcjonalnych

Playground

Wejście
User browser agent (optional, uses default UA if not provided)
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.05 za wywołanieJSON

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

Pytania

FAQ

Jak używać API TikTok WSS X-Bogus Signature?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/tiktok/web/generate-wss-xb-signature z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API TikTok WSS X-Bogus Signature?

$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API TikTok WSS X-Bogus Signature?

Nie są wymagane żadne parametry. Opcjonalne: user_agent (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API TikTok WSS X-Bogus Signature?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego TikTok lub klucza API?

Nie. TikTok WSS X-Bogus Signature działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API TikTok.