urlstringzorunlu
Douyin link
https://api.sandbase.ai/v1/api/douyin/app-v3/generate-short-urlConverts a standard Douyin web link into a shortened Douyin URL. Returns the shortened link string and operation status for the provided URL.
[
{
"data": {
"code": 0,
"data": [
{
"short_url": "https://example",
"status": "success",
"target": "https://example"
}
],
"message": "success",
"now": 1787219156
}
}
]Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
Converts a standard Douyin web link into a short v.douyin.com URL. It needs one input, url, which is the full Douyin link to shorten. The response returns the short link, the original target and an operation status.
target by reading it back from the response.curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/generate-short-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.douyin.com/video/7691553968815623478"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Douyin link |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": [
{
"short_url": "https://v.douyin.com/cuksjs-5j5k/",
"status": "success",
"target": "https://www.douyin.com/video/7691553968815623478"
}
],
"message": "success",
"now": 1793691092
}
| Field | Meaning |
|---|---|
data[].short_url | The shortened Douyin link. It uses the https://v.douyin.com/ domain. |
data[].target | The full Douyin link the short URL points to. It matches the url you sent. |
data[].status | Result of the shortening step for this link. The value is success when a short link was created. |
code / message | Overall request result. code is 0 and message is success when the call worked. |
now | A numeric timestamp returned with the response. It looks like a Unix time in seconds. |
url, for example a https://www.douyin.com/video/<id> link.data. Read the first item for the short link.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/generate-short-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "example"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
urlstringzorunluDouyin link
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
[
{
"data": {
"code": 0,
"data": [
{
"short_url": "https://example",
"status": "success",
"target": "https://example"
}
],
"message": "success",
"now": 1787219156
}
}
]Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Douyin | $0.001 çağrı başına | JSON |
Douyin | $0.001 çağrı başına | JSON |
Douyin | $0.001 çağrı başına | JSON |
Douyin | $0.001 çağrı başına | JSON |
Douyin | $0.001 çağrı başına | JSON |
Douyin | $0.001 çağrı başına | JSON |
Kılavuzlar:Best Douyin API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/douyin/app-v3/generate-short-url adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: url (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Douyin Short Link 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.