Zhihu question answers by question id
tikhub.x.zhihu-web-fetch-question-answersZhihu: fetch question answers (web)
- Price
- $0.001/successプロバイダー原価
- 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 online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
limit | 整数 | 任意 | Number of answers per page | 5 |
order | 文字列 | 任意 | Sort order: default=default sort, updated=sort by time | default |
cursor | 文字列 | 任意 | Pagination cursor | |
offset | 整数 | 任意 | Offset | 0 |
session_id | 文字列 | 任意 | Session ID | |
question_id | 文字列 | 必須 | Question ID | |
- クエリパラメータ
limit整数任意Number of answers per page
例:
5order文字列任意Sort order: default=default sort, updated=sort by time
例:
defaultcursor文字列任意Pagination cursor
offset整数任意Offset
例:
0session_id文字列任意Session ID
question_id文字列必須Question ID
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.001/success です。サービス料を含みます。