urlstring必須
Long link or link to convert
https://api.sandbase.ai/v1/api/tiktok/app-v3/share-short-linkConverts standard TikTok long links into shortened shareable URLs. Supply the full target web address to return the compressed redirect URL.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
This API turns a long TikTok web address into a short shareable TikTok link. It needs one input, the full address in url, and returns the short link in shorten_url.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/share-short-link" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.tiktok.com/passport/web/logout/"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Long link or link to convert |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"extra": {
"fatal_item_ids": [],
"logid": "2026110307435967BCE759FE246C01DC13",
"now": 1793691839000
},
"log_pb": {
"impr_id": "2026110307435967BCE759FE246C01DC13"
},
"shorten_url": "https://www.tiktok.com/t/ZP9ytcNX27cY3-4p1bB/",
"status_code": 0,
"status_msg": ""
}
| Field | Meaning |
|---|---|
shorten_url | The shortened TikTok link for the address you sent. It has the form https://www.tiktok.com/t/<code>/. |
status_code | Result code of the request. The value 0 appears in a successful response. |
status_msg | Status text. It is an empty string in the sample response. |
extra.logid / log_pb.impr_id | Request identifiers. In the sample response both fields hold the same value. |
extra.now | Timestamp of the response, as a number. The sample value looks like Unix time in milliseconds. |
extra.fatal_item_ids | List of item IDs that caused a fatal error. It is empty in the sample response. |
https://, in url.shorten_url and check that status_code is 0.$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/tiktok/app-v3/share-short-link" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.tiktok.com/passport/web/logout/"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
urlstring必須Long link or link to convert
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
TikTok Share Short Linkこの API TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.01 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
ガイド:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/app-v3/share-short-link に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: url (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。TikTok Share Short Link は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。