sec_uidstringจำเป็น
User sec_uid (required)
https://api.sandbase.ai/v1/api/douyin/douplus/user-postsReturns a concise list of homepage video posts for a specified Douyin user. Supports cursor-based pagination and custom result counts.
[
{
"data": {
"code": 0,
"data": {
"cursor": "0",
"hasMore": false,
"itemInfoList": []
},
"msg": "success"
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns a page of homepage video posts for one Douyin user, including description, publish time, engagement counts, cover and play URLs. It needs the user's sec_uid. You can set the page size with count and page forward with cursor.
Statistics counts such as likes and shares across a creator's posts for a performance report.DouplusUserPostTag label to see which videos the DOU+ tool flags.curl -X POST "https://api.sandbase.ai/v1/api/douyin/douplus/user-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
sec_uid | string | Yes | User sec_uid (required) |
count | string | No | Page size, default 10 |
cursor | string | No | Pagination cursor (string), "0" for first page, then pass the cursor from the previous response |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"cursor": "1790585915000",
"hasMore": true,
"itemInfoList": [
{
"AwemeInfo": {
"Author": {
"AvatarMedium": {
"Uri": "720x720/aweme-avatar/tos-cn-avt-0015_9186d2f6f96963551bd89aaa2c745843",
"UrlList": [
"https://p26.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-avt-0015_9186d2f6f96…"
]
},
"AvatarThumb": {},
"FollowerCount": 0,
"LabelList": [],
"Nickname": "栗子味",
"SecUid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_",
"ShortId": "",
"Signature": ""
},
"AwemeId": "7701639863695617457",
"CreateTime": "1793177767000",
"Desc": "伊人妆 秋眉晃 宛在水中央",
"IsPhoto": false,
"Statistics": {
"AwemeId": "",
"CommentCount": 32,
"DiggCount": 2283,
"ShareCount": 41
},
"Video": {
"Cover": {
"Height": 0,
"Uri": "tos-cn-p-0015c000-ce/ocjh9b0CqIecA6EjuC4FGfiEQTDDraAoHwfTKk",
"UrlKey": "",
"UrlList": [
"http://p6-douplus-sign.byteimg.com/tos-cn-p-0015c000-ce/ocjh9b0CqIecA6EjuC4FGfiE…"
],
"Width": 0
},
"CreateTime": "1793177767",
"ImageURL": {},
"IsPhoto": false,
"ItemID": "7701639863695617457",
"ItemOptions": {},
"PlayAddr": {
"Height": 576,
"Uri": "v1e00fgi0000dbgrh1vog65hqsh78ht0",
"UrlKey": "",
"UrlList": [
"https://v13-cold.douyinvod.com/d6e2d6ff40f7293164b039c01c0d8daa/6ae99c0c/video/t…"
],
"Width": 1024
},
"Statistics": {
"CommentCnt": "0",
"FinishPlayRate": 0,
"IndexCnt": "0",
"LikeCnt": "0",
"LikeRate": 0,
"NewFansCnt": "0",
"NewFansRate": 0,
"NewLikeCnt": "0"
}
}
},
"CanMountEnterpriseShopCartType": 2,
"DouplusUserPostTag": "爆款预定",
"IsAd": false,
"IsItemPromotional": false,
"IsOver90Days": false,
"ItemSource": {
"ItemGeneraion": 0,
"SourceType": 1
},
"PlayletType": 0
}
]
},
"msg": "success"
}
| Field | Meaning |
|---|---|
data.itemInfoList[].AwemeInfo.AwemeId | ID of the video post, as a string. |
data.itemInfoList[].AwemeInfo.Desc | Caption text of the video. |
data.itemInfoList[].AwemeInfo.CreateTime | Publish time of the post as a string. The value looks like a Unix timestamp in milliseconds. |
data.itemInfoList[].AwemeInfo.Statistics.DiggCount / CommentCount / ShareCount | Like, comment and share counts for the post. |
data.itemInfoList[].AwemeInfo.Author.Nickname / SecUid | Display name and sec_uid of the post author. |
data.itemInfoList[].AwemeInfo.Video.PlayAddr.UrlList | List of video file URLs. Width and Height in the same object give the video size. |
data.itemInfoList[].AwemeInfo.Video.Cover.UrlList | List of cover image URLs for the video. |
data.itemInfoList[].DouplusUserPostTag | Tag text attached to a post, such as 爆款预定. It appears only on some posts. |
data.itemInfoList[].IsAd / IsItemPromotional / IsOver90Days | Boolean flags for whether the post is an ad, is promotional, or is over 90 days old. |
data.cursor / data.hasMore | cursor is the value to send for the next page. hasMore tells you whether more posts remain. |
cursor as "0" for the first page. For later pages, pass the data.cursor value from the previous response.data.hasMore is true.count sets the page size and defaults to 10.x-expires value, so download them soon after the call.$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/douplus/user-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sec_uid": "example"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
sec_uidstringจำเป็นUser sec_uid (required)
countanyPage size, default 10
cursoranyPagination cursor (string), "0" for first page, then pass the cursor from the previous response
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"code": 0,
"data": {
"cursor": "0",
"hasMore": false,
"itemInfoList": []
},
"msg": "success"
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Douyin Douplus User PostsAPI นี้ 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/douplus/user-posts โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: sec_uid (string). ตัวเลือก: count (any) และ cursor (any). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Douyin Douplus User Posts ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก