sec_uidstringwajib
User sec_uid
https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-user-profileGenerates a Douyin app share link that redirects to a specific user profile using a provided user ID and secure user ID.
[
{
"data": {
"sec_uid": "example",
"short_url": "https://v.douyin.com/0hIiLTgIHZ4/",
"status": "success",
"uid": "example"
}
}
]Pilih contoh untuk memuat input dan hasilnya ke playground.
Returns a Douyin short link that opens the Douyin app on a specific user profile. It needs the user's uid and sec_uid.
uid and sec_uid pair resolves to a working profile link.curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-user-profile" \
-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/Ihlbayv701k/",
"status": "success",
"uid": "92769419069"
}
| Field | Meaning |
|---|---|
short_url | Short Douyin link that opens the app on the requested user profile. |
status | Result of the request. The value is success when the link was generated. |
uid | The user ID from the request, echoed back. |
sec_uid | The secure user ID from the request, echoed back. |
uid and sec_uid are required. Send them as strings.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-user-profile" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "example",
"sec_uid": "example"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
sec_uidstringwajibUser sec_uid
uidstringwajibUser id
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"data": {
"sec_uid": "example",
"short_url": "https://v.douyin.com/0hIiLTgIHZ4/",
"status": "success",
"uid": "example"
}
}
]Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-user-profile 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.
$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: sec_uid (string) dan uid (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Douyin User Profile Share Link 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 Douyin secara terpisah.