sec_user_idstringจำเป็น
User sec_user_id
https://api.sandbase.ai/v1/api/douyin/app-v3/user-like-videosReturns a list of videos liked by a specific Douyin user. Supports cursor-based pagination and custom item counts per page.
[
{
"data": {
"aweme_list": null,
"extra": {
"fatal_item_ids": [],
"logid": "2026100620413283A3061FEC023751A465",
"now": 1791290492000
},
"log_pb": {
"impr_id": "2026100620413283A3061FEC023751A465"
},
"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_",
"status_code": 0,
"uid": "3635433641882579"
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns the videos a Douyin user has liked, as a paged list. It needs the user's sec_user_id. You can set the page size with counts and page forward with max_cursor.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/user-like-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sec_user_id": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
sec_user_id | string | Yes | User sec_user_id |
counts | integer | No | Number per page |
max_cursor | integer | No | Maximum cursor, used for paging, the first page is 0, the second page is the max_cursor value in the first response. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"aweme_list": null,
"extra": {
"fatal_item_ids": [],
"logid": "20261103153140EA2A63AD2C803311DE9E",
"now": 1793691100000
},
"log_pb": {
"impr_id": "20261103153140EA2A63AD2C803311DE9E"
},
"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_",
"status_code": 0,
"uid": "3635433641882579"
}
| Field | Meaning |
|---|---|
aweme_list | List of liked videos. It is null in this response, which means no videos came back for this user and request. |
status_code | Result code of the call. 0 in this response. |
sec_uid | The sec_user_id of the user whose likes were requested, echoed back. |
uid | Numeric user ID of the same user. |
extra.now | Server time of the response as a number. The value looks like a millisecond timestamp. |
extra.logid / log_pb.impr_id | Request identifiers. Both hold the same value in this response. |
extra.fatal_item_ids | List of item IDs that failed to load. It is empty in this response. |
sec_user_id from a Douyin user profile, for example with Douyin User Profile (App V3).max_cursor as 0. For the next page, send the max_cursor value from the previous response.aweme_list can be null when no videos are returned, so check for null before reading it.$0.001 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/app-v3/user-like-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sec_user_id": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
sec_user_idstringจำเป็นUser sec_user_id
countsintegerNumber per page
max_cursorintegerMaximum cursor, used for paging, the first page is 0, the second page is the max_cursor value in the first response.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"aweme_list": null,
"extra": {
"fatal_item_ids": [],
"logid": "2026100620413283A3061FEC023751A465",
"now": 1791290492000
},
"log_pb": {
"impr_id": "2026100620413283A3061FEC023751A465"
},
"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_",
"status_code": 0,
"uid": "3635433641882579"
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Douyin | $0.001 ต่อการเรียก | 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/app-v3/user-like-videos โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: sec_user_id (string). ตัวเลือก: counts (integer) และ max_cursor (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Douyin User Liked Videos (App V3) ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก