Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Bilibili User Relation Statistics

เอกสาร API
https://api.sandbase.ai/v1/api/bilibili/web/user-relation-stat

Returns relationship statistics, including following and follower counts, for a specified Bilibili account using their user ID.

ราคา
$0.001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 0 ไม่บังคับ
100 คำขอฟรี / วันคำขอ 100 ครั้งแรกต่อวันฟรี (ใช้ร่วมกันภายในองค์กร) · รีเซ็ตเวลา 00:00 UTC จากนั้นคิดค่าบริการตามจำนวนคำขอ

Playground

อินพุต
User UID
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 196 B · 13 บรรทัด
[
  {
    "data": {
      "black": 0,
      "fans_effect": null,
      "fans_medal_toast": null,
      "follower": 71,
      "following": 32,
      "mid": 178360345,
      "whisper": 0
    }
  }
]

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

API README

Bilibili User Relation Statistics API

Returns relationship counts for one Bilibili account, including how many accounts it follows and how many follow it. It needs the numeric user ID in uid.

Use cases

  • Record the follower count of a Bilibili creator each day to chart audience growth.
  • Show following and follower numbers on a creator card inside your own dashboard.
  • Compare follower to following across a list of accounts to sort them by audience size.
  • Confirm that a uid matches the mid you expect before you run further lookups on the account.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/user-relation-stat" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uid": "178360345"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
uidstringYesUser UID

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "black": 0,
  "fans_effect": null,
  "fans_medal_toast": null,
  "follower": 73,
  "following": 27,
  "mid": 178360345,
  "whisper": 0
}

Response fields

FieldMeaning
followerNumber of accounts that follow this user.
followingNumber of accounts this user follows.
midNumeric Bilibili user ID of the account. It matches the uid you sent.
blackBlacklist count for the account. The response shows 0 and gives no further detail.
whisperWhisper count for the account. The response shows 0 and gives no further detail.
fans_effect / fans_medal_toastFan-related display settings. Both are null in this response.

Notes

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Bilibili$0.001 ต่อการเรียกJSON
Bilibili$0.001 ต่อการเรียกJSON
Bilibili$0.001 ต่อการเรียกJSON
Bilibili$0.001 ต่อการเรียกJSON
Bilibili$0.001 ต่อการเรียกJSON
Bilibili$0.001 ต่อการเรียกJSON

คู่มือ:Best Bilibili API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Bilibili User Relation Statistics API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/bilibili/web/user-relation-stat โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Bilibili User Relation Statistics API ราคาเท่าไร?

$0.001 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน

Bilibili User Relation Statistics API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: uid (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Bilibili User Relation Statistics API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Bilibili ไหม?

ไม่จำเป็น Bilibili User Relation Statistics ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Bilibili API แยกต่างหาก