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/successAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- Latency p50
- ——
- Last verified
- 28 juil. 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
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
sort | chaîne | Facultatif | Sorting criteria. Available Values: - `upvoted_count`: Most upvoted. - `created_time`: Latest published. One of: upvoted_count, created_time. | |
offset | entier | Facultatif | Start offset, begins with 0. | 0 |
keyword | chaîne | Obligatoire | Search keywords. | 人工智能 |
vertical | chaîne | Facultatif | Result type filter. Available Values: - `answer`: Answers only. - `article`: Articles only. - `zvideo`: Videos only. One of: answer, article, zvideo. | |
timeInterval | chaîne | Facultatif | 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 | chaîne | Facultatif | Whether to show all topics. Available Values: - `FALSE`: Do not show topics. - `TRUE`: Show all topics. One of: FALSE, TRUE. | FALSE |
- Paramètres de requête
sortchaîneFacultatifSorting criteria. Available Values: - `upvoted_count`: Most upvoted. - `created_time`: Latest published. One of: upvoted_count, created_time.
offsetentierFacultatifStart offset, begins with 0.
Exemple :
0keywordchaîneObligatoireSearch keywords.
Exemple :
人工智能verticalchaîneFacultatifResult type filter. Available Values: - `answer`: Answers only. - `article`: Articles only. - `zvideo`: Videos only. One of: answer, article, zvideo.
timeIntervalchaîneFacultatifPublish 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.
showAllTopicschaîneFacultatifWhether to show all topics. Available Values: - `FALSE`: Do not show topics. - `TRUE`: Show all topics. One of: FALSE, TRUE.
Exemple :
FALSE
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.02952/success, frais de service inclus.