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; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| 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
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/tiktok/app-v3/share-short-link, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.001 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: url (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. TikTok Share Short Link работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API TikTok.