Search Zhihu by keyword
justoneapi.x.zhihu-search-v1Search Zhihu by keyword with optional result-type, sort, time-interval, topic-display, and offset controls.
- 价格
- $0.02952/success按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- 2026年7月28日实测可用
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.zhihu-search-v1?offset=0&keyword=%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD&showAllTopics=FALSE预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
sort | 字符串 | 可选 | Sorting criteria. Available Values: - `upvoted_count`: Most upvoted. - `created_time`: Latest published. One of: upvoted_count, created_time. | |
offset | 整数 | 可选 | Start offset, begins with 0. | 0 |
keyword | 字符串 | 必填 | Search keywords. | 人工智能 |
vertical | 字符串 | 可选 | Result type filter. Available Values: - `answer`: Answers only. - `article`: Articles only. - `zvideo`: Videos only. One of: answer, article, zvideo. | |
timeInterval | 字符串 | 可选 | Publish time interval filter. Available Values: - `a_day`: Within one day. - `a_week`: Within one week. - `a_month`: Within one month. - `three_months`: Within three months. - `half_a_year`: Within half a year. - `a_year`: Within one year. One of: a_day, a_week, a_month, three_months, half_a_year, a_year. | |
showAllTopics | 字符串 | 可选 | Whether to show all topics. Available Values: - `FALSE`: Do not show topics. - `TRUE`: Show all topics. One of: FALSE, TRUE. | FALSE |
- 查询参数
sort字符串可选Sorting criteria. Available Values: - `upvoted_count`: Most upvoted. - `created_time`: Latest published. One of: upvoted_count, created_time.
offset整数可选Start offset, begins with 0.
示例:
0keyword字符串必填Search keywords.
示例:
人工智能vertical字符串可选Result type filter. Available Values: - `answer`: Answers only. - `article`: Articles only. - `zvideo`: Videos only. One of: answer, article, zvideo.
timeInterval字符串可选Publish time interval filter. Available Values: - `a_day`: Within one day. - `a_week`: Within one week. - `a_month`: Within one month. - `three_months`: Within three months. - `half_a_year`: Within half a year. - `a_year`: Within one year. One of: a_day, a_week, a_month, three_months, half_a_year, a_year.
showAllTopics字符串可选Whether to show all topics. Available Values: - `FALSE`: Do not show topics. - `TRUE`: Show all topics. One of: FALSE, TRUE.
示例:
FALSE
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.zhihu-search-v1?offset=0&keyword=%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD&showAllTopics=FALSE' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.x.zhihu-search-v1?offset=0&keyword=%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD&showAllTopics=FALSE",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.x.zhihu-search-v1?offset=0&keyword=%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD&showAllTopics=FALSE", {
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.02952/success 计费,已含服务费。