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

Douyin Web TTWID Generator

API dokümanları
https://api.sandbase.ai/v1/api/douyin/web/generate-ttwid

Returns a Douyin web ttwid cookie value required for web session authentication. Accepts an optional custom user agent string.

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

Oynatma Alanı

Girdi
ÇıktıÖrnek
Yanıtoutputs · 176 B · 7 satır
[
  {
    "data": {
      "ttwid": "1%7CDUhgx1gk7BiWEvdAdekoqVeGk6a5k8MitMgWFagQJPg%7C1787219000%7C4a18a285f75af40fb5376e9da85e1dcf234dd9e1e27a4f2a4f78d8504744abac"
    }
  }
]

Örnekler

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

API README

Douyin Web TTWID Generator API

Returns a Douyin web ttwid cookie value as a single string. The only input is an optional user_agent string, so you can call it with an empty body.

Use cases

  • Build a Cookie header for Douyin web requests that need a ttwid value.
  • Replace a ttwid cookie in your own client when you start a new session.
  • Pair a generated ttwid with the same user_agent you send in later web requests.

Request

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

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

Parameters

NameTypeRequiredDescription
user_agentstringNo

Example response

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

{
  "ttwid": "1%7CvTde…"
}

Response fields

FieldMeaning
ttwidThe full Douyin web ttwid cookie value as a URL-encoded string. Use it as is in a cookie header.
ttwidThe value has four parts separated by %7C, which is an encoded /. Keep the separators when you copy the value.
ttwidThe parts are a short leading number, a token, a 10-digit number, and a long hex string. Treat the whole string as opaque and do not edit it.

Notes

Pricing

$0.001 per successful call. Failed calls 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
Douyin$0.001 çağrı başınaJSON
Douyin$0.001 çağrı başınaJSON
Douyin$0.001 çağrı başınaJSON
Douyin$0.001 çağrı başınaJSON
Douyin$0.001 çağrı başınaJSON
Douyin$0.03 çağrı başınaJSON

Kılavuzlar:Best Douyin API in 2026: Pricing Compared

Sorular

SSS

Douyin Web TTWID Generator 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/douyin/web/generate-ttwid adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Douyin Web TTWID Generator API'sinin fiyatı nedir?

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

Douyin Web TTWID Generator API'si hangi parametreleri kabul eder?

Gerekli parametre yoktur. İsteğe bağlı: user_agent (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Douyin Web TTWID Generator 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 Douyin geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Douyin Web TTWID Generator, 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. Douyin API erişimi için ayrıca başvuru yapmanız gerekmez.