secUidstringจำเป็น
The unique user ID (sec_uid) on Douyin.
https://api.sandbase.ai/v1/api/douyin/user-detailGet a Douyin (TikTok China) user profile by secUid. Use it to review a known creator or account before monitoring related content or conducting account research.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
This API returns the public profile of a Douyin (TikTok China) user. It needs one input, the user's secUid. The response includes the account's avatar images, cover images, video count and shop window entry.
secUid still returns a valid user.curl -X POST "https://api.sandbase.ai/v1/api/douyin/user-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"secUid": "MS4wLjABAAAAanuWoPEMHem_eaWR8RQFyLQ8_QiouZlPlb7KAe9GS24"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
secUid | string | Yes | The unique user ID (sec_uid) on Douyin. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"extra": {
"fatal_item_ids": null,
"logid": "2026110315322248F17F939EC10D294C67",
"now": 1793691142000,
"search_request_id": null
},
"log_pb": {
"impr_id": "2026110315322248F17F939EC10D294C67"
},
"status_code": 0,
"status_msg": null,
"user": {
"account_cert_info": "{}",
"apple_account": 0,
"avatar_168x168": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p11.douyinpic.com/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8a…"
],
"width": 720
},
"avatar_300x300": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p11.douyinpic.com/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8a…"
],
"width": 720
},
"avatar_is_digged": false,
"avatar_larger": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p11.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_1fcfb510b…"
],
"width": 720
},
"avatar_medium": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p11.douyinpic.com/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8a…"
],
"width": 720
},
"avatar_thumb": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p11.douyinpic.com/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8a…"
],
"width": 720
},
"aweme_count": 2655,
"aweme_count_correction_threshold": -1,
"birthday": "",
"birthday_hide_level": 0
}
}
| Field | Meaning |
|---|---|
status_code | Result code of the request. The sample response returns 0. |
user.aweme_count | Number of videos on the account. The sample shows 2655. |
user.avatar_larger.url_list[] / user.avatar_medium.url_list[] / user.avatar_thumb.url_list[] | Avatar image URLs in different sizes. Each list holds several URLs for the same image. |
user.cover_url[].url_list[] | Profile cover image URLs. These links carry x-expires and x-signature parameters in the query string. |
user.cover_and_head_image_info.profile_cover_list[].cover_url.url_list[] | Profile cover image URLs with dark and light cover colors in dark_cover_color and light_cover_color. |
user.card_entries[].title / user.card_entries[].sub_title | Label of a card on the profile. The sample shows a shop window card (商品橱窗) with the subtitle 57件好物. |
user.card_entries[].goto_url | App deep link for the card. It contains the numeric uid and the sec_uid of the account. |
user.commerce_user_info.has_ads_entry | Shows whether the account has an ads entry. The sample returns true. |
user.follow_status / user.favorite_permission | Flags for the relationship to the viewer and for the favorites setting. The sample returns 0 and 1. |
secUid as the only required parameter. It is a string that starts with MS4w.x-expires value, so store the image itself if you need it later.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/douyin/user-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"secUid": "MS4wLjABAAAAanuWoPEMHem_eaWR8RQFyLQ8_QiouZlPlb7KAe9GS24"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
secUidstringจำเป็นThe unique user ID (sec_uid) on Douyin.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Douyin User ProfileAPI นี้ Douyin | $0.014286 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/user-detail โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.014286 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: secUid (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Douyin User Profile ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก