Search Zhihu by keyword
justoneapi.x.zhihu-search-v1Search Zhihu by keyword with optional result-type, sort, time-interval, topic-display, and offset controls.
- Price
- $0.02952/successPelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- 28 de jul. de 2026Verified working
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=FALSEPreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
sort | string | Opcional | Sorting criteria. Available Values: - `upvoted_count`: Most upvoted. - `created_time`: Latest published. One of: upvoted_count, created_time. | |
offset | inteiro | Opcional | Start offset, begins with 0. | 0 |
keyword | string | Obrigatório | Search keywords. | 人工智能 |
vertical | string | Opcional | Result type filter. Available Values: - `answer`: Answers only. - `article`: Articles only. - `zvideo`: Videos only. One of: answer, article, zvideo. | |
timeInterval | string | Opcional | 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 | string | Opcional | Whether to show all topics. Available Values: - `FALSE`: Do not show topics. - `TRUE`: Show all topics. One of: FALSE, TRUE. | FALSE |
- Parâmetros de consulta
sortstringOpcionalSorting criteria. Available Values: - `upvoted_count`: Most upvoted. - `created_time`: Latest published. One of: upvoted_count, created_time.
offsetinteiroOpcionalStart offset, begins with 0.
Exemplo:
0keywordstringObrigatórioSearch keywords.
Exemplo:
人工智能verticalstringOpcionalResult type filter. Available Values: - `answer`: Answers only. - `article`: Articles only. - `zvideo`: Videos only. One of: answer, article, zvideo.
timeIntervalstringOpcionalPublish 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.
showAllTopicsstringOpcionalWhether to show all topics. Available Values: - `FALSE`: Do not show topics. - `TRUE`: Show all topics. One of: FALSE, TRUE.
Exemplo:
FALSE
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.02952/success, incluindo a taxa de serviço.