---
title: "Zhihu Answer Comments API (V1)"
description: "Retrieve comments for a Zhihu answer with hottest or latest sorting and offset pagination. Use it to review discussion around a known answer and continue through additional comment pages."
aiUsagePrompt: true
---

# Zhihu Answer Comments API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/zhihu/get-answer-comments/v1\"")'
  :summary='JSON.parse("\"Answer Comments (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/zhihu/answer-comments-v1-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"TOKEN\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"answerId\",\"in\":\"query\",\"description\":\"Answer ID\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"orderBy\",\"in\":\"query\",\"description\":\"Sorting order for comments.\\n\\nAvailable Values:\\n- `score`: Sort by highest score.\\n- `ts`: Sort by latest time.\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"score\",\"description\":\"Zhihu comment sorting order.\",\"enum\":[\"score\",\"ts\"]}},{\"name\":\"offset\",\"in\":\"query\",\"description\":\"Pagination offset from the previous result.\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"Comments, reply previews, and pagination for a Zhihu answer.\",\"properties\":{\"data\":{\"type\":\"array\",\"description\":\"Top-level comments returned on the current page.\",\"items\":{\"type\":\"object\",\"description\":\"One top-level comment on the answer.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Zhihu identifier of the comment.\"},\"type\":{\"type\":\"string\",\"description\":\"Content type code reported for the comment record.\"},\"resource_type\":{\"type\":\"string\",\"description\":\"Type of the resource associated with the comment.\"},\"member_id\":{\"type\":\"integer\",\"description\":\"Numeric member identifier associated with this comment.\"},\"url\":{\"type\":\"string\",\"description\":\"Link returned by Zhihu for the comment.\"},\"content\":{\"type\":\"string\",\"description\":\"Text content of the comment. It can include HTML markup.\"},\"score\":{\"type\":\"integer\",\"description\":\"Score field reported by Zhihu for the comment.\"},\"comment_type\":{\"type\":\"integer\",\"description\":\"Comment type code reported by Zhihu.\"},\"created_time\":{\"type\":\"integer\",\"description\":\"Comment creation time as a Unix timestamp in seconds.\"},\"reply_comment_id\":{\"type\":\"string\",\"description\":\"ID of the comment directly being replied to, when applicable.\"},\"reply_root_comment_id\":{\"type\":\"string\",\"description\":\"ID of the top-level comment for this reply, when applicable.\"},\"like_count\":{\"type\":\"integer\",\"description\":\"Number of likes reported for the comment.\"},\"dislike_count\":{\"type\":\"integer\",\"description\":\"Number of dislikes reported for the comment.\"},\"hot\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks the comment as hot.\"},\"top\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks the comment as pinned.\"},\"is_author\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks the commenter as the answer author.\"},\"is_author_top\":{\"type\":\"boolean\",\"description\":\"Whether the comment is marked as pinned by the answer author.\"},\"is_delete\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks the comment as deleted.\"},\"collapsed\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks the comment as collapsed.\"},\"reviewing\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks the comment as under review.\"},\"is_annotation\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu reports an annotation marker for this comment.\"},\"level_tag\":{\"type\":\"integer\",\"description\":\"Level tag code reported for the comment, when provided.\"},\"content_tag\":{\"type\":\"array\",\"description\":\"Tags associated with the comment content, when provided.\"},\"author_tag\":{\"type\":\"array\",\"description\":\"Public author labels shown with the comment.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed label.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Type code reported for the label.\"},\"text\":{\"type\":\"string\",\"description\":\"Display text of the label.\"}}}},\"comment_tag\":{\"type\":\"array\",\"description\":\"Public labels shown with the comment.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed label.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Type code reported for the label.\"},\"text\":{\"type\":\"string\",\"description\":\"Display text of the label.\"}}}},\"author\":{\"type\":\"object\",\"description\":\"Public profile of the Zhihu comment author.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"String identifier of this Zhihu account.\"},\"url_token\":{\"type\":\"string\",\"description\":\"Public profile slug used in Zhihu profile links.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name of the account.\"},\"avatar_url\":{\"type\":\"string\",\"description\":\"Avatar URL for this Zhihu account.\"},\"avatar_url_template\":{\"type\":\"string\",\"description\":\"Avatar URL template returned for this account.\"},\"url\":{\"type\":\"string\",\"description\":\"Profile link reported for the account.\"},\"type\":{\"type\":\"string\",\"description\":\"Account type reported by Zhihu.\"},\"user_type\":{\"type\":\"string\",\"description\":\"Additional user-type code reported for the account.\"},\"headline\":{\"type\":\"string\",\"description\":\"Public headline shown on the account profile.\"},\"is_org\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks this account as an organization.\"},\"is_anonymous\":{\"type\":\"boolean\",\"description\":\"Whether the account profile is marked as anonymous.\"},\"badge_v2\":{\"type\":\"object\",\"description\":\"Badge information shown for this Zhihu account.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Title displayed for the account&#39;s badges.\"},\"icon\":{\"type\":\"string\",\"description\":\"Badge display icon URL, when supplied.\"},\"night_icon\":{\"type\":\"string\",\"description\":\"Badge display icon URL for dark mode, when supplied.\"},\"merged_badges\":{\"type\":[\"array\",\"null\"],\"description\":\"Combined badge entries for display, or null when unavailable.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed account badge.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Badge type reported by Zhihu.\"},\"detail_type\":{\"type\":\"string\",\"description\":\"Badge detail type reported by Zhihu.\"},\"title\":{\"type\":\"string\",\"description\":\"Display title of the badge.\"},\"description\":{\"type\":\"string\",\"description\":\"Display description of the badge.\"},\"url\":{\"type\":\"string\",\"description\":\"Details link reported for the badge.\"},\"icon\":{\"type\":\"string\",\"description\":\"Badge icon URL for the default display mode.\"},\"night_icon\":{\"type\":\"string\",\"description\":\"Badge icon URL for dark mode.\"}}}},\"detail_badges\":{\"type\":[\"array\",\"null\"],\"description\":\"Detailed badge entries, or null when unavailable.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed account badge.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Badge type reported by Zhihu.\"},\"detail_type\":{\"type\":\"string\",\"description\":\"Badge detail type reported by Zhihu.\"},\"title\":{\"type\":\"string\",\"description\":\"Display title of the badge.\"},\"description\":{\"type\":\"string\",\"description\":\"Display description of the badge.\"},\"url\":{\"type\":\"string\",\"description\":\"Details link reported for the badge.\"},\"icon\":{\"type\":\"string\",\"description\":\"Badge icon URL for the default display mode.\"},\"night_icon\":{\"type\":\"string\",\"description\":\"Badge icon URL for dark mode.\"}}}}}},\"exposed_medal\":{\"type\":\"object\",\"description\":\"Medal information shown on the account profile.\",\"properties\":{\"medal_id\":{\"type\":\"string\",\"description\":\"Identifier of the displayed medal.\"},\"medal_name\":{\"type\":\"string\",\"description\":\"Display name of the medal.\"},\"avatar_url\":{\"type\":\"string\",\"description\":\"Medal image URL shown with the account avatar.\"},\"mini_avatar_url\":{\"type\":\"string\",\"description\":\"Small medal image URL, when supplied.\"},\"description\":{\"type\":\"string\",\"description\":\"Description displayed for the medal.\"},\"medal_avatar_frame\":{\"type\":\"string\",\"description\":\"Avatar-frame value returned for the displayed medal.\"}}},\"kvip_info\":{\"type\":\"object\",\"description\":\"Membership information displayed on the profile.\",\"properties\":{\"is_vip\":{\"type\":\"boolean\",\"description\":\"Whether the displayed account profile is marked as a VIP member.\"}}}}},\"child_comment_count\":{\"type\":\"integer\",\"description\":\"Reported reply count for this top-level comment.\"},\"child_comment_next_offset\":{\"type\":[\"string\",\"null\"],\"description\":\"Continuation offset reported for the reply preview. It can be null when unavailable.\"},\"child_comments\":{\"type\":\"array\",\"description\":\"Replies included as a preview for this top-level comment. The number of returned entries can be smaller than child_comment_count.\",\"items\":{\"type\":\"object\",\"description\":\"One reply returned in the preview.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Zhihu identifier of the comment.\"},\"type\":{\"type\":\"string\",\"description\":\"Content type code reported for the comment record.\"},\"resource_type\":{\"type\":\"string\",\"description\":\"Type of the resource associated with the comment.\"},\"member_id\":{\"type\":\"integer\",\"description\":\"Numeric member identifier associated with this comment.\"},\"url\":{\"type\":\"string\",\"description\":\"Link returned by Zhihu for the comment.\"},\"content\":{\"type\":\"string\",\"description\":\"Text content of the comment. It can include HTML markup.\"},\"score\":{\"type\":\"integer\",\"description\":\"Score field reported by Zhihu for the comment.\"},\"comment_type\":{\"type\":\"integer\",\"description\":\"Comment type code reported by Zhihu.\"},\"created_time\":{\"type\":\"integer\",\"description\":\"Comment creation time as a Unix timestamp in seconds.\"},\"reply_comment_id\":{\"type\":\"string\",\"description\":\"ID of the comment directly being replied to, when applicable.\"},\"reply_root_comment_id\":{\"type\":\"string\",\"description\":\"ID of the top-level comment for this reply, when applicable.\"},\"like_count\":{\"type\":\"integer\",\"description\":\"Number of likes reported for the comment.\"},\"dislike_count\":{\"type\":\"integer\",\"description\":\"Number of dislikes reported for the comment.\"},\"hot\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks the comment as hot.\"},\"top\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks the comment as pinned.\"},\"is_author\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks the commenter as the answer author.\"},\"is_author_top\":{\"type\":\"boolean\",\"description\":\"Whether the comment is marked as pinned by the answer author.\"},\"is_delete\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks the comment as deleted.\"},\"collapsed\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks the comment as collapsed.\"},\"reviewing\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks the comment as under review.\"},\"is_annotation\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu reports an annotation marker for this comment.\"},\"level_tag\":{\"type\":\"integer\",\"description\":\"Level tag code reported for the comment, when provided.\"},\"content_tag\":{\"type\":\"array\",\"description\":\"Tags associated with the comment content, when provided.\"},\"author_tag\":{\"type\":\"array\",\"description\":\"Public author labels shown with the comment.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed label.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Type code reported for the label.\"},\"text\":{\"type\":\"string\",\"description\":\"Display text of the label.\"}}}},\"comment_tag\":{\"type\":\"array\",\"description\":\"Public labels shown with the comment.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed label.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Type code reported for the label.\"},\"text\":{\"type\":\"string\",\"description\":\"Display text of the label.\"}}}},\"author\":{\"type\":\"object\",\"description\":\"Public profile of the Zhihu comment author.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"String identifier of this Zhihu account.\"},\"url_token\":{\"type\":\"string\",\"description\":\"Public profile slug used in Zhihu profile links.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name of the account.\"},\"avatar_url\":{\"type\":\"string\",\"description\":\"Avatar URL for this Zhihu account.\"},\"avatar_url_template\":{\"type\":\"string\",\"description\":\"Avatar URL template returned for this account.\"},\"url\":{\"type\":\"string\",\"description\":\"Profile link reported for the account.\"},\"type\":{\"type\":\"string\",\"description\":\"Account type reported by Zhihu.\"},\"user_type\":{\"type\":\"string\",\"description\":\"Additional user-type code reported for the account.\"},\"headline\":{\"type\":\"string\",\"description\":\"Public headline shown on the account profile.\"},\"is_org\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks this account as an organization.\"},\"is_anonymous\":{\"type\":\"boolean\",\"description\":\"Whether the account profile is marked as anonymous.\"},\"badge_v2\":{\"type\":\"object\",\"description\":\"Badge information shown for this Zhihu account.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Title displayed for the account&#39;s badges.\"},\"icon\":{\"type\":\"string\",\"description\":\"Badge display icon URL, when supplied.\"},\"night_icon\":{\"type\":\"string\",\"description\":\"Badge display icon URL for dark mode, when supplied.\"},\"merged_badges\":{\"type\":[\"array\",\"null\"],\"description\":\"Combined badge entries for display, or null when unavailable.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed account badge.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Badge type reported by Zhihu.\"},\"detail_type\":{\"type\":\"string\",\"description\":\"Badge detail type reported by Zhihu.\"},\"title\":{\"type\":\"string\",\"description\":\"Display title of the badge.\"},\"description\":{\"type\":\"string\",\"description\":\"Display description of the badge.\"},\"url\":{\"type\":\"string\",\"description\":\"Details link reported for the badge.\"},\"icon\":{\"type\":\"string\",\"description\":\"Badge icon URL for the default display mode.\"},\"night_icon\":{\"type\":\"string\",\"description\":\"Badge icon URL for dark mode.\"}}}},\"detail_badges\":{\"type\":[\"array\",\"null\"],\"description\":\"Detailed badge entries, or null when unavailable.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed account badge.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Badge type reported by Zhihu.\"},\"detail_type\":{\"type\":\"string\",\"description\":\"Badge detail type reported by Zhihu.\"},\"title\":{\"type\":\"string\",\"description\":\"Display title of the badge.\"},\"description\":{\"type\":\"string\",\"description\":\"Display description of the badge.\"},\"url\":{\"type\":\"string\",\"description\":\"Details link reported for the badge.\"},\"icon\":{\"type\":\"string\",\"description\":\"Badge icon URL for the default display mode.\"},\"night_icon\":{\"type\":\"string\",\"description\":\"Badge icon URL for dark mode.\"}}}}}},\"exposed_medal\":{\"type\":\"object\",\"description\":\"Medal information shown on the account profile.\",\"properties\":{\"medal_id\":{\"type\":\"string\",\"description\":\"Identifier of the displayed medal.\"},\"medal_name\":{\"type\":\"string\",\"description\":\"Display name of the medal.\"},\"avatar_url\":{\"type\":\"string\",\"description\":\"Medal image URL shown with the account avatar.\"},\"mini_avatar_url\":{\"type\":\"string\",\"description\":\"Small medal image URL, when supplied.\"},\"description\":{\"type\":\"string\",\"description\":\"Description displayed for the medal.\"},\"medal_avatar_frame\":{\"type\":\"string\",\"description\":\"Avatar-frame value returned for the displayed medal.\"}}},\"kvip_info\":{\"type\":\"object\",\"description\":\"Membership information displayed on the profile.\",\"properties\":{\"is_vip\":{\"type\":\"boolean\",\"description\":\"Whether the displayed account profile is marked as a VIP member.\"}}}}},\"reply_to_author\":{\"type\":\"object\",\"description\":\"Public profile of the account being replied to, when included.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"String identifier of this Zhihu account.\"},\"url_token\":{\"type\":\"string\",\"description\":\"Public profile slug used in Zhihu profile links.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name of the account.\"},\"avatar_url\":{\"type\":\"string\",\"description\":\"Avatar URL for this Zhihu account.\"},\"avatar_url_template\":{\"type\":\"string\",\"description\":\"Avatar URL template returned for this account.\"},\"url\":{\"type\":\"string\",\"description\":\"Profile link reported for the account.\"},\"type\":{\"type\":\"string\",\"description\":\"Account type reported by Zhihu.\"},\"user_type\":{\"type\":\"string\",\"description\":\"Additional user-type code reported for the account.\"},\"headline\":{\"type\":\"string\",\"description\":\"Public headline shown on the account profile.\"},\"is_org\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks this account as an organization.\"},\"is_anonymous\":{\"type\":\"boolean\",\"description\":\"Whether the account profile is marked as anonymous.\"}}},\"child_comment_count\":{\"type\":\"integer\",\"description\":\"Reported child-comment count for this reply.\"}}}}}}},\"paging\":{\"type\":\"object\",\"description\":\"Pagination information for the top-level comments.\",\"properties\":{\"is_start\":{\"type\":\"boolean\",\"description\":\"Whether this is the first page of comments.\"},\"is_end\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks this as the final page of comments. Stop paginating when true.\"},\"next\":{\"type\":\"string\",\"description\":\"Next-page URL. When is_end is false, read offset from this URL and send it with the same answerId and orderBy.\"},\"previous\":{\"type\":\"string\",\"description\":\"Previous-page URL reported by Zhihu.\"},\"totals\":{\"type\":\"integer\",\"description\":\"Total comment count reported in the pagination information.\"}}},\"counts\":{\"type\":\"object\",\"description\":\"Comment counts reported for the answer.\",\"properties\":{\"total_counts\":{\"type\":\"integer\",\"description\":\"Total number of comments reported for the answer.\"},\"collapsed_counts\":{\"type\":\"integer\",\"description\":\"Number of comments reported as collapsed.\"},\"reviewing_counts\":{\"type\":\"integer\",\"description\":\"Number of comments reported as under review.\"},\"segment_comment_counts\":{\"type\":\"integer\",\"description\":\"Number of segment comments reported for the answer.\"}}},\"comment_status\":{\"type\":\"object\",\"description\":\"Comment status reported for the answer.\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"Comment status code reported by Zhihu.\"},\"text\":{\"type\":\"string\",\"description\":\"Display text for the comment status.\"},\"induce_text\":{\"type\":\"string\",\"description\":\"Comment prompt text, when populated.\"}}},\"sorter\":{\"type\":\"array\",\"description\":\"Sort options shown for the comment list.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed sorting option.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Code reported for this sorting option.\"},\"text\":{\"type\":\"string\",\"description\":\"Display label for this sorting option.\"}}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Invalid request parameters or body\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Invalid or inactive access token\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Permission denied\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Request rate or daily quota limit exceeded\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Internal server error\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Service temporarily unavailable\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"Global production API (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/zhihu/get-answer-comments/v1\"")' />

<p>Retrieve comments for a Zhihu answer with hottest or latest sorting and offset pagination. Use it to review discussion around a known answer and continue through additional comment pages.</p>

## Parameters

<div class="api-doc-table api-doc-table--params">

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Yes | - | TOKEN |
| <code>answerId</code> | query | <code>string</code> | Yes | - | Answer ID |
| <code>orderBy</code> | query | <code>string</code> | No | <code>score</code> | Sorting order for comments.<br /><br><br>Available Values:<br /><br>- <code>score</code>: Sort by highest score.<br /><br>- <code>ts</code>: Sort by latest time. |
| <code>offset</code> | query | <code>string</code> | No | <code></code> | Pagination offset from the previous result. |

</div>

## Code Samples

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/zhihu/get-answer-comments/v1?token=YOUR_API_KEY&answerId=VALUE'
```

```text [🤖 AI Prompt]
I want to use the "Answer Comments (V1)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/zhihu/get-answer-comments/v1?token=YOUR_API_KEY&answerId=VALUE
API Endpoint: BASE_URL + /api/zhihu/get-answer-comments/v1?token=YOUR_API_KEY&answerId=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/zhihu/answer-comments-v1-en.json

Parameters:
- token (query): TOKEN (Required)
- answerId (query): Answer ID (Required)
- orderBy (query): Sorting order for comments.

Available Values:
- `score`: Sort by highest score.
- `ts`: Sort by latest time.
- offset (query): Pagination offset from the previous result.

Return format: safely handle JSON or text according to the actual Content-Type.

Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
   - 0: Success
   - 100: Invalid or Inactive Token
   - 301: Collection Failed. Please Retry.
   - 302: Rate Limit Exceeded
   - 303: Daily Quota Exceeded
   - 400: Invalid Parameters
   - 500: Internal Server Error
   - 600: Permission Denied
   - 601: Insufficient Balance
   - 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.

Please help me write a script in my preferred programming language to call this API and handle the response.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Provided by OpenAPI servers

url = BASE_URL + "/api/zhihu/get-answer-comments/v1?token=YOUR_API_KEY&answerId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/zhihu/get-answer-comments/v1?token=YOUR_API_KEY&answerId=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
        final String url = BASE_URL + "/api/zhihu/get-answer-comments/v1?token=YOUR_API_KEY&answerId=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // Provided by OpenAPI servers

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/zhihu/get-answer-comments/v1?token=YOUR_API_KEY&answerId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/zhihu/get-answer-comments/v1?token=YOUR_API_KEY&answerId=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/zhihu/answer-comments-v1-en.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI Definition (JSON)]</a>
</div>

## Response Fields

Key fields in a successful response (`code = 0`).

<div class="api-doc-table api-doc-table--response">

| Field path | Type | Description |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | Comments, reply previews, and pagination for a Zhihu answer. |
| <code>data.data</code> | <code>array</code> | Top-level comments returned on the current page. |
| <code>data.data[]</code> | <code>object</code> | One top-level comment on the answer. |
| <code>data.data[].id</code> | <code>string</code> | Zhihu identifier of the comment. |
| <code>data.data[].type</code> | <code>string</code> | Content type code reported for the comment record. |
| <code>data.data[].resource_type</code> | <code>string</code> | Type of the resource associated with the comment. |
| <code>data.data[].member_id</code> | <code>integer</code> | Numeric member identifier associated with this comment. |
| <code>data.data[].url</code> | <code>string</code> | Link returned by Zhihu for the comment. |
| <code>data.data[].content</code> | <code>string</code> | Text content of the comment. It can include HTML markup. |
| <code>data.data[].score</code> | <code>integer</code> | Score field reported by Zhihu for the comment. |
| <code>data.data[].comment_type</code> | <code>integer</code> | Comment type code reported by Zhihu. |
| <code>data.data[].created_time</code> | <code>integer</code> | Comment creation time as a Unix timestamp in seconds. |
| <code>data.data[].reply_comment_id</code> | <code>string</code> | ID of the comment directly being replied to, when applicable. |
| <code>data.data[].reply_root_comment_id</code> | <code>string</code> | ID of the top-level comment for this reply, when applicable. |
| <code>data.data[].like_count</code> | <code>integer</code> | Number of likes reported for the comment. |
| <code>data.data[].dislike_count</code> | <code>integer</code> | Number of dislikes reported for the comment. |
| <code>data.data[].hot</code> | <code>boolean</code> | Whether Zhihu marks the comment as hot. |
| <code>data.data[].top</code> | <code>boolean</code> | Whether Zhihu marks the comment as pinned. |
| <code>data.data[].is_author</code> | <code>boolean</code> | Whether Zhihu marks the commenter as the answer author. |
| <code>data.data[].is_author_top</code> | <code>boolean</code> | Whether the comment is marked as pinned by the answer author. |
| <code>data.data[].is_delete</code> | <code>boolean</code> | Whether Zhihu marks the comment as deleted. |
| <code>data.data[].collapsed</code> | <code>boolean</code> | Whether Zhihu marks the comment as collapsed. |
| <code>data.data[].reviewing</code> | <code>boolean</code> | Whether Zhihu marks the comment as under review. |
| <code>data.data[].is_annotation</code> | <code>boolean</code> | Whether Zhihu reports an annotation marker for this comment. |
| <code>data.data[].level_tag</code> | <code>integer</code> | Level tag code reported for the comment, when provided. |
| <code>data.data[].content_tag</code> | <code>array</code> | Tags associated with the comment content, when provided. |
| <code>data.data[].author_tag</code> | <code>array</code> | Public author labels shown with the comment. |
| <code>data.data[].author_tag[]</code> | <code>object</code> | One displayed label. |
| <code>data.data[].author_tag[].type</code> | <code>string</code> | Type code reported for the label. |
| <code>data.data[].author_tag[].text</code> | <code>string</code> | Display text of the label. |
| <code>data.data[].comment_tag</code> | <code>array</code> | Public labels shown with the comment. |
| <code>data.data[].comment_tag[]</code> | <code>object</code> | One displayed label. |
| <code>data.data[].comment_tag[].type</code> | <code>string</code> | Type code reported for the label. |
| <code>data.data[].comment_tag[].text</code> | <code>string</code> | Display text of the label. |
| <code>data.data[].author</code> | <code>object</code> | Public profile of the Zhihu comment author. |
| <code>data.data[].author.id</code> | <code>string</code> | String identifier of this Zhihu account. |
| <code>data.data[].author.url_token</code> | <code>string</code> | Public profile slug used in Zhihu profile links. |
| <code>data.data[].author.name</code> | <code>string</code> | Display name of the account. |
| <code>data.data[].author.avatar_url</code> | <code>string</code> | Avatar URL for this Zhihu account. |
| <code>data.data[].author.avatar_url_template</code> | <code>string</code> | Avatar URL template returned for this account. |
| <code>data.data[].author.url</code> | <code>string</code> | Profile link reported for the account. |
| <code>data.data[].author.type</code> | <code>string</code> | Account type reported by Zhihu. |
| <code>data.data[].author.user_type</code> | <code>string</code> | Additional user-type code reported for the account. |
| <code>data.data[].author.headline</code> | <code>string</code> | Public headline shown on the account profile. |
| <code>data.data[].author.is_org</code> | <code>boolean</code> | Whether Zhihu marks this account as an organization. |
| <code>data.data[].author.is_anonymous</code> | <code>boolean</code> | Whether the account profile is marked as anonymous. |
| <code>data.data[].author.badge_v2</code> | <code>object</code> | Badge information shown for this Zhihu account. |
| <code>data.data[].author.badge_v2.title</code> | <code>string</code> | Title displayed for the account's badges. |
| <code>data.data[].author.badge_v2.icon</code> | <code>string</code> | Badge display icon URL, when supplied. |
| <code>data.data[].author.badge_v2.night_icon</code> | <code>string</code> | Badge display icon URL for dark mode, when supplied. |
| <code>data.data[].author.badge_v2.merged_badges</code> | <code>array &#124; null</code> | Combined badge entries for display, or null when unavailable. |
| <code>data.data[].author.badge_v2.merged_badges[]</code> | <code>object</code> | One displayed account badge. |
| <code>data.data[].author.badge_v2.merged_badges[].type</code> | <code>string</code> | Badge type reported by Zhihu. |
| <code>data.data[].author.badge_v2.merged_badges[].detail_type</code> | <code>string</code> | Badge detail type reported by Zhihu. |
| <code>data.data[].author.badge_v2.merged_badges[].title</code> | <code>string</code> | Display title of the badge. |
| <code>data.data[].author.badge_v2.merged_badges[].description</code> | <code>string</code> | Display description of the badge. |
| <code>data.data[].author.badge_v2.merged_badges[].url</code> | <code>string</code> | Details link reported for the badge. |
| <code>data.data[].author.badge_v2.merged_badges[].icon</code> | <code>string</code> | Badge icon URL for the default display mode. |
| <code>data.data[].author.badge_v2.merged_badges[].night_icon</code> | <code>string</code> | Badge icon URL for dark mode. |
| <code>data.data[].author.badge_v2.detail_badges</code> | <code>array &#124; null</code> | Detailed badge entries, or null when unavailable. |
| <code>data.data[].author.badge_v2.detail_badges[]</code> | <code>object</code> | One displayed account badge. |
| <code>data.data[].author.badge_v2.detail_badges[].type</code> | <code>string</code> | Badge type reported by Zhihu. |
| <code>data.data[].author.badge_v2.detail_badges[].detail_type</code> | <code>string</code> | Badge detail type reported by Zhihu. |
| <code>data.data[].author.badge_v2.detail_badges[].title</code> | <code>string</code> | Display title of the badge. |
| <code>data.data[].author.badge_v2.detail_badges[].description</code> | <code>string</code> | Display description of the badge. |
| <code>data.data[].author.badge_v2.detail_badges[].url</code> | <code>string</code> | Details link reported for the badge. |
| <code>data.data[].author.badge_v2.detail_badges[].icon</code> | <code>string</code> | Badge icon URL for the default display mode. |
| <code>data.data[].author.badge_v2.detail_badges[].night_icon</code> | <code>string</code> | Badge icon URL for dark mode. |
| <code>data.data[].author.exposed_medal</code> | <code>object</code> | Medal information shown on the account profile. |
| <code>data.data[].author.exposed_medal.medal_id</code> | <code>string</code> | Identifier of the displayed medal. |
| <code>data.data[].author.exposed_medal.medal_name</code> | <code>string</code> | Display name of the medal. |
| <code>data.data[].author.exposed_medal.avatar_url</code> | <code>string</code> | Medal image URL shown with the account avatar. |
| <code>data.data[].author.exposed_medal.mini_avatar_url</code> | <code>string</code> | Small medal image URL, when supplied. |
| <code>data.data[].author.exposed_medal.description</code> | <code>string</code> | Description displayed for the medal. |
| <code>data.data[].author.exposed_medal.medal_avatar_frame</code> | <code>string</code> | Avatar-frame value returned for the displayed medal. |
| <code>data.data[].author.kvip_info</code> | <code>object</code> | Membership information displayed on the profile. |
| <code>data.data[].author.kvip_info.is_vip</code> | <code>boolean</code> | Whether the displayed account profile is marked as a VIP member. |
| <code>data.data[].child_comment_count</code> | <code>integer</code> | Reported reply count for this top-level comment. |
| <code>data.data[].child_comment_next_offset</code> | <code>string &#124; null</code> | Continuation offset reported for the reply preview. It can be null when unavailable. |
| <code>data.data[].child_comments</code> | <code>array</code> | Replies included as a preview for this top-level comment. The number of returned entries can be smaller than child_comment_count. |
| <code>data.data[].child_comments[]</code> | <code>object</code> | One reply returned in the preview. |
| <code>data.data[].child_comments[].id</code> | <code>string</code> | Zhihu identifier of the comment. |
| <code>data.data[].child_comments[].type</code> | <code>string</code> | Content type code reported for the comment record. |
| <code>data.data[].child_comments[].resource_type</code> | <code>string</code> | Type of the resource associated with the comment. |
| <code>data.data[].child_comments[].member_id</code> | <code>integer</code> | Numeric member identifier associated with this comment. |
| <code>data.data[].child_comments[].url</code> | <code>string</code> | Link returned by Zhihu for the comment. |
| <code>data.data[].child_comments[].content</code> | <code>string</code> | Text content of the comment. It can include HTML markup. |
| <code>data.data[].child_comments[].score</code> | <code>integer</code> | Score field reported by Zhihu for the comment. |
| <code>data.data[].child_comments[].comment_type</code> | <code>integer</code> | Comment type code reported by Zhihu. |
| <code>data.data[].child_comments[].created_time</code> | <code>integer</code> | Comment creation time as a Unix timestamp in seconds. |
| <code>data.data[].child_comments[].reply_comment_id</code> | <code>string</code> | ID of the comment directly being replied to, when applicable. |
| <code>data.data[].child_comments[].reply_root_comment_id</code> | <code>string</code> | ID of the top-level comment for this reply, when applicable. |
| <code>data.data[].child_comments[].like_count</code> | <code>integer</code> | Number of likes reported for the comment. |
| <code>data.data[].child_comments[].dislike_count</code> | <code>integer</code> | Number of dislikes reported for the comment. |
| <code>data.data[].child_comments[].hot</code> | <code>boolean</code> | Whether Zhihu marks the comment as hot. |
| <code>data.data[].child_comments[].top</code> | <code>boolean</code> | Whether Zhihu marks the comment as pinned. |
| <code>data.data[].child_comments[].is_author</code> | <code>boolean</code> | Whether Zhihu marks the commenter as the answer author. |
| <code>data.data[].child_comments[].is_author_top</code> | <code>boolean</code> | Whether the comment is marked as pinned by the answer author. |
| <code>data.data[].child_comments[].is_delete</code> | <code>boolean</code> | Whether Zhihu marks the comment as deleted. |
| <code>data.data[].child_comments[].collapsed</code> | <code>boolean</code> | Whether Zhihu marks the comment as collapsed. |
| <code>data.data[].child_comments[].reviewing</code> | <code>boolean</code> | Whether Zhihu marks the comment as under review. |
| <code>data.data[].child_comments[].is_annotation</code> | <code>boolean</code> | Whether Zhihu reports an annotation marker for this comment. |
| <code>data.data[].child_comments[].level_tag</code> | <code>integer</code> | Level tag code reported for the comment, when provided. |
| <code>data.data[].child_comments[].content_tag</code> | <code>array</code> | Tags associated with the comment content, when provided. |
| <code>data.data[].child_comments[].author_tag</code> | <code>array</code> | Public author labels shown with the comment. |
| <code>data.data[].child_comments[].author_tag[]</code> | <code>object</code> | One displayed label. |
| <code>data.data[].child_comments[].author_tag[].type</code> | <code>string</code> | Type code reported for the label. |
| <code>data.data[].child_comments[].author_tag[].text</code> | <code>string</code> | Display text of the label. |
| <code>data.data[].child_comments[].comment_tag</code> | <code>array</code> | Public labels shown with the comment. |
| <code>data.data[].child_comments[].comment_tag[]</code> | <code>object</code> | One displayed label. |
| <code>data.data[].child_comments[].comment_tag[].type</code> | <code>string</code> | Type code reported for the label. |
| <code>data.data[].child_comments[].comment_tag[].text</code> | <code>string</code> | Display text of the label. |
| <code>data.data[].child_comments[].author</code> | <code>object</code> | Public profile of the Zhihu comment author. |
| <code>data.data[].child_comments[].author.id</code> | <code>string</code> | String identifier of this Zhihu account. |
| <code>data.data[].child_comments[].author.url_token</code> | <code>string</code> | Public profile slug used in Zhihu profile links. |
| <code>data.data[].child_comments[].author.name</code> | <code>string</code> | Display name of the account. |
| <code>data.data[].child_comments[].author.avatar_url</code> | <code>string</code> | Avatar URL for this Zhihu account. |
| <code>data.data[].child_comments[].author.avatar_url_template</code> | <code>string</code> | Avatar URL template returned for this account. |
| <code>data.data[].child_comments[].author.url</code> | <code>string</code> | Profile link reported for the account. |
| <code>data.data[].child_comments[].author.type</code> | <code>string</code> | Account type reported by Zhihu. |
| <code>data.data[].child_comments[].author.user_type</code> | <code>string</code> | Additional user-type code reported for the account. |
| <code>data.data[].child_comments[].author.headline</code> | <code>string</code> | Public headline shown on the account profile. |
| <code>data.data[].child_comments[].author.is_org</code> | <code>boolean</code> | Whether Zhihu marks this account as an organization. |
| <code>data.data[].child_comments[].author.is_anonymous</code> | <code>boolean</code> | Whether the account profile is marked as anonymous. |
| <code>data.data[].child_comments[].author.badge_v2</code> | <code>object</code> | Badge information shown for this Zhihu account. |
| <code>data.data[].child_comments[].author.badge_v2.title</code> | <code>string</code> | Title displayed for the account's badges. |
| <code>data.data[].child_comments[].author.badge_v2.icon</code> | <code>string</code> | Badge display icon URL, when supplied. |
| <code>data.data[].child_comments[].author.badge_v2.night_icon</code> | <code>string</code> | Badge display icon URL for dark mode, when supplied. |
| <code>data.data[].child_comments[].author.badge_v2.merged_badges</code> | <code>array &#124; null</code> | Combined badge entries for display, or null when unavailable. |
| <code>data.data[].child_comments[].author.badge_v2.merged_badges[]</code> | <code>object</code> | One displayed account badge. |
| <code>data.data[].child_comments[].author.badge_v2.merged_badges[].type</code> | <code>string</code> | Badge type reported by Zhihu. |
| <code>data.data[].child_comments[].author.badge_v2.merged_badges[].detail_type</code> | <code>string</code> | Badge detail type reported by Zhihu. |
| <code>data.data[].child_comments[].author.badge_v2.merged_badges[].title</code> | <code>string</code> | Display title of the badge. |
| <code>data.data[].child_comments[].author.badge_v2.merged_badges[].description</code> | <code>string</code> | Display description of the badge. |
| <code>data.data[].child_comments[].author.badge_v2.merged_badges[].url</code> | <code>string</code> | Details link reported for the badge. |
| <code>data.data[].child_comments[].author.badge_v2.merged_badges[].icon</code> | <code>string</code> | Badge icon URL for the default display mode. |
| <code>data.data[].child_comments[].author.badge_v2.merged_badges[].night_icon</code> | <code>string</code> | Badge icon URL for dark mode. |
| <code>data.data[].child_comments[].author.badge_v2.detail_badges</code> | <code>array &#124; null</code> | Detailed badge entries, or null when unavailable. |
| <code>data.data[].child_comments[].author.badge_v2.detail_badges[]</code> | <code>object</code> | One displayed account badge. |
| <code>data.data[].child_comments[].author.badge_v2.detail_badges[].type</code> | <code>string</code> | Badge type reported by Zhihu. |
| <code>data.data[].child_comments[].author.badge_v2.detail_badges[].detail_type</code> | <code>string</code> | Badge detail type reported by Zhihu. |
| <code>data.data[].child_comments[].author.badge_v2.detail_badges[].title</code> | <code>string</code> | Display title of the badge. |
| <code>data.data[].child_comments[].author.badge_v2.detail_badges[].description</code> | <code>string</code> | Display description of the badge. |
| <code>data.data[].child_comments[].author.badge_v2.detail_badges[].url</code> | <code>string</code> | Details link reported for the badge. |
| <code>data.data[].child_comments[].author.badge_v2.detail_badges[].icon</code> | <code>string</code> | Badge icon URL for the default display mode. |
| <code>data.data[].child_comments[].author.badge_v2.detail_badges[].night_icon</code> | <code>string</code> | Badge icon URL for dark mode. |
| <code>data.data[].child_comments[].author.exposed_medal</code> | <code>object</code> | Medal information shown on the account profile. |
| <code>data.data[].child_comments[].author.exposed_medal.medal_id</code> | <code>string</code> | Identifier of the displayed medal. |
| <code>data.data[].child_comments[].author.exposed_medal.medal_name</code> | <code>string</code> | Display name of the medal. |
| <code>data.data[].child_comments[].author.exposed_medal.avatar_url</code> | <code>string</code> | Medal image URL shown with the account avatar. |
| <code>data.data[].child_comments[].author.exposed_medal.mini_avatar_url</code> | <code>string</code> | Small medal image URL, when supplied. |
| <code>data.data[].child_comments[].author.exposed_medal.description</code> | <code>string</code> | Description displayed for the medal. |
| <code>data.data[].child_comments[].author.exposed_medal.medal_avatar_frame</code> | <code>string</code> | Avatar-frame value returned for the displayed medal. |
| <code>data.data[].child_comments[].author.kvip_info</code> | <code>object</code> | Membership information displayed on the profile. |
| <code>data.data[].child_comments[].author.kvip_info.is_vip</code> | <code>boolean</code> | Whether the displayed account profile is marked as a VIP member. |
| <code>data.data[].child_comments[].reply_to_author</code> | <code>object</code> | Public profile of the account being replied to, when included. |
| <code>data.data[].child_comments[].reply_to_author.id</code> | <code>string</code> | String identifier of this Zhihu account. |
| <code>data.data[].child_comments[].reply_to_author.url_token</code> | <code>string</code> | Public profile slug used in Zhihu profile links. |
| <code>data.data[].child_comments[].reply_to_author.name</code> | <code>string</code> | Display name of the account. |
| <code>data.data[].child_comments[].reply_to_author.avatar_url</code> | <code>string</code> | Avatar URL for this Zhihu account. |
| <code>data.data[].child_comments[].reply_to_author.avatar_url_template</code> | <code>string</code> | Avatar URL template returned for this account. |
| <code>data.data[].child_comments[].reply_to_author.url</code> | <code>string</code> | Profile link reported for the account. |
| <code>data.data[].child_comments[].reply_to_author.type</code> | <code>string</code> | Account type reported by Zhihu. |
| <code>data.data[].child_comments[].reply_to_author.user_type</code> | <code>string</code> | Additional user-type code reported for the account. |
| <code>data.data[].child_comments[].reply_to_author.headline</code> | <code>string</code> | Public headline shown on the account profile. |
| <code>data.data[].child_comments[].reply_to_author.is_org</code> | <code>boolean</code> | Whether Zhihu marks this account as an organization. |
| <code>data.data[].child_comments[].reply_to_author.is_anonymous</code> | <code>boolean</code> | Whether the account profile is marked as anonymous. |
| <code>data.data[].child_comments[].child_comment_count</code> | <code>integer</code> | Reported child-comment count for this reply. |
| <code>data.paging</code> | <code>object</code> | Pagination information for the top-level comments. |
| <code>data.paging.is_start</code> | <code>boolean</code> | Whether this is the first page of comments. |
| <code>data.paging.is_end</code> | <code>boolean</code> | Whether Zhihu marks this as the final page of comments. Stop paginating when true. |
| <code>data.paging.next</code> | <code>string</code> | Next-page URL. When is_end is false, read offset from this URL and send it with the same answerId and orderBy. |
| <code>data.paging.previous</code> | <code>string</code> | Previous-page URL reported by Zhihu. |
| <code>data.paging.totals</code> | <code>integer</code> | Total comment count reported in the pagination information. |
| <code>data.counts</code> | <code>object</code> | Comment counts reported for the answer. |
| <code>data.counts.total_counts</code> | <code>integer</code> | Total number of comments reported for the answer. |
| <code>data.counts.collapsed_counts</code> | <code>integer</code> | Number of comments reported as collapsed. |
| <code>data.counts.reviewing_counts</code> | <code>integer</code> | Number of comments reported as under review. |
| <code>data.counts.segment_comment_counts</code> | <code>integer</code> | Number of segment comments reported for the answer. |
| <code>data.comment_status</code> | <code>object</code> | Comment status reported for the answer. |
| <code>data.comment_status.type</code> | <code>integer</code> | Comment status code reported by Zhihu. |
| <code>data.comment_status.text</code> | <code>string</code> | Display text for the comment status. |
| <code>data.comment_status.induce_text</code> | <code>string</code> | Comment prompt text, when populated. |
| <code>data.sorter</code> | <code>array</code> | Sort options shown for the comment list. |
| <code>data.sorter[]</code> | <code>object</code> | One displayed sorting option. |
| <code>data.sorter[].type</code> | <code>string</code> | Code reported for this sorting option. |
| <code>data.sorter[].text</code> | <code>string</code> | Display label for this sorting option. |

</div>

## Response Example

<ApiExampleSection :api='JSON.parse("\"/api/zhihu/get-answer-comments/v1\"")' />

