Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Bilibili User ID Extraction

Dokumentasi 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.

Harga
$0.001USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 0 opsional

Playground

Input
OutputContoh
Responsoutputs · 60 B · 7 baris
[
  {
    "data": {
      "user_id": "178360345"
    }
  }
]

Contoh

Pilih contoh untuk memuat input dan hasilnya ke playground.

README API

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Bilibili$0.001 per panggilanJSON
Bilibili$0.001 per panggilanJSON
Bilibili$0.001 per panggilanJSON
Bilibili$0.001 per panggilanJSON
Bilibili$0.001 per panggilanJSON
Bilibili$0.001 per panggilanJSON

Panduan:Best Bilibili API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Bilibili User ID Extraction?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/bilibili/web/get-user-id dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Bilibili User ID Extraction?

$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Bilibili User ID Extraction?

Wajib: share_link (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Bilibili User ID Extraction?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Bilibili?

Tidak. Bilibili User ID Extraction berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Bilibili secara terpisah.