object_idstring必填
Object id, currently supports the uid in the response of the personal homepage interface as a parameter.
https://api.sandbase.ai/v1/api/tiktok/app-v3/share-qr-codeReturns a shareable QR code for a target TikTok profile. Requests require an object identifier and accept an optional schema type configuration.
[
{
"data": {
"extra": {
"fatal_item_ids": [],
"logid": "202609291415039526CD84BD36B315A83E",
"now": 1790691303000
},
"log_pb": {
"impr_id": "202609291415039526CD84BD36B315A83E"
},
"qrcode_url": {
"uri": "tikcode-tx2/7690960586162569246",
"url_list": [
"https://p19-common-sign.tiktokcdn-us.com/tikcode-tx2/7690960586162569246~tplv-tiktokx-cropcenter:720:720.webp?dr=9640&x-expires=1790712000&x-signature=dPnI%2B4MXd%2FPG%2BBkKnrvfrEC6jws%3D&idc=useast8&ps=13740610&shcp=9b759fb9&shp=45744a80&t=4d5b0474",
"https://p16-common-sign.tiktokcdn-us.com/tikcode-tx2/7690960586162569246~tplv-tiktokx-cropcenter:720:720.webp?dr=9640&x-expires=1790712000&x-signature=MTKJgTclWo0hnMQ9oUxPf2hK9h0%3D&idc=useast8&ps=13740610&shcp=9b759fb9&shp=45744a80&t=4d5b0474",
"https://p19-common-sign.tiktokcdn-us.com/tikcode-tx2/7690960586162569246~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9640&x-expires=1790712000&x-signature=fA%2BGhiEM%2F%2BkZjH3LPUkQ2%2BxF0y4%3D&idc=useast8&ps=13740610&shcp=9b759fb9&shp=45744a80&t=4d5b0474"
]
},
"status_code": 0,
"status_msg": ""
}
}
]選擇一個範例,將其輸入與結果載入 playground。
Returns a QR code image for a TikTok profile. The request needs an object_id, which is the user's uid, and accepts an optional schema_type integer. The response lists signed image URLs for the QR code.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/share-qr-code" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"object_id": "6762244951259661318"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
object_id | string | Yes | Object id, currently supports the uid in the response of the personal homepage interface as a parameter. |
schema_type | integer | No | Schema type |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"extra": {
"fatal_item_ids": [],
"logid": "20261103074359D5CDAF63A5538401C815",
"now": 1793691839000
},
"log_pb": {
"impr_id": "20261103074359D5CDAF63A5538401C815"
},
"qrcode_url": {
"uri": "tikcode-tx2/7703847789901709343",
"url_list": [
"https://p16-common-sign.tiktokcdn-us.com/tikcode-tx2/7703847789901709343~tplv-ti…"
]
},
"status_code": 0,
"status_msg": ""
}
| Field | Meaning |
|---|---|
qrcode_url.url_list[] | Image URLs for the QR code. The sample contains two .webp links and one .jpeg link, each sized 720 by 720. Each URL carries x-expires and x-signature query parameters. |
qrcode_url.uri | Internal path of the QR code image. It also appears inside every URL in url_list. |
status_code / status_msg | Result of the call. The sample returns 0 and an empty message. |
extra.logid / log_pb.impr_id | Request identifiers. They carry the same value in the sample. |
extra.now | Timestamp attached to the response. The sample value 1793691839000 has 13 digits, which fits milliseconds. |
extra.fatal_item_ids | List of item IDs that failed. It is empty in the sample. |
object_id from the uid field in a profile response, for example from TikTok User Profile Details.x-expires value, so download or store the image soon after the call.$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-qr-code" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"object_id": "6762244951259661318"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
object_idstring必填Object id, currently supports the uid in the response of the personal homepage interface as a parameter.
schema_typeintegerSchema type
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"data": {
"extra": {
"fatal_item_ids": [],
"logid": "202609291415039526CD84BD36B315A83E",
"now": 1790691303000
},
"log_pb": {
"impr_id": "202609291415039526CD84BD36B315A83E"
},
"qrcode_url": {
"uri": "tikcode-tx2/7690960586162569246",
"url_list": [
"https://p19-common-sign.tiktokcdn-us.com/tikcode-tx2/7690960586162569246~tplv-tiktokx-cropcenter:720:720.webp?dr=9640&x-expires=1790712000&x-signature=dPnI%2B4MXd%2FPG%2BBkKnrvfrEC6jws%3D&idc=useast8&ps=13740610&shcp=9b759fb9&shp=45744a80&t=4d5b0474",
"https://p16-common-sign.tiktokcdn-us.com/tikcode-tx2/7690960586162569246~tplv-tiktokx-cropcenter:720:720.webp?dr=9640&x-expires=1790712000&x-signature=MTKJgTclWo0hnMQ9oUxPf2hK9h0%3D&idc=useast8&ps=13740610&shcp=9b759fb9&shp=45744a80&t=4d5b0474",
"https://p19-common-sign.tiktokcdn-us.com/tikcode-tx2/7690960586162569246~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9640&x-expires=1790712000&x-signature=fA%2BGhiEM%2F%2BkZjH3LPUkQ2%2BxF0y4%3D&idc=useast8&ps=13740610&shcp=9b759fb9&shp=45744a80&t=4d5b0474"
]
},
"status_code": 0,
"status_msg": ""
}
}
]探索更多
| API | 價格 | 回應 |
|---|---|---|
TikTok Share QR Code此 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 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/tiktok/app-v3/share-qr-code。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:object_id (string)。 選填:schema_type (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。TikTok Share QR Code 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 TikTok API 存取權。