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

Douyin Live search V2

เอกสาร API
https://api.sandbase.ai/v1/api/douyin/search/live-search-v2

Fetch live search V2 on Douyin. Returns the platform data as structured JSON.

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

Playground

อินพุต
Douyin ID or nickname
Pagination cursor, 0 for the first request, then the cursor from the last response
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

Douyin Live search V2 API

Searches Douyin for accounts that match a Douyin ID or nickname. Returns a page of matching users with follower counts, profile IDs and live room status. It needs a keyword and an optional cursor.

Use cases

  • Find a creator's Douyin account from a nickname and read their follower count.
  • Resolve a Douyin ID to the secUid that other Douyin user APIs need.
  • Check whether a matching account is live right now before you pull live room data.
  • Build a list of accounts with similar names by paging through results.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/live-search-v2" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "小耳朵", "cursor": 0}'

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

Parameters

NameTypeRequiredDescription
cursorintegerNoPagination cursor, 0 for the first request, then the cursor from the last response
keywordstringNoDouyin ID or nickname

Example response

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

{
  "code": 0,
  "data": {
    "cursor": 10,
    "hasMore": true,
    "userList": [
      {
        "avatar": "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_69061032f579…",
        "followerCount": 5205393,
        "followerCountStr": "",
        "liveRoomInfo": {
          "LiveRoomInfoDetail": {
            "AnchorNickname": "一只小耳朵",
            "LiveRoomCoverUri": "aweme-avatar/tos-cn-avt-0015_69061032f579b15d5d2d7e067d1c3471",
            "RoomId": "0",
            "Title": ""
          },
          "LiveRoomInfoExtra": {
            "HasBisinessComponent": false,
            "HasClosedShoppingCart": false,
            "HasWindmill": false,
            "IsForO2ORoom": false
          },
          "LiveRoomLiveStatus": 0
        },
        "nickname": "一只小耳朵",
        "secUid": "MS4wLjABAAAAkOvK-iD0N7wlM8V4Q9otZfPAJp6GKYPgPWlZOzobwR8",
        "shortId": "4768507",
        "uniqueId": "xed1216"
      }
    ]
  },
  "msg": "success"
}

Response fields

FieldMeaning
data.userList[]One matching Douyin account per item.
data.userList[].nicknameDisplay name of the account.
data.userList[].uniqueId / shortIdPublic Douyin ID values for the account. uniqueId is the custom ID, and shortId is a numeric short ID.
data.userList[].secUidEncoded user ID string. Use it to look up the same user in other Douyin user APIs.
data.userList[].followerCountNumber of followers as an integer. followerCountStr was an empty string in this response.
data.userList[].avatarURL of the account's avatar image.
data.userList[].liveRoomInfo.LiveRoomLiveStatusLive status code for the account. All users in this response returned 0, and their RoomId was "0".
data.userList[].liveRoomInfo.LiveRoomInfoDetail.AnchorNickname / TitleNickname of the live anchor and the live room title. Title is empty when no live room is active.
data.cursorCursor value to send as cursor in the next request to get the next page.
data.hasMoreShows true when more results are available.

Notes

  • Send cursor as 0 for the first request. For the next page, send the data.cursor value from the last response, and stop when data.hasMore is false.
  • keyword accepts a Douyin ID or a nickname.
  • To look up a full profile, pass the returned secUid to Douyin User Profile (App V3).
  • To list an account's videos, use Douyin User Videos with the secUid.

Pricing

$0.01 per successful call. Failed calls are not charged.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Douyin$0.01 ต่อการเรียกJSON
Douyin$0.01 ต่อการเรียกJSON
Douyin$0.01 ต่อการเรียกJSON
Douyin$0.01 ต่อการเรียกJSON
Douyin$0.01 ต่อการเรียกJSON
Douyin$0.01 ต่อการเรียกJSON

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

คำถาม

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

ฉันจะใช้ Douyin Live search V2 API ได้อย่างไร?

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

Douyin Live search V2 API ราคาเท่าไร?

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

Douyin Live search V2 API รับพารามิเตอร์อะไรบ้าง?

ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: keyword (string) และ cursor (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Douyin Live search V2 API ส่งคืนอะไร?

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

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

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