Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

TikTok Web Device Registration

เอกสาร 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.

ราคา
$0.002USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
0 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
ไม่มี schema ของอินพุต
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 454 B · 9 บรรทัด
[
  {
    "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"
    }
  }
]

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

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.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
TikTok$0.002 ต่อการเรียกJSON
TikTok$0.001 ต่อการเรียกJSON
TikTok$0.001 ต่อการเรียกJSON
TikTok$0.001 ต่อการเรียกJSON
TikTok$0.001 ต่อการเรียกJSON
TikTok$0.05 ต่อการเรียกJSON

คู่มือ:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ TikTok Web Device Registration API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tiktok/web/device-register โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

TikTok Web Device Registration API ราคาเท่าไร?

$0.002 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

TikTok Web Device Registration API รับพารามิเตอร์อะไรบ้าง?

TikTok Web Device Registration ไม่รับพารามิเตอร์อินพุต ส่ง JSON body ว่างเปล่า

TikTok Web Device Registration API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ TikTok ไหม?

ไม่จำเป็น TikTok Web Device Registration ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง TikTok API แยกต่างหาก