跳到主要内容

获取评论串

GET/v1/threads/{subjectType}/{subjectId}

返回作品、角色、人物、公司或评测下某种语言的评论串。

请求

Shell
curl -g "https://api.nogitsu.com/v1/threads/{subjectType}/{subjectId}?language=en"

参数

  • subjectType

    路径必填

    评论串所属的对象:work、character、person、organization 或 review。

    文本

  • subjectId

    路径必填

    作品、角色、人物、公司、评测、帖子或评论的 ID。

    文本

  • language

    查询必填

    要读取的社区的语言;每种语言都有各自的社区。

    文本

    允许的值entrdefresptitruidjakozh

响应

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

  • thread对象可为 null
    • postId文本 (uuid)
    • communityId文本 (uuid)
    • commentCount整数

      0 到 9007199254740991

    • isLockedtrue 或 false
  • otherLanguages对象 列表
    • language文本
    • commentCount整数

      0 到 9007199254740991

  • totalUnits整数可为 null

    0 到 9007199254740991

  • units对象 列表
    • unitNumber数字

      至少 0

    • commentCount整数

      0 到 9007199254740991

  • source对象可为 null
    • kind文本
      允许的值mangamanhwamanhuawebtoonnovelother
    • totalUnits整数可为 null

      0 到 9007199254740991

错误

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

了解错误