Zhihu question answers by question id
tikhub.x.zhihu-web-fetch-question-answersZhihu: fetch question answers (web)
- Price
- $0.001/successAt provider cost
- Success rate
- 100%Last 30 days · 39 calls
- Latency p50
- 1.6 sp95 2.6 s
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/tikhub.x.zhihu-web-fetch-question-answersPreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
limit | integer | Optional | Number of answers per page | 5 |
order | string | Optional | Sort order: default=default sort, updated=sort by time | default |
cursor | string | Optional | Pagination cursor | |
offset | integer | Optional | Offset | 0 |
session_id | string | Optional | Session ID | |
question_id | string | Required | Question ID | |
- Query parameters
limitintegerOptionalNumber of answers per page
Example:
5orderstringOptionalSort order: default=default sort, updated=sort by time
Example:
defaultcursorstringOptionalPagination cursor
offsetintegerOptionalOffset
Example:
0session_idstringOptionalSession ID
question_idstringRequiredQuestion ID
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.x.zhihu-web-fetch-question-answers' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.x.zhihu-web-fetch-question-answers",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.zhihu-web-fetch-question-answers", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.001/success, including the service fee.