Bilibili User ID Extraction
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.
- Price
- $0.0015USD / callFirst 100 calls per day free (shared per organization)
- Method
- POST
- Response
- JSON
- Parameters
- 1 required · 0 optional
Try the model
Playground
[
{
"data": {
"user_id": "178360345"
}
}
]Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- $0.0015 / run
- Daily free calls
- First 100 calls per day free (shared per organization)
Request & response
- Method
- POST
- Request body
- application/json
- Response
- application/json
- Execution
- sync
Parameters
- share_link
- string · required
Access
- Provider
- Bilibili
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/bilibili/web/get-user-id
- Authentication
- Bearer API key
API README
Bilibili User ID Extraction API
Resolve a user's unique numeric identifier by providing their profile URL in share_link. This endpoint extracts account IDs directly from standard Bilibili space links.
Use cases
- Convert user profile share links into raw numeric Bilibili IDs.
- Resolve account identifiers for downstream Bilibili profile queries.
- Normalize user URLs collected from external web sources.
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"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
share_link | string | Yes | User share link |
Notes
- Requires a valid profile share link passed to
share_link.
Related APIs
- Bilibili Streaming Areas: Returns the complete list of streaming broadcast areas and categories on Bilibili.
- Bilibili BV to AID Converter: Converts a Bilibili BV identifier to its corresponding numeric AID value.
- Bilibili User Collection Folders: Returns the collection folders owned by a specific Bilibili user.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/bilibili/web/get-user-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"share_link": "https://static.sandbase.ai/examples/1d420101-6aa7-4cbd-a4d5-e04674de7ca9/input/1094426c-12a0-4ab7-aa39-e91b0f14d3c4.bin"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
Bilibili User ID ExtractionThis API Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Questions
FAQ
How do I use the Bilibili User ID Extraction API?
Send a POST request to https://api.sandbase.ai/v1/api/bilibili/web/get-user-id with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
How much does the Bilibili User ID Extraction API cost?
$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.
What parameters does the Bilibili User ID Extraction API accept?
Required: share_link (string). The Parameters table and the Playground on this page list every field.
What does the Bilibili User ID Extraction API return?
A JSON response returned in the same HTTP request (synchronous).
Do I need a Bilibili developer account or API key?
No. Bilibili User ID Extraction runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Bilibili API access separately.
