sec_uidstringzorunlu
User sec_uid
https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-send-private-messageGenerates a Douyin deep link to open the mobile application directly to a user conversation. Requires the target user's uid and sec_uid to return a shortened URL.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
Returns a short Douyin link that opens the Douyin mobile app to a private message conversation with a given user. It needs the target user's uid and sec_uid.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-send-private-message" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_", "uid": "92769419069"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
sec_uid | string | Yes | User sec_uid |
uid | string | Yes | User id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_",
"short_url": "https://v.douyin.com/mA8jwqgb6sA/",
"status": "success",
"uid": "92769419069"
}
| Field | Meaning |
|---|---|
short_url | Shortened v.douyin.com link. Opening it on a phone with Douyin installed launches the app to the conversation with the target user. |
status | Result of the call. The value success means the link was created. |
uid | The user id you sent, echoed back in the response. |
sec_uid | The user sec_uid you sent, echoed back in the response. |
uid and sec_uid. Both are required and both must belong to the same account.uid and sec_uid pair from a user lookup such as Douyin User Profile (App V3).$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/open-app-to-send-private-message" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'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.
sec_uidstringzorunluUser sec_uid
uidstringzorunluUser id
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
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/open-app-to-send-private-message 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: sec_uid (string) ve uid (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 Direct Message Deep Link, 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.