Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

TikTok Share QR Code

API 文档
https://api.sandbase.ai/v1/api/tiktok/app-v3/share-qr-code

Returns a shareable QR code for a target TikTok profile. Requests require an object identifier and accept an optional schema type configuration.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 1 个可选

Playground

输入
Object id, currently supports the uid in the response of the personal homepage interface as a parameter.
Schema type
输出示例
响应outputs · 1.2 KB · 24 行
[
  {
    "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 中。

API README

TikTok Share QR Code API

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.

Use cases

  • Print a scannable QR code on flyers or packaging that opens a creator's TikTok profile.
  • Show a profile QR code on a website or in a media kit so visitors can follow an account from their phone.
  • Add a QR code to event slides or stream overlays that points to a speaker's TikTok page.
  • Build a link-in-bio tool that creates a downloadable QR image for each saved TikTok account.

Request

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.

Parameters

NameTypeRequiredDescription
object_idstringYesObject id, currently supports the uid in the response of the personal homepage interface as a parameter.
schema_typeintegerNoSchema type

Example response

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

Response fields

FieldMeaning
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.uriInternal path of the QR code image. It also appears inside every URL in url_list.
status_code / status_msgResult of the call. The sample returns 0 and an empty message.
extra.logid / log_pb.impr_idRequest identifiers. They carry the same value in the sample.
extra.nowTimestamp attached to the response. The sample value 1793691839000 has 13 digits, which fits milliseconds.
extra.fatal_item_idsList of item IDs that failed. It is empty in the sample.

Notes

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

问题

常见问题

如何使用 TikTok Share QR Code API?

向 https://api.sandbase.ai/v1/api/tiktok/app-v3/share-qr-code 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

TikTok Share QR Code API 的价格是多少?

每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

TikTok Share QR Code API 接受哪些参数?

必填:object_id (string)。 可选:schema_type (integer)。 Parameters 表和本页的 Playground 列出了每个字段。

TikTok Share QR Code API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 TikTok 开发者账户或 API key 吗?

不需要。TikTok Share QR Code 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 TikTok API 访问权限。