urlstringwajib
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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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/"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
urlstringwajibLong link or link to convert
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
TikTok Share Short LinkAPI ini TikTok | $0.001 per panggilan | JSON |
TikTok | $0.001 per panggilan | JSON |
TikTok | $0.01 per panggilan | JSON |
TikTok | $0.001 per panggilan | JSON |
TikTok | $0.001 per panggilan | JSON |
TikTok | $0.001 per panggilan | JSON |
Panduan:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/tiktok/app-v3/share-short-link dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: url (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. TikTok Share Short Link berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API TikTok secara terpisah.