跳到主要内容

获取作品统计

GET/v1/works/{id}/stats

返回各列表状态下拥有该作品的成员数量、成员的评分情况以及收藏数和评测数。

请求

Shell
curl "https://api.nogitsu.com/v1/works/01a0cb02-0a14-7877-911d-5b4dde76df72/stats"

参数

  • id

    路径必填

    条目的 ID,为 UUID。

    文本

响应

请求成功时返回 200 和以下 JSON:

  • statuses对象 列表
    • status文本
      允许的值plannedcurrentcompletedpauseddroppedrewatching
    • count整数

      0 到 9007199254740991

  • memberCount整数

    0 到 9007199254740991

  • favoriteCount整数

    0 到 9007199254740991

  • rating对象
    • count整数

      0 到 9007199254740991

    • averageHalfPoints数字可为 null
    • buckets整数 列表

      0 到 9007199254740991

  • reviewCount整数

    0 到 9007199254740991

  • scoreRank整数可为 null

    0 到 9007199254740991

  • popularityRank整数可为 null

    0 到 9007199254740991

错误

与所有操作一样,此操作在参数无效时可能返回 400,找不到内容时返回 404,请求过多时返回 429。所有错误的结构都相同。

了解错误