Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

TikTok WSS X-Bogus Signature

Documentación de la 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.

Precio
$0.001USD / llamada
Método
POST
Respuesta
JSON
Parámetros
0 obligatorios · 1 opcionales

Entorno de pruebas

Entrada
User browser agent (optional, uses default UA if not provided)
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
TikTok$0.001 por llamadaJSON
TikTok$0.001 por llamadaJSON
TikTok$0.001 por llamadaJSON
TikTok$0.001 por llamadaJSON
TikTok$0.001 por llamadaJSON
TikTok$0.05 por llamadaJSON

Guías:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de TikTok WSS X-Bogus Signature?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/tiktok/web/generate-wss-xb-signature con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de TikTok WSS X-Bogus Signature?

$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de TikTok WSS X-Bogus Signature?

No se requieren parámetros. Opcionales: user_agent (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de TikTok WSS X-Bogus Signature?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de TikTok?

No. TikTok WSS X-Bogus Signature funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de TikTok por separado.