跳到主要内容

获取成员

GET/v1/members/{username}

返回成员的公开个人主页:名称、图片、个人简介、徽章、声望、各项计数,以及个人主页中哪些栏目是公开的。

请求

Shell
curl -g "https://api.nogitsu.com/v1/members/{username}"

参数

  • username

    路径必填

    成员的用户名。

    文本

响应

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

  • username文本
  • displayName文本
  • avatarUrl文本 (uri)可为 null
  • bio文本可为 null
  • coverUrl文本 (uri)可为 null
  • coverPositionY整数

    0 到 100

  • isEmailVerifiedtrue 或 false
  • badges文本 列表
    允许的值founderstaffcommunity_moderatorreviewer
  • postKarma整数

    -9007199254740991 到 9007199254740991

  • commentKarma整数

    -9007199254740991 到 9007199254740991

  • followerCount整数

    0 到 9007199254740991

  • followingCount整数

    0 到 9007199254740991

  • hasPublicFavoritestrue 或 false
  • hasPublicLibrarytrue 或 false
  • hasPublicCommunitiestrue 或 false
  • hasPublicActivitytrue 或 false
  • dailyStreak整数可为 null

    0 到 9007199254740991

  • pointTier文本可为 null
    允许的值ipponmitsubagoninkyuubi
  • cosmetics对象
    • avatarFrame文本可为 null
      允许的值foxfire_ringmoon_ringshrine_ropenine_tailsdusk_lineriver_linetorii_linefoxfirecrescentleafshrine_bellsakurasnowflake
    • profileBorder文本可为 null
      允许的值foxfire_ringmoon_ringshrine_ropenine_tailsdusk_lineriver_linetorii_linefoxfirecrescentleafshrine_bellsakurasnowflake
    • stickers文本 列表
      允许的值foxfire_ringmoon_ringshrine_ropenine_tailsdusk_lineriver_linetorii_linefoxfirecrescentleafshrine_bellsakurasnowflake
  • completedWorkCount整数可为 null

    0 到 9007199254740991

  • postCount整数

    0 到 9007199254740991

  • commentCount整数

    0 到 9007199254740991

  • reviewCount整数

    0 到 9007199254740991

  • acceptedContributionCount整数

    0 到 9007199254740991

  • communityCount整数可为 null

    0 到 9007199254740991

  • moderatedCommunityCount整数可为 null

    0 到 9007199254740991

  • joinedAt文本 (date-time)

错误

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

了解错误