Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Bilibili User ID Extraction

API दस्तावेज़
https://api.sandbase.ai/v1/api/bilibili/web/get-user-id

Extracts and returns a Bilibili user ID from a provided space share link. Takes a user profile URL and resolves the numeric account identifier.

मूल्य
$0.001USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 0 वैकल्पिक

प्लेग्राउंड

इनपुट
आउटपुटउदाहरण
प्रतिक्रियाoutputs · 60 B · 7 पंक्तियाँ
[
  {
    "data": {
      "user_id": "178360345"
    }
  }
]

उदाहरण

प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।

API README

Bilibili User ID Extraction API

This API takes a Bilibili user space share link in share_link and returns the numeric user ID found in it. The response has one field, user_id, returned as a string.

Use cases

  • Turn a copied https://space.bilibili.com/... link into a numeric ID for storage or matching.
  • Clean a list of creator profile URLs collected from web pages into one ID column.
  • Get the user ID you need before calling Bilibili profile, video, or dynamic endpoints.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/get-user-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"share_link": "https://space.bilibili.com/178360345"}'

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

Parameters

NameTypeRequiredDescription
share_linkstringYesUser share link

Example response

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

{
  "user_id": "178360345"
}

Response fields

FieldMeaning
user_idThe numeric Bilibili account ID taken from the share link. For the example link https://space.bilibili.com/178360345, the value is "178360345".
user_idThe value is a JSON string, not a number. Keep it as text when you store it or pass it on.
user_idThis is the only field in the response. It matches the number at the end of the space link in share_link.

Notes

  • Pass a full space link such as https://space.bilibili.com/178360345 in share_link.
  • user_id is a string, so keep it as text if you pass it on to other calls.
  • Use the ID with Bilibili User Profile to get account details, or with Bilibili User Post Videos to list the user's videos.

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

प्रश्न

FAQ

Bilibili User ID Extraction API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/bilibili/web/get-user-id पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Bilibili User ID Extraction API की लागत कितनी है?

$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Bilibili User ID Extraction API कौन-से parameters स्वीकार करती है?

आवश्यक: share_link (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Bilibili User ID Extraction API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Bilibili developer account या API key चाहिए?

नहीं। Bilibili User ID Extraction SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Bilibili API access के लिए आवेदन करने की आवश्यकता नहीं है।