AniBTWiki
Open API

Bangumi search

GET /api/bgm/search — map a title to bgmId.

GET
/api/bgm/search

Query Parameters

q*string

中、英、日或罗马音关键词,也可传纯数字 Bangumi ID;去除首尾空白后 1–100 字符,禁止控制字符。

Length1 <= length <= 100
limit?integer

条数,默认 5,上限 25

Range1 <= value <= 25
Default5

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/bgm/search?q=string"
{  "ok": true,  "data": [    {      "bgmId": 543360,      "name": "上伊那ぼたん、酔へる姿は百合の花",      "nameCn": "上伊那牡丹,酒醉身姿似百合花般",      "date": null,      "image": "https://r2.anibt.net/anime_covers/nh73r0ernee7s0afv9s82f763983gcz7/cbbbd63dd8c9cff7da4b665651347ee5eae20c98567ea5572abbeccf40f8d87a/v4/w240.webp",      "rating": 7.1,      "totalEpisodes": 25,      "url": "https://bgm.tv/subject/543360",      "premiere": null,      "seasonYear": null,      "season": null    }  ]}