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

TikTok Web ID

เอกสาร API
https://api.sandbase.ai/v1/api/tiktok/web/generate-webid

Returns a TikTok web_id value for web session handling. Accepts optional parameters including url, app_id, referer, user_agent, and user_unique_id.

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

Playground

อินพุต
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 219 B · 10 บรรทัด
[
  {
    "data": {
      "e": 0,
      "ssid": "un_support",
      "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:145.0) Gecko/20100101 Firefox/145.0",
      "web_id": "7671202019835102733"
    }
  }
]

ตัวอย่าง

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

API README

TikTok Web ID API

Returns a TikTok web_id string for use in web session handling, along with a user_agent string. All inputs are optional, and an empty request returns a value.

Use cases

  • Get a web_id to attach to TikTok web requests that need a session identifier.
  • Pass your own user_agent or referer to build a web session that matches the browser you simulate.
  • Pass a user_unique_id to tie the generated ID to one browser context in your own tooling.

Request

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

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

Parameters

NameTypeRequiredDescription
app_idintegerNo
refererstringNo
urlstringNo
user_agentstringNo
user_unique_idstringNo

Example response

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

{
  "e": 0,
  "ssid": "un_support",
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:145.0) Gecko/20100101 Firefox/1…",
  "web_id": "7703847884642567693"
}

Response fields

FieldMeaning
web_idThe generated TikTok web ID, returned as a string of digits.
user_agentThe browser user agent string returned with the ID. Reuse it in later web requests so the session stays consistent.
ssidA session value. The sample returns un_support, so do not rely on it.
eA status code. The sample returns 0.

Notes

  • All parameters are optional: url, app_id, referer, user_agent and user_unique_id. The sample request sent none of them.
  • Treat web_id as a string. It is a long number and can lose digits if you parse it as a number.
  • Pair this with TikTok Web TTWID Identifier or TikTok Real msToken when you need other session values.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

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

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

APIs ทั้งหมด
APIราคาการตอบกลับ
TikTok Web IDAPI นี้
TikTok
$0.001 ต่อการเรียก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 ID API ได้อย่างไร?

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

TikTok Web ID API ราคาเท่าไร?

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

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

ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: app_id (integer), referer (string), url (string), user_agent (string) และ user_unique_id (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

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

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

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

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