uidstringจำเป็น
Weibo User ID (UID).
https://api.sandbase.ai/v1/api/weibo/followersGet a page of accounts followed by a Weibo user identified by UID. Use it to examine the account's outgoing follow network or continue through its following list.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns one page of the accounts that a Weibo user follows. It needs the user's numeric uid and takes an optional page number.
followers_count and description for each followed account to find large or relevant accounts.follow_me and bi_followers_count.curl -X POST "https://api.sandbase.ai/v1/api/weibo/followers" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "2803301701"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | Weibo User ID (UID). |
page | integer | No | Page number, starting with 1. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"fill_material": 0,
"has_filtered_attentions": false,
"has_filtered_fans": false,
"next_cursor": 20,
"ok": 1,
"previous_cursor": 0,
"screenName": "人民日报",
"show_related_topic": false,
"show_unread": false,
"sort_type": 0,
"total_number": 419,
"type": 0
}
| Field | Meaning |
|---|---|
screenName | Display name of the user whose following list you requested. |
total_number | Total number of accounts in the following list. The sample shows 419. |
next_cursor / previous_cursor | Position markers for the next and previous page. The sample shows 20 for next_cursor and 0 for previous_cursor. |
users[] | The followed accounts on this page. Each item is one account profile. |
users[].created_at | Date and time the followed account was created, as text such as Wed Jan 23 12:51:13 +0800 2013. |
users[].description | Bio text of the followed account. It can be an empty string. |
users[].followers_count / users[].followers_count_str | Number of followers of the followed account. The _str field is the shortened display text, for example 519万. |
users[].friends_count | Number of accounts the followed account itself follows. |
users[].bi_followers_count | Count of mutual follow relationships for the followed account. |
users[].domain / users[].gender | Custom URL domain name and gender code of the followed account. These fields are missing or empty on some accounts. |
users[].avatar_hd / users[].avatar_large / users[].cover_image | Image URLs for the avatar and the profile cover. The avatar URLs carry an Expires parameter. |
page starting at 1 to move through the list. Check next_cursor and total_number to see how much is left.gender and cover_image, are not present on every account. Handle missing keys.$0.014286 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/weibo/followers" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "2803301701",
"page": 1
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
uidstringจำเป็นWeibo User ID (UID).
pageintegerPage number, starting with 1.
ค่าเริ่มต้น: 1
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Weibo User FollowersAPI นี้ Weibo | $0.014286 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/weibo/followers โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.014286 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: uid (string). ตัวเลือก: page (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Weibo User Followers ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Weibo API แยกต่างหาก