Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

TikTok Share Short Link

API दस्तावेज़
https://api.sandbase.ai/v1/api/tiktok/app-v3/share-short-link

Converts standard TikTok long links into shortened shareable URLs. Supply the full target web address to return the compressed redirect URL.

मूल्य
$0.001USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 0 वैकल्पिक

प्लेग्राउंड

इनपुट
Long link or link to convert
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

TikTok Share Short Link API

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.

Use cases

  • Shorten a long TikTok page address before adding it to a text message or email.
  • Store compact TikTok links in a spreadsheet or database instead of long addresses.
  • Build a share button that creates a short link for a TikTok page on demand.
  • Create a short link first, then pass it to a QR code tool for printed material.

Request

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.

Parameters

NameTypeRequiredDescription
urlstringYesLong link or link to convert

Example response

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": ""
}

Response fields

FieldMeaning
shorten_urlThe shortened TikTok link for the address you sent. It has the form https://www.tiktok.com/t/<code>/.
status_codeResult code of the request. The value 0 appears in a successful response.
status_msgStatus text. It is an empty string in the sample response.
extra.logid / log_pb.impr_idRequest identifiers. In the sample response both fields hold the same value.
extra.nowTimestamp of the response, as a number. The sample value looks like Unix time in milliseconds.
extra.fatal_item_idsList of item IDs that caused a fatal error. It is empty in the sample response.

Notes

  • Send the full address, including https://, in url.
  • Read the short link from shorten_url and check that status_code is 0.
  • To make a QR code for a link, try TikTok Share QR Code.

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कीमतप्रतिक्रिया
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

प्रश्न

FAQ

TikTok Share Short Link API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/tiktok/app-v3/share-short-link पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

TikTok Share Short Link API की लागत कितनी है?

$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

TikTok Share Short Link API कौन-से parameters स्वीकार करती है?

आवश्यक: url (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

TikTok Share Short Link API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक TikTok developer account या API key चाहिए?

नहीं। TikTok Share Short Link SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से TikTok API access के लिए आवेदन करने की आवश्यकता नहीं है।