sec_uidstringwymagane
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"
}
}
]Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
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.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
sec_uidstringwymaganeUser sec_uid
uidstringwymaganeUser id
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
[
{
"data": {
"sec_uid": "example",
"short_url": "https://v.douyin.com/0hIiLTgIHZ4/",
"status": "success",
"uid": "example"
}
}
]Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Przewodniki:Best Douyin API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-user-profile z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: sec_uid (string) i uid (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Douyin User Profile Share Link działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Douyin.