跳到主要内容

列出分集或章节

GET/v1/works/{id}/units

按顺序返回作品的话或卷,并附带标题、发布日期和填充标记。

请求

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

参数

  • id

    路径必填

    条目的 ID,为 UUID。

    文本

  • kind

    查询可选

    要列出的单元。

    文本

    允许的值episodechaptervolume
  • hideFiller

    查询可选

    设为 true 时排除填充话。

    文本

  • fromNumber

    查询可选

    从此话数开始列出。

    整数

    0 到 100000

  • cursor

    查询可选

    上一页的 nextCursor 值。读取第一页时省略。

    文本

  • limit

    查询可选

    每页返回的条目数。

    整数

    1 到 100默认值:50

响应

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

  • items对象 列表
    • id文本 (uuid)
    • kind文本
      允许的值episodechaptervolume
    • number数字
    • title文本可为 null
    • isTitleHiddentrue 或 false
    • classification文本
      允许的值canonfillerrecapmixedspecialunknown
    • releasedAt文本 (date-time)可为 null
    • releaseDate文本 (date)可为 null
    • releaseDatePrecision文本
      允许的值daymonthyearunknown
    • durationMinutes整数可为 null

      0 到 9007199254740991

    • watchLinks对象 列表
      • platform文本
      • url文本 (uri)
    • hasImagetrue 或 false
  • nextCursor文本可为 null
  • fillerCount整数

    0 到 9007199254740991

错误

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

了解错误