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/successAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- Latency p50
- ——
- Last verified
- 28 jul 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 | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
sort | cadena | Opcional | Sorting criteria. Available Values: - `upvoted_count`: Most upvoted. - `created_time`: Latest published. One of: upvoted_count, created_time. | |
offset | entero | Opcional | Start offset, begins with 0. | 0 |
keyword | cadena | Obligatorio | Search keywords. | 人工智能 |
vertical | cadena | Opcional | Result type filter. Available Values: - `answer`: Answers only. - `article`: Articles only. - `zvideo`: Videos only. One of: answer, article, zvideo. | |
timeInterval | cadena | 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 | cadena | 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
sortcadenaOpcionalSorting criteria. Available Values: - `upvoted_count`: Most upvoted. - `created_time`: Latest published. One of: upvoted_count, created_time.
offsetenteroOpcionalStart offset, begins with 0.
Ejemplo:
0keywordcadenaObligatorioSearch keywords.
Ejemplo:
人工智能verticalcadenaOpcionalResult type filter. Available Values: - `answer`: Answers only. - `article`: Articles only. - `zvideo`: Videos only. One of: answer, article, zvideo.
timeIntervalcadenaOpcionalPublish 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.
showAllTopicscadenaOpcionalWhether to show all topics. Available Values: - `FALSE`: Do not show topics. - `TRUE`: Show all topics. One of: FALSE, TRUE.
Ejemplo:
FALSE
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.02952/success, incluida la tarifa de servicio.