Vai al contenuto
GET /v1/search

Search subjects by keyword

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/bangumi-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/bangumi-api/v1/search" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bangumi-api/v1/search", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bangumi-api/v1/search");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/bangumi-api/v1/search",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Bangumi subjects matching a keyword — each with its id (use it with /v1/subject), Japanese and Chinese names, medium (anime/book/music/game/real), date, community score (0-10) and overall rank. Pass q (required), optional type (one of: book, anime, music, game, real), sort (match/rank/score/heat, default match) and limit (1-30). Adult titles are excluded (the public API is SFW). Live, cached ~5m.",
        "sort": "rank",
        "type": "game",
        "count": 15,
        "query": "witcher",
        "total": 17,
        "source": "Bangumi public v0 API (api.bgm.tv/v0/search/subjects), keyless",
        "results": [
            {
                "id": 262219,
                "date": "2015-10-13",
                "name": "The Witcher 3: Wild Hunt - Hearts of Stone",
                "rank": null,
                "type": "game",
                "image": "https://lain.bgm.tv/r/400/pic/cover/l/aa/5d/262219_0NStN.jpg",
                "score": 8.5,
                "name_cn": "巫师3:狂猎-石之心"
            },
            {
                "id": 262220,
                "date": "2016-05-31",
                "name": "The Witcher 3: Wild Hunt – Blood and Wine",
                "rank": null,
                "type": "game",
                "image": "https://lain.bgm.tv/r/400/pic/cover/l/07/a5/262220_4zd56.jpg",
                "score": 8.6,
                "name_cn": "巫师3:狂猎-血与酒"
            },
            {
                "id": 288848,
                "date": "2014-11-27",
                "name": "The Witcher Adventure Game",
                "rank": null,
                "type": "game",
                "image": "https://lain.bgm.tv/r/400/pic/cover/l/96/f7/288848_JGrX6.jpg",
                "score": 0,
                "name_cn": "巫師之冒險遊戲"
            },
            {
                "id": 314036,
                "date": null,
                "name": "The Witcher: Monster Slayer",
                "rank": null,
                "type": "game",
                "image": "https://lain.bgm.tv/r/400/pic/cover/l/9b/bf/314036_zVGGV.jpg",
                "score": 0,
                "name_cn": "巫师:怪物杀手"
            },
            {
                "id": 375291,
                "date": null,
                "name": "The Witcher 4",
                "rank": null,
                "type": "game",
                "image": "https://lain.bgm.tv/r/400/pic/cover/l/4c/5e/375291_36994.jpg",
                "score": 0,
                "name_cn": "巫师4"
            },
            {
                "id": 406189,
                "date": null,
                "name": "The Witcher Remake",
                "rank": null,
                "type": "game",
                "image": "https://lain.bgm.tv/r/400/pic/cover/l/db/da/406189_Ts8FA.jpg",
                "score": 8,
                "name_cn": "巫师 重制版"
            },
            {
                "id": 655714,
                "date": null,
                "name": "The Witcher 3: Wild Hunt - Songs of the Past",
  
…