Bilibili API endpoint
Returns one issue of Bilibili's weekly selected-video series: `number` (1 to 1000000) picks the issue, and omitting it returns the latest. The issue has `subject`, `label`, `description` and `reminder`, and each video has `bvid`, `title`, `uploader`, `duration_seconds`, `recommendation` and `stats_text`. An unknown issue number returns 404.
/bilibili/weeklyReturns one issue from Bilibili's weekly selected-video archive. Pass a historical issue number, or omit it to resolve and return the latest issue.
number (optional): Positive issue number from 1 to 1000000. When omitted, the endpoint resolves the latest available issue before fetching its videos.duration_seconds is derived from the displayed video duration.stats_text preserves Bilibili's localized approximate view and date text without inventing exact counts or timestamps.404. Invalid values return 400.| Field | Filled in, of 8 checked | Values in the sample |
|---|---|---|
| bvid | 8 | “BV14b411J7ML” and 7 other values |
| aid | 8 | 45,031,807 to 47,306,249, median 46,900,196 |
| title | 8 | “这集vlog我们拍了十年,致最美好的青春” and 7 other values |
| url | 8 | bilibili.com |
| cover | 8 | i0.hdslb.com and 2 other hosts |
| duration_seconds | 8 | 29 to 9,492, median 504 |
| uploader | 8 | |
| stats_text | 8 | “542.5万观看 · 2019年3月21日” and 7 other values |
| recommendation | 2 | “暴风流泪推荐!今天也是为别人的神仙爱情流泪的一天!” and 1 other value |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| number | integer | No | Positive issue number; omit for the latest issue Minimum: 1. Maximum: 1000000. | 387 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/bilibili/weekly" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"number": 387,
"subject": "裴令史的妖异诸事",
"label": "第387期(0821更新)",
"description": "每周精选视频主题",
"reminder": "每周五晚18:00 更新",
"count": 1,
"videos": [
{
"bvid": "BV1rHbY6MEB9",
"aid": "117109229094045",
"title": "Selected Bilibili video",
"url": "https://www.bilibili.com/video/BV1rHbY6MEB9",
"cover": "https://i0.hdslb.com/bfs/archive/example.jpg",
"duration_seconds": 1574,
"uploader": {
"id": "3546887391021116",
"name": "Bilibili creator"
},
"stats_text": "1510.9万观看 · 8月17日",
"recommendation": "情节跌宕,立意高远。"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/bilibili.weeklyResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | bilibili.WeeklyResponse | No | ||||
| data.count | integer | No | 49 | |||
| data.cover | string | No | https://i0.hdslb.com/bfs/archive/example.jpg | |||
| data.description | string | No | 每周精选视频主题 | |||
| data.label | string | No | 第387期(0821更新) | |||
| data.number | integer | No | 387 | |||
| data.reminder | string | No | 每周五晚18:00 更新 | |||
| data.subject | string | No | 裴令史的妖异诸事 | |||
| data.videos | array | No | ||||
| data.videos[].aid | string | No | 117109229094045 | |||
| data.videos[].bvid | string | No | BV1rHbY6MEB9 | |||
| data.videos[].cover | string | No | https://i0.hdslb.com/bfs/archive/example.jpg | |||
| data.videos[].duration_seconds | integer | No | 1574 | |||
| data.videos[].recommendation | string | No | 情节跌宕,立意高远。 | |||
| data.videos[].stats_text | string | No | 1510.9万观看 · 8月17日 | |||
| data.videos[].title | string | No | Selected Bilibili video | |||
| data.videos[].uploader | bilibili.WeeklyUploader | No | ||||
| data.videos[].uploader.id | string | No | 3546887391021116 | |||
| data.videos[].uploader.name | string | No | Bilibili creator | |||
| data.videos[].url | string | No | https://www.bilibili.com/video/BV1rHbY6MEB9 | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/bilibili/weekly" \
-H "x-api-key: $CRAWLORA_API_KEY"