secUidstring
User secUid
預設:""
https://api.sandbase.ai/v1/api/tiktok/web/user-profileReturns public profile information for a specified TikTok user. Look up accounts by providing either the unique handle or secure user ID.
[
{
"data": {
"needFix": false,
"shareMeta": {
"desc": "@srlechuza2.0 225 Followers, 89 Following, 0 Likes - Watch awesome short videos created by 𝐉𝐀𝐐𝐔𝐄 𝐌𝐀𝐓𝐄🔥 ⃤⃟⃝ 🌹",
"title": "𝐉𝐀𝐐𝐔𝐄 𝐌𝐀𝐓𝐄🔥 ⃤⃟⃝ 🌹 on TikTok"
},
"statusCode": 0,
"statusMsg": "",
"userInfo": {
"itemList": [],
"stats": {
"diggCount": 0,
"followerCount": 225,
"followingCount": 89,
"friendCount": 78,
"heart": 0,
"heartCount": 0,
"videoCount": 0
},
"statsV2": {
"diggCount": "0",
"followerCount": "225",
"followingCount": "89",
"friendCount": "78",
"heart": "0",
"heartCount": "0",
"videoCount": "0"
},
"user": {
"UserStoryStatus": 0,
"avatarLarger": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&refresh_token=f400aeac&x-expires=1791313200&x-signature=ZPzzcIwvLxQlVSgTgXlTcn%2BZ1g0%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast8",
"avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9640&refresh_token=2d28b08b&x-expires=1791313200&x-signature=85ZDs3Q7T8yW0SY5HijWifo2kng%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast8",
"avatarThumb": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&refresh_token=995b138d&x-expires=1791313200&x-signature=cZmYyeWAntDKMHAGynv3I9YIdbc%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast8",
"canExpPlaylist": true,
"commentSetting": 0,
"commerceUserInfo": {
"commerceUser": false
},
"createTime": 1724366110,
"downloadSetting": 0,
"duetSetting": 0,
"eventList": [],
"followingVisibility": 2,
"ftc": false,
"id": "7406095610422641710",
"isADVirtual": false,
"isEmbedBanned": false,
"isOrganization": 0,
"language": "en",
"nickNameModifyTime": 1789014478,
"nickname": "𝐉𝐀𝐐𝐔𝐄 𝐌𝐀𝐓𝐄🔥 ⃤⃟⃝ 🌹",
"nowInvitationCardUrl": "",
"openFavorite": false,
"privateAccount": false,
"profileEmbedPermission": 1,
"profileTab": {
"showMusicTab": false,
"showPlayListTab": false,
"showQuestionTab": false
},
"recommendReason": "",
"relation": 0,
"roomId": "",
"secUid": "MS4wLjABAAAAvVhoo3xoPqx2BhlxArecsPyqN86uGz1sm5Q4bwTwOZ1MUU1PgK6Zemi8PJtHpeh5",
"secret": false,
"shortDramaCreator": {},
"shortId": "",
"signature": "🌸",
"stitchSetting": 0,
"suggestAccountBind": false,
"ttSeller": false,
"uniqueId": "srlechuza2.0",
"uniqueIdModifyTime": 1789783298,
"verified": false
}
}
}
}
]選擇一個範例,將其輸入與結果載入 playground。
Returns the public profile of a TikTok account, including its bio, verification status, avatar URLs and follower, like and video counts. Send either uniqueId (the handle) or secUid (the secure user ID).
secUid so you can call other user endpoints.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/user-profile" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uniqueId": "tiktok"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
secUid | string | No | User secUid |
uniqueId | string | No | User uniqueId |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"needFix": false,
"shareMeta": {
"desc": "@tiktok 96.5m Followers, 1 Following, 466.7m Likes - Watch awesome short videos …",
"title": "TikTok on TikTok"
},
"statusCode": 0,
"statusMsg": "",
"userInfo": {
"itemList": [],
"stats": {
"diggCount": 0,
"followerCount": 96500000,
"followingCount": 1,
"friendCount": 1,
"heart": 466700000,
"heartCount": 466700000,
"videoCount": 1514
},
"statsV2": {
"diggCount": "0",
"followerCount": "96532208",
"followingCount": "1",
"friendCount": "1",
"heart": "466687514",
"heartCount": "466687514",
"videoCount": "1514"
},
"user": {
"UserStoryStatus": 0,
"avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ba67b11de451691…",
"avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ba67b11de451691…",
"avatarThumb": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ba67b11de451691…",
"bioLink": {
"link": "tiktok.com/discovermore",
"risk": 0
},
"canExpPlaylist": true,
"commentSetting": 0,
"commerceUserInfo": {
"category": "Others",
"categoryButton": false,
"commerceUser": true,
"downLoadLink": {
"android": "",
"ios": ""
}
},
"createTime": 1425144149,
"downloadSetting": 0,
"duetSetting": 0,
"eventList": []
}
}
}
| Field | Meaning |
|---|---|
userInfo.user.uniqueId / userInfo.user.nickname | The account handle and the display name. |
userInfo.user.secUid | Secure user ID of the account. Use it as input to other user endpoints. |
userInfo.user.id | Numeric user ID of the account, returned as a string. |
userInfo.user.signature | The bio text on the profile. |
userInfo.user.verified | true when the account is verified. |
userInfo.user.privateAccount | true when the account is private. |
userInfo.user.createTime | Account creation time as a Unix timestamp in seconds. |
userInfo.user.avatarLarger / userInfo.user.avatarMedium / userInfo.user.avatarThumb | Avatar image URLs in large, medium and thumbnail sizes. |
userInfo.stats.followerCount / userInfo.stats.followingCount / userInfo.stats.videoCount | Number of followers, number of accounts followed, and number of videos. The follower count is rounded in this block. |
userInfo.statsV2.followerCount / userInfo.statsV2.heartCount / userInfo.statsV2.videoCount | Exact counts for followers, total likes received and videos. Values are strings, so convert them to numbers before you do math. |
uniqueId or secUid. The request example uses uniqueId only.userInfo.statsV2 when you need exact counts. userInfo.stats shows rounded values such as 96500000 for followers.secUid from this response.secUid first.$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/web/user-profile" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"secUid": "",
"uniqueId": "srlechuza2.0"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
secUidstringUser secUid
預設:""
uniqueIdstringUser uniqueId
預設:""
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"data": {
"needFix": false,
"shareMeta": {
"desc": "@srlechuza2.0 225 Followers, 89 Following, 0 Likes - Watch awesome short videos created by 𝐉𝐀𝐐𝐔𝐄 𝐌𝐀𝐓𝐄🔥 ⃤⃟⃝ 🌹",
"title": "𝐉𝐀𝐐𝐔𝐄 𝐌𝐀𝐓𝐄🔥 ⃤⃟⃝ 🌹 on TikTok"
},
"statusCode": 0,
"statusMsg": "",
"userInfo": {
"itemList": [],
"stats": {
"diggCount": 0,
"followerCount": 225,
"followingCount": 89,
"friendCount": 78,
"heart": 0,
"heartCount": 0,
"videoCount": 0
},
"statsV2": {
"diggCount": "0",
"followerCount": "225",
"followingCount": "89",
"friendCount": "78",
"heart": "0",
"heartCount": "0",
"videoCount": "0"
},
"user": {
"UserStoryStatus": 0,
"avatarLarger": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&refresh_token=f400aeac&x-expires=1791313200&x-signature=ZPzzcIwvLxQlVSgTgXlTcn%2BZ1g0%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast8",
"avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9640&refresh_token=2d28b08b&x-expires=1791313200&x-signature=85ZDs3Q7T8yW0SY5HijWifo2kng%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast8",
"avatarThumb": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&refresh_token=995b138d&x-expires=1791313200&x-signature=cZmYyeWAntDKMHAGynv3I9YIdbc%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast8",
"canExpPlaylist": true,
"commentSetting": 0,
"commerceUserInfo": {
"commerceUser": false
},
"createTime": 1724366110,
"downloadSetting": 0,
"duetSetting": 0,
"eventList": [],
"followingVisibility": 2,
"ftc": false,
"id": "7406095610422641710",
"isADVirtual": false,
"isEmbedBanned": false,
"isOrganization": 0,
"language": "en",
"nickNameModifyTime": 1789014478,
"nickname": "𝐉𝐀𝐐𝐔𝐄 𝐌𝐀𝐓𝐄🔥 ⃤⃟⃝ 🌹",
"nowInvitationCardUrl": "",
"openFavorite": false,
"privateAccount": false,
"profileEmbedPermission": 1,
"profileTab": {
"showMusicTab": false,
"showPlayListTab": false,
"showQuestionTab": false
},
"recommendReason": "",
"relation": 0,
"roomId": "",
"secUid": "MS4wLjABAAAAvVhoo3xoPqx2BhlxArecsPyqN86uGz1sm5Q4bwTwOZ1MUU1PgK6Zemi8PJtHpeh5",
"secret": false,
"shortDramaCreator": {},
"shortId": "",
"signature": "🌸",
"stitchSetting": 0,
"suggestAccountBind": false,
"ttSeller": false,
"uniqueId": "srlechuza2.0",
"uniqueIdModifyTime": 1789783298,
"verified": false
}
}
}
}
]探索更多
| API | 價格 | 回應 |
|---|---|---|
TikTok User Profile此 API TikTok | 每次呼叫 $0.001 | JSON |
TikTok | 每次呼叫 $0.001 | JSON |
TikTok | 每次呼叫 $0.001 | JSON |
TikTok | 每次呼叫 $0.001 | JSON |
TikTok | 每次呼叫 $0.001 | JSON |
TikTok | 每次呼叫 $0.05 | 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/web/user-profile。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.001。每個組織每個 UTC 日可免費呼叫 100 次,並可在包含此 API 在內的所有符合資格之 SandBase APIs 間共用;超過後,每次呼叫都會從您的 SandBase 餘額中以此價格計費。沒有訂閱方案。
不需要任何參數。 選填:secUid (string) 和 uniqueId (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。TikTok User Profile 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 TikTok API 存取權。