Zhihu Search Recommendations
https://api.sandbase.ai/v1/api/zhihu/web/search-recommendReturns recommended search queries and trending suggestions from Zhihu Web. Helps discover popular topics and keywords without providing input search criteria.
- Giá
- $0.001USD / lượt gọi
- Phương thức
- POST
- Phản hồi
- JSON
- Tham số
- 0 bắt buộc · 0 tùy chọn
Phòng thử nghiệm
[
{
"data": {
"offset": 0,
"recommend_queries": {
"attached_info": "OkaCAyA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NPIDIGI1NTU4NDViNzRjYzE5MjBmZDU4M2YzYTJjMmE0MjZk",
"queries": [
{
"attached_info": "OkaCAyA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NPIDIGI1NTU4NDViNzRjYzE5MjBmZDU4M2YzYTJjMmE0MjZk8gJyCiA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NDoV5q2m5aWR5aWH5a6j5biD6L6e6IGMQABIAFIIVHJlbmRpbmdd72GXSnIkMDhhOWNjN2MtNzM3YS00OWJjLWJkYjctOWMyODlmNjg0YWIx",
"from_scene": "",
"image_item": {
"height": 14,
"icon_url": "hot",
"width": 16
},
"label": "hot",
"query": "武契奇宣布辞职",
"query_color": "",
"query_display": "武契奇宣布辞职",
"query_id": 0,
"real_query": "武契奇宣布辞职",
"redirect_link": "",
"request_click_id": "08a9cc7c-737a-49bc-bdb7-9c289f684ab1",
"str_query_id": "",
"type": "normal",
"uuid": "5bc02c89-ef3b-4c9b-a9a7-a5e51b2a3095"
},
{
"attached_info": "OkaCAyA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NPIDIGI1NTU4NDViNzRjYzE5MjBmZDU4M2YzYTJjMmE0MjZk8gJ7CiA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NDoe5p2c5rez5aa75a2Q546L54G/6KKr6aqX54GM6IKgQABIAVIIVHJlbmRpbmddkxCQSnIkMDhhOWNjN2MtNzM3YS00OWJjLWJkYjctOWMyODlmNjg0YWIx",
"from_scene": "",
"image_item": {
"height": 14,
"icon_url": "hot",
"width": 16
},
"label": "hot",
"query": "杜淳妻子王灿被骗灌肠",
"query_color": "",
"query_display": "杜淳妻子王灿被骗灌肠",
"query_id": 0,
"real_query": "杜淳妻子王灿被骗灌肠",
"redirect_link": "",
"request_click_id": "08a9cc7c-737a-49bc-bdb7-9c289f684ab1",
"str_query_id": "",
"type": "normal",
"uuid": "a7a3a8ab-5ca0-45e3-a671-e07aa1c374a9"
},
{
"attached_info": "OkaCAyA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NPIDIGI1NTU4NDViNzRjYzE5MjBmZDU4M2YzYTJjMmE0MjZk8gJ6CiA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NDod5p6X6K+X5qCLIDQtMCDnjovmpZrpkqblpLrph5FAAEgCUghUcmVuZGluZ1172nJKciQwOGE5Y2M3Yy03MzdhLTQ5YmMtYmRiNy05YzI4OWY2ODRhYjE=",
"from_scene": "",
"image_item": {
"height": 14,
"icon_url": "hot",
"width": 16
},
"label": "hot",
"query": "林诗栋 4-0 王楚钦夺金",
"query_color": "",
"query_display": "林诗栋 4-0 王楚钦夺金",
"query_id": 0,
"real_query": "林诗栋 4-0 王楚钦夺金",
"redirect_link": "",
"request_click_id": "08a9cc7c-737a-49bc-bdb7-9c289f684ab1",
"str_query_id": "",
"type": "normal",
"uuid": "a9806277-b456-4b15-9093-918c73a6e67d"
},
"… 9 more items in the full response"
],
"recommend_hash_id": "9b59df1f0d6ac7cb613a9ab120da3864"
},
"search_hash_id": "",
"switch_off": false
}
}
]Ví dụ
Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
README API
Zhihu Search Recommendations API
Returns a list of recommended search queries from Zhihu Web. It takes no input, so you send an empty JSON object {}.
Use cases
- Show the search phrases Zhihu currently recommends on its search entry page.
- Track which news topics appear as recommended queries and which carry the
newlabel. - Collect recommended phrases as seed keywords for topic or content research.
- Feed a recommended phrase into a keyword search to find the posts behind it.
Request
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/search-recommend" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"offset": 0,
"recommend_queries": {
"attached_info": "OkaCAyA2NjRhZDk1Y2E1ZWJmM2NlMjIwZGYzZjM0MjBmNjI5YfIDIDRlZDk4YjhlZTdjNDYwYjc5OTA3…",
"queries": [
{
"attached_info": "OkaCAyA2NjRhZDk1Y2E1ZWJmM2NlMjIwZGYzZjM0MjBmNjI5YfIDIDRlZDk4YjhlZTdjNDYwYjc5OTA3…",
"from_scene": "",
"query": "将有两名中国人登陆月球",
"query_color": "",
"query_display": "将有两名中国人登陆月球",
"query_id": 0,
"real_query": "将有两名中国人登陆月球",
"redirect_link": "",
"request_click_id": "6488e8b0-5a28-48b1-be7c-585d8be83ef8",
"str_query_id": "",
"type": "normal",
"uuid": "0da2b799-c498-4975-a2da-71a4b3e56938"
}
],
"recommend_hash_id": "664ad95ca5ebf3ce220df3f3420f629a"
},
"search_hash_id": "",
"switch_off": false
}
Response fields
| Field | Meaning |
|---|---|
recommend_queries.queries[] | The list of recommended search queries. Each item is one suggested phrase. |
recommend_queries.queries[].query / query_display / real_query | The text of the suggested query. In the sample all three hold the same phrase. |
recommend_queries.queries[].label | A tag on some queries. The sample shows new. Items without a tag have no label key. |
recommend_queries.queries[].image_item.icon_url | URL of a small icon shown next to the query. image_item.width and image_item.height give its size values. |
recommend_queries.queries[].type | The query type. The sample value is normal. |
recommend_queries.queries[].uuid | A unique ID string for each recommended query. |
recommend_queries.queries[].request_click_id | An ID shared by all queries in the same response. |
recommend_queries.queries[].attached_info / recommend_queries.attached_info | Encoded tracking strings attached to each query and to the whole list. |
recommend_queries.recommend_hash_id | A hash ID for this set of recommendations. |
switch_off | A boolean flag. The sample value is false. |
Notes
- The request has no parameters. Send
{}as the body. query_idis0andredirect_linkis empty in the sample, so use thequerytext as the identifier for the phrase.- To search with a returned phrase, pass its
querytext to Zhihu Article Search. - For the current trending questions, see Zhihu Hot List.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Gửi request đầu tiên của bạn
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/search-recommend" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Xác thực
Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
3. Tham số
Chưa có schema tham số nào được công bố cho API này.
4. Phản hồi
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"offset": 0,
"recommend_queries": {
"attached_info": "OkaCAyA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NPIDIGI1NTU4NDViNzRjYzE5MjBmZDU4M2YzYTJjMmE0MjZk",
"queries": [
{
"attached_info": "OkaCAyA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NPIDIGI1NTU4NDViNzRjYzE5MjBmZDU4M2YzYTJjMmE0MjZk8gJyCiA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NDoV5q2m5aWR5aWH5a6j5biD6L6e6IGMQABIAFIIVHJlbmRpbmdd72GXSnIkMDhhOWNjN2MtNzM3YS00OWJjLWJkYjctOWMyODlmNjg0YWIx",
"from_scene": "",
"image_item": {
"height": 14,
"icon_url": "hot",
"width": 16
},
"label": "hot",
"query": "武契奇宣布辞职",
"query_color": "",
"query_display": "武契奇宣布辞职",
"query_id": 0,
"real_query": "武契奇宣布辞职",
"redirect_link": "",
"request_click_id": "08a9cc7c-737a-49bc-bdb7-9c289f684ab1",
"str_query_id": "",
"type": "normal",
"uuid": "5bc02c89-ef3b-4c9b-a9a7-a5e51b2a3095"
},
{
"attached_info": "OkaCAyA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NPIDIGI1NTU4NDViNzRjYzE5MjBmZDU4M2YzYTJjMmE0MjZk8gJ7CiA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NDoe5p2c5rez5aa75a2Q546L54G/6KKr6aqX54GM6IKgQABIAVIIVHJlbmRpbmddkxCQSnIkMDhhOWNjN2MtNzM3YS00OWJjLWJkYjctOWMyODlmNjg0YWIx",
"from_scene": "",
"image_item": {
"height": 14,
"icon_url": "hot",
"width": 16
},
"label": "hot",
"query": "杜淳妻子王灿被骗灌肠",
"query_color": "",
"query_display": "杜淳妻子王灿被骗灌肠",
"query_id": 0,
"real_query": "杜淳妻子王灿被骗灌肠",
"redirect_link": "",
"request_click_id": "08a9cc7c-737a-49bc-bdb7-9c289f684ab1",
"str_query_id": "",
"type": "normal",
"uuid": "a7a3a8ab-5ca0-45e3-a671-e07aa1c374a9"
},
{
"attached_info": "OkaCAyA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NPIDIGI1NTU4NDViNzRjYzE5MjBmZDU4M2YzYTJjMmE0MjZk8gJ6CiA5YjU5ZGYxZjBkNmFjN2NiNjEzYTlhYjEyMGRhMzg2NDod5p6X6K+X5qCLIDQtMCDnjovmpZrpkqblpLrph5FAAEgCUghUcmVuZGluZ1172nJKciQwOGE5Y2M3Yy03MzdhLTQ5YmMtYmRiNy05YzI4OWY2ODRhYjE=",
"from_scene": "",
"image_item": {
"height": 14,
"icon_url": "hot",
"width": 16
},
"label": "hot",
"query": "林诗栋 4-0 王楚钦夺金",
"query_color": "",
"query_display": "林诗栋 4-0 王楚钦夺金",
"query_id": 0,
"real_query": "林诗栋 4-0 王楚钦夺金",
"redirect_link": "",
"request_click_id": "08a9cc7c-737a-49bc-bdb7-9c289f684ab1",
"str_query_id": "",
"type": "normal",
"uuid": "a9806277-b456-4b15-9093-918c73a6e67d"
},
"… 9 more items in the full response"
],
"recommend_hash_id": "9b59df1f0d6ac7cb613a9ab120da3864"
},
"search_hash_id": "",
"switch_off": false
}
}
]Khám phá thêm
APIs liên quan
| API | Giá | Phản hồi |
|---|---|---|
Zhihu Search RecommendationsAPI này Zhihu | $0.001 mỗi lần gọi | JSON |
Zhihu | $0.005 mỗi lần gọi | JSON |
Zhihu | $0.001 mỗi lần gọi | JSON |
Zhihu | $0.001 mỗi lần gọi | JSON |
Zhihu | $0.001 mỗi lần gọi | JSON |
Zhihu | $0.001 mỗi lần gọi | JSON |
Hướng dẫn:Best Zhihu API in 2026: Pricing Compared
Câu hỏi
FAQ
Làm thế nào để dùng API Zhihu Search Recommendations?
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/zhihu/web/search-recommend với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
API Zhihu Search Recommendations có giá bao nhiêu?
$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
API Zhihu Search Recommendations chấp nhận những tham số nào?
Zhihu Search Recommendations không nhận tham số đầu vào; hãy gửi một phần thân JSON rỗng.
API Zhihu Search Recommendations trả về gì?
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Tôi có cần tài khoản nhà phát triển hoặc API key của Zhihu không?
Không. Zhihu Search Recommendations chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Zhihu.
