79dbcbd374a3

latestOpenAPI 3.0.32026-07-17201152369.9 KB
search

搜索条目

post/p1/search/subjects

Query parameters

limitinteger

max 100

offsetinteger

min 0

Request body

keywordstring required

搜索关键词

sort'match' | 'heat' | 'rank' | 'score'

条目搜索排序方式

  • match = 匹配程度
  • heat = 收藏人数
  • rank = 排名由高到低
  • score = 评分

Example request

{
  "filter": {
    "date": [
      ">=2020-07-01"
    ],
    "metaTags": [
      "童年"
    ],
    "rank": [
      ">10"
    ],
    "rating": [
      ">=6"
    ],
    "tags": [
      "童年"
    ]
  }
}

Response

Default Response

totalinteger required

limit+offset 为参数的请求表示总条数,page 为参数的请求表示总页数

Example response

{
  "data": [
    {
      "id": 8,
      "images": {
        "common": "https://lain.bgm.tv/pic/cover/c/c9/f0/8_wK0z3.jpg",
        "grid": "https://lain.bgm.tv/pic/cover/g/c9/f0/8_wK0z3.jpg",
        "large": "https://lain.bgm.tv/pic/cover/l/c9/f0/8_wK0z3.jpg",
        "medium": "https://lain.bgm.tv/pic/cover/m/c9/f0/8_wK0z3.jpg",
        "small": "https://lain.bgm.tv/pic/cover/s/c9/f0/8_wK0z3.jpg"
      },
      "locked": false,
      "metaTags": [],
      "name": "コードギアス 反逆のルルーシュR2",
      "nameCN": "Code Geass 反叛的鲁路修R2",
      "nsfw": false,
      "type": 2
    }
  ]
}