Bilibili Streaming Areas
https://api.sandbase.ai/v1/api/bilibili/web/all-live-areasReturns the complete list of streaming broadcast areas and categories on Bilibili. This endpoint provides category identifiers and partition structures without requiring any parameters.
- ราคา
- $0.001USD / คำขอ
- Method
- POST
- การตอบกลับ
- JSON
- พารามิเตอร์
- 0 จำเป็น · 0 ไม่บังคับ
Playground
[
{
"data": {
"code": 0,
"data": [
{
"id": 2,
"list": [
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "86",
"lock_status": "0",
"name": "英雄联盟",
"old_area_id": "4",
"parent_id": "2",
"parent_name": "网游",
"pic": "https://i0.hdslb.com/bfs/vc/0e808167886ad2299971ea49aade69b3663db9b9.png",
"pk_status": "1"
},
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "329",
"lock_status": "0",
"name": "无畏契约",
"old_area_id": "3",
"parent_id": "2",
"parent_name": "网游",
"pic": "https://i0.hdslb.com/bfs/vc/78d7a625ebcb88f0d1143cf4ba0426ebb7a4a853.png",
"pk_status": "1"
},
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "878",
"lock_status": "0",
"name": "三角洲行动",
"old_area_id": "3",
"parent_id": "2",
"parent_name": "网游",
"pic": "https://i0.hdslb.com/bfs/live/e121106ce8aefca6d38df4df6adbd77029c854e3.jpg",
"pk_status": "1"
},
"… 112 more items in the full response"
],
"name": "网游"
},
{
"id": 3,
"list": [
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "35",
"lock_status": "0",
"name": "王者荣耀",
"old_area_id": "12",
"parent_id": "3",
"parent_name": "手游",
"pic": "https://i0.hdslb.com/bfs/vc/0fefa924760b2dd492a12dddafe179bfa1216918.png",
"pk_status": "1"
},
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "1034",
"lock_status": "0",
"name": "王者万象棋",
"old_area_id": "12",
"parent_id": "3",
"parent_name": "手游",
"pic": "https://i0.hdslb.com/bfs/live/f7903e07e0f542bd7474ccffec544d60a0a398b7.png",
"pk_status": "1"
},
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "292",
"lock_status": "0",
"name": "火影忍者手游",
"old_area_id": "12",
"parent_id": "3",
"parent_name": "手游",
"pic": "https://i0.hdslb.com/bfs/vc/f2f30d97710a2f017efe8a0ad9a8b55aac82ca1f.png",
"pk_status": "1"
},
"… 192 more items in the full response"
],
"name": "手游"
},
{
"id": 6,
"list": [
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "236",
"lock_status": "0",
"name": "主机游戏",
"old_area_id": "1",
"parent_id": "6",
"parent_name": "单机游戏",
"pic": "https://i0.hdslb.com/bfs/vc/edb636ee59f902e3134a2790545045bddd70978e.png",
"pk_status": "1"
},
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "235",
"lock_status": "0",
"name": "其他单机",
"old_area_id": "1",
"parent_id": "6",
"parent_name": "单机游戏",
"pic": "https://i0.hdslb.com/bfs/vc/5baf148ef7da6c4b3943282a6e89daa794984067.png",
"pk_status": "1"
},
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "216",
"lock_status": "0",
"name": "我的世界",
"old_area_id": "1",
"parent_id": "6",
"parent_name": "单机游戏",
"pic": "https://i0.hdslb.com/bfs/vc/a5a2abb10cd6e06e41c9447ffb10fbd7bdf6b2d6.png",
"pk_status": "1"
},
"… 88 more items in the full response"
],
"name": "单机游戏"
},
"… 9 more items in the full response"
],
"message": "success",
"msg": "success"
}
}
]ตัวอย่าง
เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
API README
Bilibili Streaming Areas API
Returns the full list of live streaming parent categories on Bilibili, with the child areas inside each one. It needs no input. Send an empty JSON object as the request body.
Use cases
- Build a category filter or menu for a live streaming discovery tool.
- Map a child area
idto its Chinese area name when you process live stream data. - Store the parent and child area structure to group live rooms by game type.
- Check which areas are marked hot or locked before you show them in a list.
Request
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/all-live-areas" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": [
{
"id": 2,
"list": [
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "86",
"lock_status": "0",
"name": "英雄联盟",
"old_area_id": "4"
}
],
"name": "网游"
}
],
"message": "success",
"msg": "success"
}
Response fields
| Field | Meaning |
|---|---|
data[] | One parent category, such as online games, mobile games or single-player games. |
data[].id | Numeric ID of the parent category. |
data[].name | Name of the parent category, in Chinese. |
data[].list[] | The child areas that belong to this parent category. |
data[].list[].id | ID of the child area. It is returned as a string. |
data[].list[].name | Name of the child area, in Chinese. Examples are game titles or groups like other single-player games. |
data[].list[].old_area_id | ID of an older area that this child area maps to. It is returned as a string. |
data[].list[].hot_status / data[].list[].lock_status | Flags for the child area. In the sample, hot_status is 0 and lock_status is "0". |
data[].list[].act_id / data[].list[].area_type / data[].list[].complex_area_name | Extra area attributes. In the sample, act_id is "0", area_type is 0 and complex_area_name is empty. |
Notes
- This API takes no parameters. Send
{}as the body. - Parent
idvalues are numbers, while childidvalues are strings. - Child areas sit under
data[].list[], so loop over both levels to build a flat list of areas. - To look at a single live room, call Bilibili Live Room Details.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
ส่งคำขอแรกของคุณ
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/all-live-areas" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. การยืนยันตัวตน
ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
3. พารามิเตอร์
ยังไม่มีการเผยแพร่ schema ของพารามิเตอร์สำหรับ API นี้
4. การตอบกลับ
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"code": 0,
"data": [
{
"id": 2,
"list": [
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "86",
"lock_status": "0",
"name": "英雄联盟",
"old_area_id": "4",
"parent_id": "2",
"parent_name": "网游",
"pic": "https://i0.hdslb.com/bfs/vc/0e808167886ad2299971ea49aade69b3663db9b9.png",
"pk_status": "1"
},
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "329",
"lock_status": "0",
"name": "无畏契约",
"old_area_id": "3",
"parent_id": "2",
"parent_name": "网游",
"pic": "https://i0.hdslb.com/bfs/vc/78d7a625ebcb88f0d1143cf4ba0426ebb7a4a853.png",
"pk_status": "1"
},
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "878",
"lock_status": "0",
"name": "三角洲行动",
"old_area_id": "3",
"parent_id": "2",
"parent_name": "网游",
"pic": "https://i0.hdslb.com/bfs/live/e121106ce8aefca6d38df4df6adbd77029c854e3.jpg",
"pk_status": "1"
},
"… 112 more items in the full response"
],
"name": "网游"
},
{
"id": 3,
"list": [
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "35",
"lock_status": "0",
"name": "王者荣耀",
"old_area_id": "12",
"parent_id": "3",
"parent_name": "手游",
"pic": "https://i0.hdslb.com/bfs/vc/0fefa924760b2dd492a12dddafe179bfa1216918.png",
"pk_status": "1"
},
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "1034",
"lock_status": "0",
"name": "王者万象棋",
"old_area_id": "12",
"parent_id": "3",
"parent_name": "手游",
"pic": "https://i0.hdslb.com/bfs/live/f7903e07e0f542bd7474ccffec544d60a0a398b7.png",
"pk_status": "1"
},
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "292",
"lock_status": "0",
"name": "火影忍者手游",
"old_area_id": "12",
"parent_id": "3",
"parent_name": "手游",
"pic": "https://i0.hdslb.com/bfs/vc/f2f30d97710a2f017efe8a0ad9a8b55aac82ca1f.png",
"pk_status": "1"
},
"… 192 more items in the full response"
],
"name": "手游"
},
{
"id": 6,
"list": [
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "236",
"lock_status": "0",
"name": "主机游戏",
"old_area_id": "1",
"parent_id": "6",
"parent_name": "单机游戏",
"pic": "https://i0.hdslb.com/bfs/vc/edb636ee59f902e3134a2790545045bddd70978e.png",
"pk_status": "1"
},
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "235",
"lock_status": "0",
"name": "其他单机",
"old_area_id": "1",
"parent_id": "6",
"parent_name": "单机游戏",
"pic": "https://i0.hdslb.com/bfs/vc/5baf148ef7da6c4b3943282a6e89daa794984067.png",
"pk_status": "1"
},
{
"act_id": "0",
"area_type": 0,
"complex_area_name": "",
"hot_status": 0,
"id": "216",
"lock_status": "0",
"name": "我的世界",
"old_area_id": "1",
"parent_id": "6",
"parent_name": "单机游戏",
"pic": "https://i0.hdslb.com/bfs/vc/a5a2abb10cd6e06e41c9447ffb10fbd7bdf6b2d6.png",
"pk_status": "1"
},
"… 88 more items in the full response"
],
"name": "单机游戏"
},
"… 9 more items in the full response"
],
"message": "success",
"msg": "success"
}
}
]สำรวจเพิ่มเติม
APIs ที่เกี่ยวข้อง
| API | ราคา | การตอบกลับ |
|---|---|---|
Bilibili Streaming AreasAPI นี้ Bilibili | $0.001 ต่อการเรียก | JSON |
Bilibili | $0.001 ต่อการเรียก | JSON |
Bilibili | $0.001 ต่อการเรียก | JSON |
Bilibili | $0.001 ต่อการเรียก | JSON |
Bilibili | $0.001 ต่อการเรียก | JSON |
Bilibili | $0.001 ต่อการเรียก | JSON |
คำถาม
คำถามที่พบบ่อย
ฉันจะใช้ Bilibili Streaming Areas API ได้อย่างไร?
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/bilibili/web/all-live-areas โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
Bilibili Streaming Areas API ราคาเท่าไร?
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
Bilibili Streaming Areas API รับพารามิเตอร์อะไรบ้าง?
Bilibili Streaming Areas ไม่รับพารามิเตอร์อินพุต ส่ง JSON body ว่างเปล่า
Bilibili Streaming Areas API ส่งคืนอะไร?
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Bilibili ไหม?
ไม่จำเป็น Bilibili Streaming Areas ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Bilibili API แยกต่างหาก
