urlstringobbligatorio
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.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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/"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
urlstringobbligatorioLong link or link to convert
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
TikTok Share Short LinkQuesta API TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.01 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
Guide:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/tiktok/app-v3/share-short-link con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: url (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. TikTok Share Short Link funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API TikTok.