share_linkstringआवश्यक
User share link
https://api.sandbase.ai/v1/api/bilibili/web/get-user-idExtracts and returns a Bilibili user ID from a provided space share link. Takes a user profile URL and resolves the numeric account identifier.
[
{
"data": {
"user_id": "178360345"
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
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.
https://space.bilibili.com/... link into a numeric ID for storage or matching.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.
| Name | Type | Required | Description |
|---|---|---|---|
share_link | string | Yes | User share link |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"user_id": "178360345"
}
| Field | Meaning |
|---|---|
user_id | The numeric Bilibili account ID taken from the share link. For the example link https://space.bilibili.com/178360345, the value is "178360345". |
user_id | The value is a JSON string, not a number. Keep it as text when you store it or pass it on. |
user_id | This is the only field in the response. It matches the number at the end of the space link in share_link. |
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.$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/bilibili/web/get-user-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"share_link": "https://static.sandbase.ai/examples/1d420101-6aa7-4cbd-a4d5-e04674de7ca9/input/1094426c-12a0-4ab7-aa39-e91b0f14d3c4.bin"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
share_linkstringआवश्यकUser share link
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"user_id": "178360345"
}
}
]और जानें
| 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 |
प्रश्न
https://api.sandbase.ai/v1/api/bilibili/web/get-user-id पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: share_link (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Bilibili User ID Extraction SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Bilibili API access के लिए आवेदन करने की आवश्यकता नहीं है।