sec_user_idstringआवश्यक
User sec_user_id
https://api.sandbase.ai/v1/api/douyin/web/user-post-videosReturns video data posted on a Douyin user homepage. Query by user identifier with support for pagination and sorting by popularity or default order.
[
{
"data": {
"aweme_list": [],
"extra": {
"fatal_item_ids": [],
"logid": "2026082017432800BE607421F2232B7ADE",
"now": 1787219008000
},
"has_more": 0,
"log_pb": {
"impr_id": "2026082017432800BE607421F2232B7ADE"
},
"max_cursor": 0,
"min_cursor": 0,
"sec_uid": "example",
"status_code": 5,
"status_msg": "参数不合法",
"uid": "0"
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
Returns the videos posted on a Douyin user's homepage, one page at a time. It needs the user's sec_user_id and returns a list of video objects under aweme_list.
aweme_id values between runs.filter_type set to 3 to benchmark their best content.cha_list entries.curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-post-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sec_user_id": "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
sec_user_id | string | Yes | User sec_user_id |
count | integer | No | Maximum count number, it is recommended not to exceed 20 |
filter_type | string | No | Filter type, optional parameters are as follows: 0: Default sorting; 3: Sort by popularity |
max_cursor | string | No | Paging cursor, pass 0 for the first request, and then pass the max_cursor returned by the previous request for paging each time. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"aweme_list": [
{
"activity_video_type": 0,
"admire_auth": {
"admire_button": 1,
"author_can_admire": 0,
"exit_admire_in_aweme_post": 0,
"is_admire": 0,
"is_click_admire_icon_recently": 0,
"is_fifty_admire_author_stable_fans": 0,
"is_iron_fans_in_aweme_post": 0,
"is_show_admire_button": 0
},
"anchors": null,
"authentication_token": "MS4wLjAA…",
"author": {
"authority_status": 0,
"avatar_168x168": {
"height": 720,
"uri": "168x168/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce420b7468b0b",
"url_list": [
"https://p3.douyinpic.com/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce420b7…"
],
"width": 720
},
"avatar_300x300": {
"height": 720,
"uri": "300x300/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce420b7468b0b",
"url_list": [
"https://p3.douyinpic.com/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce420b7…"
],
"width": 720
},
"avatar_larger": {
"height": 720,
"uri": "1080x1080/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce420b7468b0b",
"url_list": [
"https://p11.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_d8306450a…"
],
"width": 720
},
"avatar_medium": {
"height": 720,
"uri": "720x720/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce420b7468b0b",
"url_list": [
"https://p3.douyinpic.com/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce420b7…"
],
"width": 720
},
"avatar_thumb": {
"height": 720,
"uri": "100x100/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce420b7468b0b",
"url_list": [
"https://p3.douyinpic.com/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce420b7…"
],
"width": 720
},
"comment_filter_status": 0,
"comment_setting": 0
},
"author_mask_tag": 0,
"author_user_id": 92163827336,
"aweme_control": {
"can_comment": true,
"can_forward": true,
"can_share": true,
"can_show_comment": true
},
"aweme_id": "7153549929326120227",
"aweme_listen_struct": {
"trace_info": "{\"copyright_not_speech\":\"false\",\"copyright_reason\":\"has_listen_cp_new\",\"copyrigh…"
},
"aweme_type": 68,
"aweme_type_tags": ""
}
],
"extra": {
"fatal_item_ids": [],
"logid": "2026110315323555B8D57E31D446120EF6",
"now": 1793691155000
},
"has_more": 1,
"log_pb": {
"impr_id": "2026110315323555B8D57E31D446120EF6"
},
"max_cursor": 1767690864000,
"min_cursor": 1792314963000,
"not_login_module": {
"extra": "{\"guide_login_tip_create_time\":1793526612,\"guide_login_tip_desc\":\"\",\"guide_login…",
"guide_login_tip_cover_url": {
"height": 720,
"uri": "tos-cn-i-0813c000-ce/ok7sEnVNTDAxCYAOAwFwE9qADAfw9CI5IgfmnE",
"url_list": [
"https://p26-sign.douyinpic.com/tos-cn-i-0813c000-ce/ok7sEnVNTDAxCYAOAwFwE9qADAfw…"
],
"width": 720
},
"guide_login_tip_exist": true,
"guide_login_tip_style": 1
},
"post_serial": 2,
"replace_series_cover": 1,
"request_item_cursor": 0,
"sec_uid": "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE",
"status_code": 0
}
| Field | Meaning |
|---|---|
aweme_list[].aweme_id | ID of the video. Use it to look up the single video in other Douyin APIs. |
aweme_list[].desc | Caption text of the video, including hashtags such as #le. |
aweme_list[].create_time | Time the video was posted. The value looks like a Unix timestamp in seconds, for example 1665565640. |
aweme_list[].author_user_id | Numeric ID of the user who posted the video. |
aweme_list[].author.avatar_thumb.url_list / aweme_list[].author.avatar_larger.url_list | Image URLs for the author's avatar in different sizes. Each list holds several URLs for the same image. |
aweme_list[].cha_list[].cha_name | Name of a hashtag (challenge) attached to the video. |
aweme_list[].cha_list[].cid | ID of the hashtag. |
aweme_list[].city | City code attached to the video, for example 440100. |
aweme_list[].aweme_control.can_comment / aweme_list[].aweme_control.can_share | Flags that show whether comments and sharing are allowed on the video. |
aweme_list[].desc_language | Language code detected for the caption. un appears when the language is not identified. |
sec_user_id from a user homepage link with Douyin sec_user_id from URL.max_cursor as 0. For the next pages, send the max_cursor value returned by the previous response.filter_type to 0 for default order or 3 to sort by popularity. Keep count at 20 or below.aweme_id to Douyin Single Video Details (V1) to get full details for one video.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-post-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"count": 20,
"max_cursor": "0",
"filter_type": "0",
"sec_user_id": "example"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
sec_user_idstringआवश्यकUser sec_user_id
countintegerMaximum count number, it is recommended not to exceed 20
filter_typestringFilter type, optional parameters are as follows: 0: Default sorting; 3: Sort by popularity
max_cursorstringPaging cursor, pass 0 for the first request, and then pass the max_cursor returned by the previous request for paging each time.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"aweme_list": [],
"extra": {
"fatal_item_ids": [],
"logid": "2026082017432800BE607421F2232B7ADE",
"now": 1787219008000
},
"has_more": 0,
"log_pb": {
"impr_id": "2026082017432800BE607421F2232B7ADE"
},
"max_cursor": 0,
"min_cursor": 0,
"sec_uid": "example",
"status_code": 5,
"status_msg": "参数不合法",
"uid": "0"
}
}
]और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Douyin User Video Postsयह 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 |
प्रश्न
https://api.sandbase.ai/v1/api/douyin/web/user-post-videos पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call। हर organization को प्रति UTC day 100 निःशुल्क calls मिलती हैं, जो इस सहित योग्य SandBase APIs के बीच साझा होती हैं; उसके बाद हर call का बिल आपकी SandBase balance से इस कीमत पर लिया जाता है। कोई subscription नहीं है।
आवश्यक: sec_user_id (string)। वैकल्पिक: count (integer), filter_type (string) और max_cursor (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Douyin User Video Posts SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।