Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

TikTok Web ID

Dokumentasi 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.

Harga
$0.001USD / panggilan
Metode
POST
Respons
JSON
Parameter
0 wajib · 5 opsional

Playground

Input
OutputContoh
Responsoutputs · 219 B · 10 baris
[
  {
    "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"
    }
  }
]

Contoh

Pilih contoh untuk memuat input dan hasilnya ke playground.

README API

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
TikTok$0.001 per panggilanJSON
TikTok$0.001 per panggilanJSON
TikTok$0.001 per panggilanJSON
TikTok$0.001 per panggilanJSON
TikTok$0.001 per panggilanJSON
TikTok$0.05 per panggilanJSON

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

Pertanyaan

FAQ

Bagaimana cara menggunakan API TikTok Web ID?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/tiktok/web/generate-webid dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API TikTok Web ID?

$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API TikTok Web ID?

Tidak ada parameter yang wajib. Opsional: app_id (integer), referer (string), url (string), user_agent (string) dan user_unique_id (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API TikTok Web ID?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API TikTok?

Tidak. TikTok Web ID berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API TikTok secara terpisah.