跳到主要内容

获取作品的社区

GET/v1/works/{id}/community

返回作品在某种语言中的社区,以及该作品拥有社区的其他语言。

请求

Shell
curl "https://api.nogitsu.com/v1/works/01a0cb02-0a14-7877-911d-5b4dde76df72/community?language=en"

参数

  • id

    路径必填

    条目的 ID,为 UUID。

    文本

  • language

    查询必填

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

    文本

    允许的值entrdefresptitruidjakozh

响应

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

  • community对象可为 null
    • id文本 (uuid)
    • slug文本
    • language文本
    • kind文本
      允许的值workboarduser
    • name文本
    • iconUrl文本 (uri)可为 null
    • theme文本
      允许的值violetblueskycyanemeraldgreenyellowamberrosepink
    • isSampletrue 或 false
    • category文本
      允许的值animemangamanhwawebtoongenresfan_artgeneral
    • description文本可为 null
    • memberCount整数

      0 到 9007199254740991

    • postCount整数

      0 到 9007199254740991

    • isAdulttrue 或 false
    • bannerUrl文本 (uri)可为 null
    • hasCustomIcontrue 或 false
    • hasCustomBannertrue 或 false
    • createdAt文本 (date-time)
    • weeklyPostCount整数

      0 到 9007199254740991

    • work对象可为 null
      • id文本 (uuid)
      • slug文本
      • medium文本
        允许的值animedonghuaanimationmangamanhwamanhuawebtoon
      • publicationFormat文本
        允许的值tvtv_shortmovieovaonaspecialmusicserializedone_shotdoujinlight_novelweb_novel
      • releaseStatus文本
        允许的值not_yet_releasedreleasingfinishedhiatuscancelledunknown
      • title文本
      • nativeTitle文本可为 null
      • romanizedTitle文本可为 null
      • contentRating文本
        允许的值unknownall_agesteenmatureadult
      • startYear整数可为 null

        -9007199254740991 到 9007199254740991

      • cover对象可为 null
        • url文本 (uri)
        • width整数可为 null

          0 到 9007199254740991

        • height整数可为 null

          0 到 9007199254740991

        • blurhash文本可为 null
        • provider文本可为 null
          允许的值anime_offline_databaseanimapanilistmyanimelistanidbanime_news_networkanime_filler_listkitsuanime_planetanisearchtvdbimdbtmdbsimklmangaupdatesmangabakawikipedia
        • variantWidths整数 列表

          0 到 9007199254740991

      • contentWarnings文本 列表
        允许的值violencegoresexual-contentsuicide
    • rules对象 列表
      • id文本 (uuid)
      • title文本
      • description文本可为 null
    • flairs对象 列表
      • id文本 (uuid)
      • label文本
      • tone文本
        允许的值neutralaccentsuccesswarningdangervioletblueskycyanemeraldgreenyellowamberrosepink
      • postCount整数

        0 到 9007199254740991

    • moderators对象 列表
      • username文本
      • displayName文本
      • avatarUrl文本 (uri)可为 null
      • isFoundertrue 或 false
    • otherLanguages对象 列表
      • language文本
      • slug文本
      • memberCount整数

        -9007199254740991 到 9007199254740991

  • otherLanguages对象 列表
    • language文本
    • slug文本
    • memberCount整数

      -9007199254740991 到 9007199254740991

错误

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

了解错误