---
title: "Zhihu Answer List API (V1)"
description: "Retrieve answers for a Zhihu question with sorting and pagination controls. Use it to browse responses to a known question and continue through additional answer pages."
aiUsagePrompt: true
---

# Zhihu Answer List API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/zhihu/get-answer-list/v1\"")'
  :summary='JSON.parse("\"Answer List (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/zhihu/answer-list-v1-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"TOKEN\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"questionId\",\"in\":\"query\",\"description\":\"Question ID\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"cursor\",\"in\":\"query\",\"description\":\"Pagination cursor from previous result.\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"\"}},{\"name\":\"offset\",\"in\":\"query\",\"description\":\"Start offset, begins with 0.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":0}},{\"name\":\"order\",\"in\":\"query\",\"description\":\"Sorting criteria for answers.\\n\\nAvailable Values:\\n- `_default`: Default sorting.\\n- `_updated`: Sorted by updated time.\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"_updated\",\"description\":\"Zhihu answer sorting order.\",\"enum\":[\"_default\",\"_updated\"]}},{\"name\":\"sessionId\",\"in\":\"query\",\"description\":\"Session ID from 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\":\"Answer cards and pagination for a Zhihu question.\",\"properties\":{\"data\":{\"type\":\"array\",\"description\":\"Answer cards returned on this page.\",\"items\":{\"type\":\"object\",\"description\":\"One answer card returned for the question.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Card type reported by Zhihu.\"},\"target_type\":{\"type\":\"string\",\"description\":\"Type of content carried by the card.\"},\"position\":{\"type\":\"integer\",\"description\":\"Position reported for this answer card.\"},\"target\":{\"type\":\"object\",\"description\":\"The answer carried by this card.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Zhihu identifier of the answer.\"},\"type\":{\"type\":\"string\",\"description\":\"Content type reported for the answer record.\"},\"answer_type\":{\"type\":\"string\",\"description\":\"Answer subtype reported by Zhihu.\"},\"business_type\":{\"type\":\"string\",\"description\":\"Additional answer category code reported by Zhihu.\"},\"content\":{\"type\":\"string\",\"description\":\"Answer body returned as HTML.\"},\"excerpt\":{\"type\":\"string\",\"description\":\"Plain-text excerpt of the answer.\"},\"created_time\":{\"type\":\"integer\",\"description\":\"Answer creation time as a Unix timestamp in seconds.\"},\"updated_time\":{\"type\":\"integer\",\"description\":\"Answer update time as a Unix timestamp in seconds.\"},\"url\":{\"type\":\"string\",\"description\":\"Link returned by Zhihu for this answer.\"},\"content_need_truncated\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu reports that the answer content should be truncated for display.\"},\"ip_info\":{\"type\":\"string\",\"description\":\"Region label shown by Zhihu for the answer, when present.\"},\"is_sticky\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks this answer as pinned.\"},\"is_collapsed\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks this answer as collapsed.\"},\"collapse_reason\":{\"type\":\"string\",\"description\":\"Reason text returned for collapsing the answer, when supplied.\"},\"admin_closed_comment\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu reports that moderation closed comments on this answer.\"},\"comment_permission\":{\"type\":\"string\",\"description\":\"Comment permission code reported for the answer.\"},\"can_comment\":{\"type\":\"object\",\"description\":\"Comment availability reported for the answer.\",\"properties\":{\"status\":{\"type\":\"boolean\",\"description\":\"Whether comments are available for this answer in the response.\"},\"reason\":{\"type\":\"string\",\"description\":\"Reason returned for the comment availability status, if provided.\"}}},\"voteup_count\":{\"type\":\"integer\",\"description\":\"Reported number of upvotes on the answer.\"},\"comment_count\":{\"type\":\"integer\",\"description\":\"Reported number of comments on the answer.\"},\"thanks_count\":{\"type\":\"integer\",\"description\":\"Reported number of thanks for the answer.\"},\"favlists_count\":{\"type\":\"integer\",\"description\":\"Reported number of favorite lists associated with the answer.\"},\"reaction\":{\"type\":\"object\",\"description\":\"Interaction information reported for the answer.\",\"properties\":{\"statistics\":{\"type\":\"object\",\"description\":\"Counts in Zhihu&#39;s interaction statistics.\",\"properties\":{\"like_count\":{\"type\":\"integer\",\"description\":\"Like count in the interaction statistics. It can differ from voteup_count.\"},\"down_vote_count\":{\"type\":\"integer\",\"description\":\"Downvote count in the interaction statistics.\"},\"favorites\":{\"type\":\"integer\",\"description\":\"Favorite count in the interaction statistics.\"}}}}},\"question\":{\"type\":\"object\",\"description\":\"Question associated with the answer.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Zhihu identifier of the question.\"},\"title\":{\"type\":\"string\",\"description\":\"Title of the question.\"},\"type\":{\"type\":\"string\",\"description\":\"Content type reported for the question record.\"},\"question_type\":{\"type\":\"string\",\"description\":\"Question subtype reported by Zhihu.\"},\"url\":{\"type\":\"string\",\"description\":\"Link returned by Zhihu for the question.\"},\"created\":{\"type\":\"integer\",\"description\":\"Question creation time as a Unix timestamp in seconds.\"},\"updated_time\":{\"type\":\"integer\",\"description\":\"Question update time as a Unix timestamp in seconds.\"}}},\"thumbnail_info\":{\"type\":\"object\",\"description\":\"Thumbnails returned with the answer.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Thumbnail group type reported for the answer.\"},\"count\":{\"type\":\"integer\",\"description\":\"Reported number of thumbnails associated with the answer.\"},\"thumbnails\":{\"type\":\"array\",\"description\":\"Thumbnail entries provided with the answer.\",\"items\":{\"type\":\"object\",\"description\":\"One answer thumbnail.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Media type reported for this thumbnail.\"},\"url\":{\"type\":\"string\",\"description\":\"URL of the thumbnail.\"},\"width\":{\"type\":\"integer\",\"description\":\"Width reported for the thumbnail, in pixels.\"},\"height\":{\"type\":\"integer\",\"description\":\"Height reported for the thumbnail, in pixels.\"}}}}}},\"author\":{\"type\":\"object\",\"description\":\"Public profile details of the answer author.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Zhihu identifier of the answer author.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name of the answer author.\"},\"headline\":{\"type\":\"string\",\"description\":\"Profile headline shown for the answer author.\"},\"url\":{\"type\":\"string\",\"description\":\"Link returned for the answer author&#39;s profile.\"},\"avatar_url\":{\"type\":\"string\",\"description\":\"Avatar URL for the answer author.\"},\"avatar_url_template\":{\"type\":\"string\",\"description\":\"Avatar URL template returned for the answer author.\"},\"type\":{\"type\":\"string\",\"description\":\"Account type reported for the answer author.\"},\"user_type\":{\"type\":\"string\",\"description\":\"Additional user-type code reported for the author.\"},\"follower_count\":{\"type\":\"integer\",\"description\":\"Reported number of followers of the answer author.\"},\"is_org\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks the author as an organization account.\"},\"badge\":{\"type\":\"array\",\"description\":\"Badges displayed with the answer author.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed author badge.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Badge type reported by Zhihu.\"},\"description\":{\"type\":\"string\",\"description\":\"Public description displayed for the badge.\"}}}},\"exposed_medal\":{\"type\":\"object\",\"description\":\"Medal information displayed with the author profile.\",\"properties\":{\"medal_id\":{\"type\":\"string\",\"description\":\"Identifier of the displayed medal.\"},\"medal_name\":{\"type\":\"string\",\"description\":\"Display name of the medal.\"},\"description\":{\"type\":\"string\",\"description\":\"Description displayed for the medal.\"},\"avatar_url\":{\"type\":\"string\",\"description\":\"Medal image URL displayed with the author&#39;s avatar.\"},\"mini_avatar_url\":{\"type\":\"string\",\"description\":\"Small medal image URL, when supplied.\"},\"medal_avatar_frame\":{\"type\":\"string\",\"description\":\"Avatar-frame value returned for the displayed medal.\"}}},\"vip_info\":{\"type\":\"object\",\"description\":\"Public membership badge information shown for the author.\",\"properties\":{\"is_vip\":{\"type\":\"boolean\",\"description\":\"Whether a membership badge is active in the displayed profile details.\"},\"vip_icon\":{\"type\":\"object\",\"description\":\"Membership icon links, when supplied.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Default membership icon URL.\"},\"night_mode_url\":{\"type\":\"string\",\"description\":\"Membership icon URL for dark mode.\"}}}}}}},\"reward_info\":{\"type\":\"object\",\"description\":\"Reward information shown for the answer.\",\"properties\":{\"is_rewardable\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu reports that the answer can receive rewards.\"},\"reward_member_count\":{\"type\":\"integer\",\"description\":\"Reported number of accounts that rewarded the answer.\"},\"tagline\":{\"type\":\"string\",\"description\":\"Reward display text, when supplied.\"}}},\"endorsements\":{\"type\":\"array\",\"description\":\"Endorsements displayed with the answer, when supplied.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed endorsement entry.\",\"properties\":{\"elements\":{\"type\":\"array\",\"description\":\"Elements displayed in the endorsement entry.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed endorsement element.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Display element type reported for the endorsement.\"},\"content\":{\"type\":\"string\",\"description\":\"Public text shown for this element, when provided.\"}}}}}}}}}}}},\"paging\":{\"type\":\"object\",\"description\":\"Pagination details for the answer list.\",\"properties\":{\"page\":{\"type\":\"integer\",\"description\":\"Page number reported for the current result.\"},\"is_end\":{\"type\":\"boolean\",\"description\":\"Whether Zhihu marks this as the final page of answers.\"},\"next\":{\"type\":\"string\",\"description\":\"Next-page URL. When is_end is false, read cursor and offset from this URL and map its session_id query parameter to sessionId. Send those values with the same questionId and order.\"}}}}}}},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"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-list/v1\"")' />

<p>Retrieve answers for a Zhihu question with sorting and pagination controls. Use it to browse responses to a known question and continue through additional answer 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>questionId</code> | query | <code>string</code> | Yes | - | Question ID |
| <code>cursor</code> | query | <code>string</code> | No | <code></code> | Pagination cursor from previous result. |
| <code>offset</code> | query | <code>integer</code> | No | <code>0</code> | Start offset, begins with 0. |
| <code>order</code> | query | <code>string</code> | No | <code>_updated</code> | Sorting criteria for answers.<br /><br><br>Available Values:<br /><br>- <code>_default</code>: Default sorting.<br /><br>- <code>_updated</code>: Sorted by updated time. |
| <code>sessionId</code> | query | <code>string</code> | No | <code></code> | Session ID from previous result. |

</div>

## Code Samples

::: code-group

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

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

Parameters:
- token (query): TOKEN (Required)
- questionId (query): Question ID (Required)
- cursor (query): Pagination cursor from previous result.
- offset (query): Start offset, begins with 0.
- order (query): Sorting criteria for answers.

Available Values:
- `_default`: Default sorting.
- `_updated`: Sorted by updated time.
- sessionId (query): Session ID from 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-list/v1?token=YOUR_API_KEY&questionId=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-list/v1?token=YOUR_API_KEY&questionId=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-list/v1?token=YOUR_API_KEY&questionId=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-list/v1?token=YOUR_API_KEY&questionId=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-list/v1?token=YOUR_API_KEY&questionId=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-list-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> | Answer cards and pagination for a Zhihu question. |
| <code>data.data</code> | <code>array</code> | Answer cards returned on this page. |
| <code>data.data[]</code> | <code>object</code> | One answer card returned for the question. |
| <code>data.data[].type</code> | <code>string</code> | Card type reported by Zhihu. |
| <code>data.data[].target_type</code> | <code>string</code> | Type of content carried by the card. |
| <code>data.data[].position</code> | <code>integer</code> | Position reported for this answer card. |
| <code>data.data[].target</code> | <code>object</code> | The answer carried by this card. |
| <code>data.data[].target.id</code> | <code>string</code> | Zhihu identifier of the answer. |
| <code>data.data[].target.type</code> | <code>string</code> | Content type reported for the answer record. |
| <code>data.data[].target.answer_type</code> | <code>string</code> | Answer subtype reported by Zhihu. |
| <code>data.data[].target.business_type</code> | <code>string</code> | Additional answer category code reported by Zhihu. |
| <code>data.data[].target.content</code> | <code>string</code> | Answer body returned as HTML. |
| <code>data.data[].target.excerpt</code> | <code>string</code> | Plain-text excerpt of the answer. |
| <code>data.data[].target.created_time</code> | <code>integer</code> | Answer creation time as a Unix timestamp in seconds. |
| <code>data.data[].target.updated_time</code> | <code>integer</code> | Answer update time as a Unix timestamp in seconds. |
| <code>data.data[].target.url</code> | <code>string</code> | Link returned by Zhihu for this answer. |
| <code>data.data[].target.content_need_truncated</code> | <code>boolean</code> | Whether Zhihu reports that the answer content should be truncated for display. |
| <code>data.data[].target.ip_info</code> | <code>string</code> | Region label shown by Zhihu for the answer, when present. |
| <code>data.data[].target.is_sticky</code> | <code>boolean</code> | Whether Zhihu marks this answer as pinned. |
| <code>data.data[].target.is_collapsed</code> | <code>boolean</code> | Whether Zhihu marks this answer as collapsed. |
| <code>data.data[].target.collapse_reason</code> | <code>string</code> | Reason text returned for collapsing the answer, when supplied. |
| <code>data.data[].target.admin_closed_comment</code> | <code>boolean</code> | Whether Zhihu reports that moderation closed comments on this answer. |
| <code>data.data[].target.comment_permission</code> | <code>string</code> | Comment permission code reported for the answer. |
| <code>data.data[].target.can_comment</code> | <code>object</code> | Comment availability reported for the answer. |
| <code>data.data[].target.can_comment.status</code> | <code>boolean</code> | Whether comments are available for this answer in the response. |
| <code>data.data[].target.can_comment.reason</code> | <code>string</code> | Reason returned for the comment availability status, if provided. |
| <code>data.data[].target.voteup_count</code> | <code>integer</code> | Reported number of upvotes on the answer. |
| <code>data.data[].target.comment_count</code> | <code>integer</code> | Reported number of comments on the answer. |
| <code>data.data[].target.thanks_count</code> | <code>integer</code> | Reported number of thanks for the answer. |
| <code>data.data[].target.favlists_count</code> | <code>integer</code> | Reported number of favorite lists associated with the answer. |
| <code>data.data[].target.reaction</code> | <code>object</code> | Interaction information reported for the answer. |
| <code>data.data[].target.reaction.statistics</code> | <code>object</code> | Counts in Zhihu's interaction statistics. |
| <code>data.data[].target.reaction.statistics.like_count</code> | <code>integer</code> | Like count in the interaction statistics. It can differ from voteup_count. |
| <code>data.data[].target.reaction.statistics.down_vote_count</code> | <code>integer</code> | Downvote count in the interaction statistics. |
| <code>data.data[].target.reaction.statistics.favorites</code> | <code>integer</code> | Favorite count in the interaction statistics. |
| <code>data.data[].target.question</code> | <code>object</code> | Question associated with the answer. |
| <code>data.data[].target.question.id</code> | <code>string</code> | Zhihu identifier of the question. |
| <code>data.data[].target.question.title</code> | <code>string</code> | Title of the question. |
| <code>data.data[].target.question.type</code> | <code>string</code> | Content type reported for the question record. |
| <code>data.data[].target.question.question_type</code> | <code>string</code> | Question subtype reported by Zhihu. |
| <code>data.data[].target.question.url</code> | <code>string</code> | Link returned by Zhihu for the question. |
| <code>data.data[].target.question.created</code> | <code>integer</code> | Question creation time as a Unix timestamp in seconds. |
| <code>data.data[].target.question.updated_time</code> | <code>integer</code> | Question update time as a Unix timestamp in seconds. |
| <code>data.data[].target.thumbnail_info</code> | <code>object</code> | Thumbnails returned with the answer. |
| <code>data.data[].target.thumbnail_info.type</code> | <code>string</code> | Thumbnail group type reported for the answer. |
| <code>data.data[].target.thumbnail_info.count</code> | <code>integer</code> | Reported number of thumbnails associated with the answer. |
| <code>data.data[].target.thumbnail_info.thumbnails</code> | <code>array</code> | Thumbnail entries provided with the answer. |
| <code>data.data[].target.thumbnail_info.thumbnails[]</code> | <code>object</code> | One answer thumbnail. |
| <code>data.data[].target.thumbnail_info.thumbnails[].type</code> | <code>string</code> | Media type reported for this thumbnail. |
| <code>data.data[].target.thumbnail_info.thumbnails[].url</code> | <code>string</code> | URL of the thumbnail. |
| <code>data.data[].target.thumbnail_info.thumbnails[].width</code> | <code>integer</code> | Width reported for the thumbnail, in pixels. |
| <code>data.data[].target.thumbnail_info.thumbnails[].height</code> | <code>integer</code> | Height reported for the thumbnail, in pixels. |
| <code>data.data[].target.author</code> | <code>object</code> | Public profile details of the answer author. |
| <code>data.data[].target.author.id</code> | <code>string</code> | Zhihu identifier of the answer author. |
| <code>data.data[].target.author.name</code> | <code>string</code> | Display name of the answer author. |
| <code>data.data[].target.author.headline</code> | <code>string</code> | Profile headline shown for the answer author. |
| <code>data.data[].target.author.url</code> | <code>string</code> | Link returned for the answer author's profile. |
| <code>data.data[].target.author.avatar_url</code> | <code>string</code> | Avatar URL for the answer author. |
| <code>data.data[].target.author.avatar_url_template</code> | <code>string</code> | Avatar URL template returned for the answer author. |
| <code>data.data[].target.author.type</code> | <code>string</code> | Account type reported for the answer author. |
| <code>data.data[].target.author.user_type</code> | <code>string</code> | Additional user-type code reported for the author. |
| <code>data.data[].target.author.follower_count</code> | <code>integer</code> | Reported number of followers of the answer author. |
| <code>data.data[].target.author.is_org</code> | <code>boolean</code> | Whether Zhihu marks the author as an organization account. |
| <code>data.data[].target.author.badge</code> | <code>array</code> | Badges displayed with the answer author. |
| <code>data.data[].target.author.badge[]</code> | <code>object</code> | One displayed author badge. |
| <code>data.data[].target.author.badge[].type</code> | <code>string</code> | Badge type reported by Zhihu. |
| <code>data.data[].target.author.badge[].description</code> | <code>string</code> | Public description displayed for the badge. |
| <code>data.data[].target.author.exposed_medal</code> | <code>object</code> | Medal information displayed with the author profile. |
| <code>data.data[].target.author.exposed_medal.medal_id</code> | <code>string</code> | Identifier of the displayed medal. |
| <code>data.data[].target.author.exposed_medal.medal_name</code> | <code>string</code> | Display name of the medal. |
| <code>data.data[].target.author.exposed_medal.description</code> | <code>string</code> | Description displayed for the medal. |
| <code>data.data[].target.author.exposed_medal.avatar_url</code> | <code>string</code> | Medal image URL displayed with the author's avatar. |
| <code>data.data[].target.author.exposed_medal.mini_avatar_url</code> | <code>string</code> | Small medal image URL, when supplied. |
| <code>data.data[].target.author.exposed_medal.medal_avatar_frame</code> | <code>string</code> | Avatar-frame value returned for the displayed medal. |
| <code>data.data[].target.author.vip_info</code> | <code>object</code> | Public membership badge information shown for the author. |
| <code>data.data[].target.author.vip_info.is_vip</code> | <code>boolean</code> | Whether a membership badge is active in the displayed profile details. |
| <code>data.data[].target.author.vip_info.vip_icon</code> | <code>object</code> | Membership icon links, when supplied. |
| <code>data.data[].target.author.vip_info.vip_icon.url</code> | <code>string</code> | Default membership icon URL. |
| <code>data.data[].target.author.vip_info.vip_icon.night_mode_url</code> | <code>string</code> | Membership icon URL for dark mode. |
| <code>data.data[].target.reward_info</code> | <code>object</code> | Reward information shown for the answer. |
| <code>data.data[].target.reward_info.is_rewardable</code> | <code>boolean</code> | Whether Zhihu reports that the answer can receive rewards. |
| <code>data.data[].target.reward_info.reward_member_count</code> | <code>integer</code> | Reported number of accounts that rewarded the answer. |
| <code>data.data[].target.reward_info.tagline</code> | <code>string</code> | Reward display text, when supplied. |
| <code>data.data[].target.endorsements</code> | <code>array</code> | Endorsements displayed with the answer, when supplied. |
| <code>data.data[].target.endorsements[]</code> | <code>object</code> | One displayed endorsement entry. |
| <code>data.data[].target.endorsements[].elements</code> | <code>array</code> | Elements displayed in the endorsement entry. |
| <code>data.data[].target.endorsements[].elements[]</code> | <code>object</code> | One displayed endorsement element. |
| <code>data.data[].target.endorsements[].elements[].type</code> | <code>string</code> | Display element type reported for the endorsement. |
| <code>data.data[].target.endorsements[].elements[].content</code> | <code>string</code> | Public text shown for this element, when provided. |
| <code>data.paging</code> | <code>object</code> | Pagination details for the answer list. |
| <code>data.paging.page</code> | <code>integer</code> | Page number reported for the current result. |
| <code>data.paging.is_end</code> | <code>boolean</code> | Whether Zhihu marks this as the final page of answers. |
| <code>data.paging.next</code> | <code>string</code> | Next-page URL. When is_end is false, read cursor and offset from this URL and map its session_id query parameter to sessionId. Send those values with the same questionId and order. |

</div>

## Response Example

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

