Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

TikTok Web Device Registration

Documentazione API
https://api.sandbase.ai/v1/api/tiktok/web/device-register

Registers a virtual client session to generate a device ID and guest cookie for TikTok Web requests. Returns device tokens and session parameters.

Prezzo
$0.002USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
0 obbligatori · 0 opzionali

Playground

Input
Nessuno schema di input disponibile
OutputEsempio
Rispostaoutputs · 454 B · 9 righe
[
  {
    "data": {
      "cookie": "ttwid=1%7Ck4v_d1h7keU2r-k5cQFMHkLCBAg2dzqi9zTxocIoDm8%7C1790691413%7C18bbb0d1f5283027d811451a2f53ac3813422854fd84c5d7d977336270e5e3cf;tt_csrf_token=i6xCYvkQ-ZkO62C6-F5Hz33VZiG_wfugqfbI;tt_chain_token=0/iCrbi7RboRLtrUSzH1AQ==",
      "deviceId": "7690961045297481246",
      "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
    }
  }
]

Esempi

Seleziona un esempio per caricare i suoi input e il risultato nel playground.

README API

TikTok Web Device Registration API

Register a fresh TikTok web device and get its deviceId, a ttwid cookie and the user agent it was registered with. TikTok web endpoints expect a consistent device ID, cookie and user agent.

Use cases

  • Start a new crawling session with a valid device identity.
  • Rotate device identities when a session gets rate limited.

Request

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

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

Example response

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

{
  "cookie": "ttwid=1%7C0sAkVWZfNDVS5_Qlo8LP0DifeYAWTRV9QX4EOEOK6l8%7C1793670125%7C58a20d6afae…",
  "deviceId": "7703754514907055629",
  "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)…"
}

Response fields

FieldMeaning
deviceIdRegistered device ID.
cookieCookie string including ttwid.
user_agentUse this exact user agent with the device ID and cookie.

Notes

Pricing

$0.002 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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
TikTok$0.002 per chiamataJSON
TikTok$0.001 per chiamataJSON
TikTok$0.001 per chiamataJSON
TikTok$0.001 per chiamataJSON
TikTok$0.001 per chiamataJSON
TikTok$0.05 per chiamataJSON

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

Domande

FAQ

Come uso l'API TikTok Web Device Registration?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/tiktok/web/device-register con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API TikTok Web Device Registration?

$0.002 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API TikTok Web Device Registration?

TikTok Web Device Registration non accetta parametri di input; invia un body JSON vuoto.

Cosa restituisce l'API TikTok Web Device Registration?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API TikTok?

No. TikTok Web Device Registration funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API TikTok.