Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Douyin URL Shortener

APIドキュメント
https://api.sandbase.ai/v1/api/douyin/web/shorten-url

Shortens a target web address for Douyin web workflows. Accepts a full destination link and returns a compact shortened URL.

料金
$0.001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
Target URL to be converted
出力例
レスポンスoutputs · 133 B · 10 行
[
  {
    "data": {
      "code": 0,
      "data": "https://example",
      "message": "success",
      "now": 1787219028
    }
  }
]

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

API README

Douyin URL Shortener API

Takes one full Douyin web address in target_url and returns a short https://v.douyin.com/ link for it. The response holds the short link as a single string in data.

Use cases

  • Turn a long Douyin video page link into a short link for chat messages or posts.
  • Store short links in a database or spreadsheet instead of long video URLs.
  • Build share links for Douyin videos inside an app with limited screen space.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/shorten-url" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target_url": "https://www.douyin.com/video/7575136499386720761"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
target_urlstringYesTarget URL to be converted

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "code": 0,
  "data": "https://v.douyin.com/nzl1K-jOpdo/",
  "message": "success",
  "now": 1793691150
}

Response fields

FieldMeaning
dataThe shortened URL for the submitted target_url. In this example it is https://v.douyin.com/nzl1K-jOpdo/.
codeStatus code of the call. 0 appears with a successful result.
messageShort status text. It reads success when the call works.
nowNumber in the response, 1793691150 in this example. It looks like a Unix timestamp in seconds.

Notes

  • Send the full link in target_url, including https://, for example a video page like https://www.douyin.com/video/7575136499386720761.
  • The short link is a plain string in data, not an object.
  • To get IDs out of Douyin links, use Douyin Video ID Extractor or Douyin Batch Video ID Extraction.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Douyin$0.001 / 回JSON
Douyin$0.001 / 回JSON
Douyin$0.001 / 回JSON
Douyin$0.001 / 回JSON
Douyin$0.001 / 回JSON
Douyin$0.03 / 回JSON

ガイド:Best Douyin API in 2026: Pricing Compared

質問

FAQ

Douyin URL Shortener API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/web/shorten-url に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Douyin URL Shortener API の料金はいくらですか?

1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Douyin URL Shortener API はどのパラメータを受け付けますか?

必須: target_url (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Douyin URL Shortener API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Douyin の開発者アカウントまたは API key は必要ですか?

いいえ。Douyin URL Shortener は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。