Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

TikTok Web Device Registration

API dokümanları
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.

Fiyat
$0.002USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
0 gerekli · 0 isteğe bağlı

Oynatma Alanı

Girdi
Kullanılabilir giriş şeması yok
ÇıktıÖrnek
Yanıtoutputs · 454 B · 9 satır
[
  {
    "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"
    }
  }
]

Örnekler

Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.

API README

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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
TikTok$0.002 çağrı başınaJSON
TikTok$0.001 çağrı başınaJSON
TikTok$0.001 çağrı başınaJSON
TikTok$0.001 çağrı başınaJSON
TikTok$0.001 çağrı başınaJSON
TikTok$0.05 çağrı başınaJSON

Kılavuzlar:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Sorular

SSS

TikTok Web Device Registration API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/tiktok/web/device-register adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

TikTok Web Device Registration API'sinin fiyatı nedir?

çağrı başına $0.002, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

TikTok Web Device Registration API'si hangi parametreleri kabul eder?

TikTok Web Device Registration hiçbir giriş parametresi almaz; boş bir JSON gövdesi gönderin.

TikTok Web Device Registration API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir TikTok geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. TikTok Web Device Registration, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. TikTok API erişimi için ayrıca başvuru yapmanız gerekmez.