countinteger
Number, default is 20, it is recommended to keep it unchanged.
ค่าเริ่มต้น: 20
https://api.sandbase.ai/v1/api/douyin/web/user-following-listReturns a list of accounts followed by a Douyin user. Filter by target user security ID and navigate paginated results using timestamps.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns the list of accounts that a Douyin user follows. It needs the target user's sec_user_id and returns one page of followed accounts with paging timestamps.
account_cert_info) appears among the accounts a user follows.curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-following-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
count | integer | No | Number, default is 20, it is recommended to keep it unchanged. |
max_time | string | No | Maximum timestamp, default is 0, get from the returned data later, used for paging. |
sec_user_id | string | No | User sec_user_id |
source_type | integer | No | Source type, default is 1, use 2 as the source type for the first request, and then use 1 as the source type for the subsequent request. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"extra": {
"fatal_item_ids": [],
"logid": "202611031532315C2777D33738AB243FBF",
"now": 1793691152000
},
"followings": [
{
"accept_private_policy": false,
"account_cert_info": null,
"account_region": "",
"account_type": null,
"activity": null,
"activity_label": null,
"ad_cover_title": null,
"ad_cover_url": null,
"ad_order_id": null,
"age_gate_action": null,
"age_gate_post_action": null,
"age_gate_time": null
}
],
"has_more": true,
"hotsoon_has_more": 0,
"hotsoon_text": "",
"log_pb": {
"impr_id": "202611031532315C2777D33738AB243FBF"
},
"max_time": 1793329603,
"min_time": 1788086525,
"mix_count": 436,
"myself_user_id": "1185696462159498",
"offset": 0,
"rec_has_more": false
}
| Field | Meaning |
|---|---|
followings[] | One followed account per item. Each item holds profile and avatar data for that account. |
followings[].aweme_count | Number of videos the followed account has posted. |
followings[].account_cert_info | JSON string with account certification flags. For example {"is_biz_account":1} marks a business account. It is null when no flags are set. |
followings[].avatar_thumb / avatar_168x168 / avatar_300x300 / avatar_medium / avatar_larger | Avatar images in different sizes. Each has a url_list with image URLs, plus uri, width and height. |
followings[].avatar_uri | Storage path of the avatar image for the followed account. |
followings[].aweme_control | Flags such as can_comment, can_forward and can_share that show what viewers may do with the account's videos. |
has_more | true when more followed accounts remain after this page. |
max_time / min_time | Timestamps that bound this page of results. Use max_time for the next page request. |
total | Total number of accounts the user follows. |
myself_user_id | Numeric user ID tied to the requested user. |
sec_user_id from a user's profile link. Use Douyin sec_user_id from URL to extract it.source_type as 2 on the first request. Use 1 on every later request.max_time to the max_time value from the previous response while has_more is true. The first request uses 0.count parameter defaults to 20.$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/web/user-following-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"count": 20,
"max_time": "0",
"sec_user_id": "MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70",
"source_type": 2
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
countintegerNumber, default is 20, it is recommended to keep it unchanged.
ค่าเริ่มต้น: 20
max_timestringMaximum timestamp, default is 0, get from the returned data later, used for paging.
ค่าเริ่มต้น: "0"
sec_user_idstringUser sec_user_id
ค่าเริ่มต้น: "MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70"
source_typeintegerSource type, default is `1`, use `2` as the source type for the first request, and then use `1` as the source type for the subsequent request.
ค่าเริ่มต้น: 1
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| 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 |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/web/user-following-list โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: count (integer), max_time (string), sec_user_id (string) และ source_type (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Douyin Web User Following List ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก