Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Douyin User Profile by Short ID

เอกสาร API
https://api.sandbase.ai/v1/api/douyin/web/user-profile-by-short-id

Retrieves Douyin web user profile details using an account short ID. Returns profile metadata, title information, and engagement counters.

ราคา
$0.001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
User Short ID
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 1.2 KB · 38 บรรทัด
[
  {
    "data": {
      "data": {
        "auth_cert_info": "",
        "data": [],
        "enter_mode": 0,
        "enter_room_id": "",
        "qrcode_url": "",
        "room_status": 2,
        "shark_decision_conf": "",
        "similar_rooms": [],
        "user": {
          "avatar_thumb": {
            "url_list": [
              "https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=3067671334",
              "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=3067671334",
              "https://p26.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=3067671334"
            ]
          },
          "follow_info": {
            "follow_status": 0,
            "follow_status_str": "0"
          },
          "foreign_user": 0,
          "id_str": "3781946367821918",
          "nickname": "wanggggchen",
          "open_id_str": "",
          "sec_uid": "MS4wLjABAAAA9VpPOwQ4lckVN3BVC3KzqITqf_2ohUtDxeFQQFgbLy2BwOsROlX_ba2EVd_NUAIy"
        }
      },
      "extra": {
        "now": 1787219000195
      },
      "status_code": 0
    }
  }
]

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

API README

Douyin User Profile by Short ID API

This API takes a Douyin account short ID and returns the live room data linked to that account, along with a short user block. The response includes the room title, room status, and the account's nickname and sec_uid.

Use cases

  • Resolve a Douyin short ID to the account's sec_uid so you can call other user endpoints.
  • Check the nickname and avatar images of an account from its short ID.
  • Read the current live room ID and title for an account.
  • Check whether a live room is active by reading room_status and the room status value.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-profile-by-short-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"short_id": "2941976066"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
short_idstringYesUser Short ID

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "auth_cert_info": "",
    "data": [
      {
        "AnchorABMap": {},
        "admin_user_ids": [],
        "admin_user_ids_str": [],
        "admin_user_open_ids": [],
        "admin_user_open_ids_str": [],
        "fansclub_msg_style": 0,
        "follow_msg_style": 0,
        "gift_msg_style": 0,
        "has_commerce_goods": false,
        "id_str": "7561789775678769966",
        "like_count": 0,
        "linker_map": {}
      }
    ],
    "enter_mode": 0,
    "enter_room_id": "7561789775678769966",
    "partition_road_map": {},
    "qrcode_url": "",
    "room_status": 2,
    "shark_decision_conf": "",
    "similar_rooms": [],
    "user": {
      "avatar_thumb": {
        "url_list": [
          "https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_3beaaeb52d3…"
        ]
      },
      "follow_info": {
        "follow_status": 0,
        "follow_status_str": "0"
      },
      "foreign_user": 0,
      "id_str": "92769419069",
      "nickname": "抖音作者助手",
      "open_id_str": "",
      "sec_uid": "MS4wLjABAAAA-hAqMwU4p1xu2AlQSM4R38D7DhTKGOk6d-zYU_o0LxY"
    }
  },
  "extra": {
    "now": 1793691154702
  },
  "status_code": 0
}

Response fields

FieldMeaning
data.user.nicknameDisplay name of the account.
data.user.sec_uidEncrypted user ID of the account. Other Douyin user endpoints accept this kind of ID.
data.user.id_strNumeric user ID of the account, returned as a string.
data.user.avatar_thumb.url_list[]Image URLs for the account's 100x100 avatar. Each entry points to a different image host.
data.user.follow_info.follow_statusFollow state between the request context and the account. It is 0 in this response.
data.enter_room_idID of the live room linked to the account.
data.room_statusNumeric status of the live room. It is 2 in this response.
data.data[].titleTitle of the live room.
data.data[].id_strID of the live room, returned as a string. It matches data.enter_room_id here.
data.data[].like_count / data.data[].user_count_strLike count and viewer count for the live room. Both are 0 in this response.

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ราคาการตอบกลับ
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.03 ต่อการเรียกJSON

คู่มือ:Best Douyin API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Douyin User Profile by Short ID API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/web/user-profile-by-short-id โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Douyin User Profile by Short ID API ราคาเท่าไร?

$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Douyin User Profile by Short ID API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: short_id (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Douyin User Profile by Short ID API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Douyin ไหม?

ไม่จำเป็น Douyin User Profile by Short ID ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก