Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

TikTok WSS X-Bogus Signature

Docs da 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.

Preço
$0.001USD / chamada
Método
POST
Resposta
JSON
Parâmetros
0 obrigatórios · 1 opcionais

Playground

Entrada
User browser agent (optional, uses default UA if not provided)
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da 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 mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.05 por chamadaJSON

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

Perguntas

FAQ

Como eu uso a API TikTok WSS X-Bogus Signature?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/tiktok/web/generate-wss-xb-signature com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API TikTok WSS X-Bogus Signature?

$0.001 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API TikTok WSS X-Bogus Signature aceita?

Nenhum parâmetro é obrigatório. Opcionais: user_agent (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API TikTok WSS X-Bogus Signature retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor TikTok ou de uma chave de API?

Não. TikTok WSS X-Bogus Signature funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do TikTok separadamente.