aweme_idstring必須
Video id
https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-video-detailReturns a Douyin share URL for a given video ID. The resulting link opens the Douyin mobile application directly to the specified video detail screen.
[
{
"data": {
"aweme_id": "7197598285882789120",
"short_url": "https://v.douyin.com/T9JCdty6Mbc/",
"status": "success"
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Returns a Douyin short share URL for a video. The link opens the Douyin mobile app on that video's detail screen. You send the video ID as aweme_id.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-video-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"aweme_id": "7197598285882789120"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
aweme_id | string | Yes | Video id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"aweme_id": "7197598285882789120",
"short_url": "https://v.douyin.com/leMEOXh1Mec/",
"status": "success"
}
| Field | Meaning |
|---|---|
aweme_id | The video ID you sent. It echoes the input so you can match the result to your request. |
short_url | The short Douyin share link for the video. It has the form https://v.douyin.com/<code>/. |
status | Result of the call. The value is success when the link was created. |
aweme_id is the numeric Douyin video ID, for example 7197598285882789120. Pass it as a string.aweme_id can return a different short_url code on different calls.$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-video-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"aweme_id": "7197598285882789120"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
aweme_idstring必須Video id
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"aweme_id": "7197598285882789120",
"short_url": "https://v.douyin.com/T9JCdty6Mbc/",
"status": "success"
}
}
]さらに探索
| 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-video-detail に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: aweme_id (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin Video Detail App Link は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。