sec_uidstring必須
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"
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
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.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
sec_uidstring必須User sec_uid
uidstring必須User id
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"sec_uid": "example",
"short_url": "https://v.douyin.com/0hIiLTgIHZ4/",
"status": "success",
"uid": "example"
}
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-user-profile に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: sec_uid (string) と uid (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin User Profile Share Link は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。