TikTok Web Device Registration
https://api.sandbase.ai/v1/api/tiktok/web/device-registerRegisters a virtual client session to generate a device ID and guest cookie for TikTok Web requests. Returns device tokens and session parameters.
- Precio
- $0.002USD / llamada
- Método
- POST
- Respuesta
- JSON
- Parámetros
- 0 obligatorios · 0 opcionales
Entorno de pruebas
[
{
"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"
}
}
]Ejemplos
Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.
README de la 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
| Field | Meaning |
|---|---|
deviceId | Registered device ID. |
cookie | Cookie string including ttwid. |
user_agent | Use this exact user agent with the device ID and cookie. |
Notes
- No parameters are required.
- Sign the requests you make with TikTok Generate X-Bogus using the same user agent.
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.
Empiece a construir
Envíe su primera solicitud
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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 '{}'2. Autenticación
Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
3. Parámetros
No se ha publicado un esquema de parámetros para esta API.
4. Respuesta
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
[
{
"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"
}
}
]Explorar más
APIs relacionadas
| API | Precio | Respuesta |
|---|---|---|
TikTok Web Device RegistrationEsta API TikTok | $0.002 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.05 por llamada | JSON |
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 Web Device Registration?
Envía una solicitud POST a https://api.sandbase.ai/v1/api/tiktok/web/device-register 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 Web Device Registration?
$0.002 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 Web Device Registration?
TikTok Web Device Registration no acepta parámetros de entrada; envía un cuerpo JSON vacío.
¿Qué devuelve la API de TikTok Web Device Registration?
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 Web Device Registration 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.
