# Zhihu Keyword Search API (V1)

Get Zhihu Keyword Search (V1) data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by JustOneAPI, pass parameters such as keyword, and retrieve structured data including business status code, identifier, returned highlight field, returned hit labels value, and returned index field for content research and account lookup, and integration reference.

Documentation: https://openany.si/zhihu/zhihu-keyword-search-api-v1/660eb3f5-7754-47e1-a4da-920b77b85ab6/
API ID: 660eb3f5-7754-47e1-a4da-920b77b85ab6
Provider: justoneapi
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/justoneapi/api/zhihu/search/v1
Page update time: 2026-12-03T02:51:20.852Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.030769 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:51:20.142Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "30769",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Zhihu Keyword Search (V1) API

Search for Zhihu by keyword with optional result-type, sort, time-interval, topic-display, and offset controls. Provide keyword in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Content research and account lookup**: Keep source records connected to their content and account identifiers.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `code` | Business status code |
| `data.data[].id` | Identifier |
| `data.data[].highlight` | Returned highlight field |
| `data.data[].hit_labels` | Returned hit labels value (nullable in the reference) |
| `data.data[].index` | Returned index field |
| `data.data[].object` | Returned object field |
| `data.data[].type` | Returned type field |
| `data.ab_params` | Returned ab params field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Zhihu Keyword Search API (V1) request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "keyword": {
          "type": "string",
          "description": "Search keywords."
        },
        "offset": {
          "type": "integer",
          "description": "Start offset, begins with 0.",
          "minimum": -2147483648,
          "maximum": 2147483647
        },
        "showAllTopics": {
          "type": "string",
          "description": "Whether to show all topics.\n\nAvailable Values:\n- `FALSE`: Do not show topics.\n- `TRUE`: Show all topics.",
          "enum": [
            "FALSE",
            "TRUE"
          ]
        },
        "vertical": {
          "type": "string",
          "description": "Result type filter.\n\nAvailable Values:\n- `answer`: Answers only.\n- `article`: Articles only.\n- `zvideo`: Videos only.",
          "enum": [
            "answer",
            "article",
            "zvideo"
          ]
        },
        "sort": {
          "type": "string",
          "description": "Sorting criteria.\n\nAvailable Values:\n- `upvoted_count`: Most upvoted.\n- `created_time`: Latest published.",
          "enum": [
            "upvoted_count",
            "created_time"
          ]
        },
        "timeInterval": {
          "type": "string",
          "description": "Publish time interval filter.\n\nAvailable Values:\n- `a_day`: Within one day.\n- `a_week`: Within one week.\n- `a_month`: Within one month.\n- `three_months`: Within three months.\n- `half_a_year`: Within half a year.\n- `a_year`: Within one year.",
          "enum": [
            "a_day",
            "a_week",
            "a_month",
            "three_months",
            "half_a_year",
            "a_year"
          ]
        }
      },
      "required": [
        "keyword"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "integer"
    },
    "data": {
      "type": "object",
      "properties": {
        "ab_params": {
          "type": "string"
        },
        "data": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "highlight": {
                "type": "object",
                "properties": {}
              },
              "hit_labels": {
                "type": "null"
              },
              "id": {
                "type": "string"
              },
              "index": {
                "type": "integer"
              },
              "object": {
                "type": "object",
                "properties": {
                  "attached_info_bytes": {
                    "type": "string"
                  },
                  "major_info": {
                    "type": "object",
                    "properties": {
                      "avg_salary": {
                        "type": "integer"
                      },
                      "classification": {
                        "type": "string"
                      },
                      "degree": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "discussions": {
                        "type": "object",
                        "properties": {
                          "contents": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "has_more": {
                                  "type": "boolean"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "highlight": {
                                        "type": "object",
                                        "properties": {
                                          "description": {},
                                          "title": {}
                                        }
                                      },
                                      "hit_labels": {
                                        "type": "null"
                                      },
                                      "object": {
                                        "type": "object",
                                        "properties": {
                                          "answer_count": {},
                                          "answer_type": {},
                                          "attached_info_bytes": {},
                                          "author": {},
                                          "biz_encoded_params": {},
                                          "comment_count": {},
                                          "content": {},
                                          "created_time": {},
                                          "description": {},
                                          "excerpt": {},
                                          "extra": {},
                                          "favorites_count": {},
                                          "health_tag": {},
                                          "id": {},
                                          "is_anonymous": {},
                                          "is_zhi_plus": {},
                                          "is_zhi_plus_content": {},
                                          "native": {},
                                          "question": {},
                                          "relationship": {},
                                          "settings": {},
                                          "sub_content_type": {},
                                          "thumbnail_info": {},
                                          "title": {},
                                          "type": {},
                                          "updated_time": {},
                                          "url": {},
                                          "visits_count": {},
                                          "voteup_count": {}
                                        }
                                      },
                                      "type": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                },
                                "name": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "default_tab_id": {
                            "type": "string"
                          }
                        }
                      },
                      "genre": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "top_area": {
                        "type": "string"
                      },
                      "top_industry": {
                        "type": "string"
                      },
                      "top_majors": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "top_position": {
                        "type": "string"
                      },
                      "topic_id": {
                        "type": "string"
                      },
                      "years": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "type": {
                    "type": "string"
                  }
                }
              },
              "type": {
                "type": "string"
              }
            }
          }
        },
        "domain_info": {
          "type": "object",
          "properties": {
            "first_category": {
              "type": "string"
            }
          }
        },
        "filter_items": {
          "type": "null"
        },
        "hit_labels": {
          "type": "null"
        },
        "is_brand_word": {
          "type": "boolean"
        },
        "is_koc_words": {
          "type": "boolean"
        },
        "item_in_view": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer"
              },
              "token": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            }
          }
        },
        "paging": {
          "type": "object",
          "properties": {
            "is_end": {
              "type": "boolean"
            },
            "next": {
              "type": "string"
            }
          }
        },
        "pendant": {
          "type": "object",
          "properties": {
            "ID": {
              "type": "integer"
            },
            "bottom": {
              "type": "integer"
            },
            "height": {
              "type": "integer"
            },
            "link": {
              "type": "string"
            },
            "pic": {
              "type": "string"
            },
            "right": {
              "type": "integer"
            },
            "token": {
              "type": "string"
            },
            "type": {
              "type": "string"
            },
            "width": {
              "type": "integer"
            }
          }
        },
        "related_search_result": {
          "type": "array",
          "items": {}
        },
        "search_action_info": {
          "type": "object",
          "properties": {
            "attached_info_bytes": {
              "type": "string"
            },
            "isfeed": {
              "type": "boolean"
            },
            "lc_idx": {
              "type": "integer"
            },
            "search_hash_id": {
              "type": "string"
            }
          }
        },
        "sensitive_level": {
          "type": "integer"
        },
        "strategy_res_list": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warning": {
          "type": "string"
        }
      }
    },
    "message": {
      "type": "null"
    },
    "openany_cost": {
      "type": "integer"
    },
    "recordTime": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "requestParams": {
      "type": "object",
      "properties": {
        "body": {
          "type": "null"
        },
        "query": {
          "type": "object",
          "properties": {
            "keyword": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Third-party reference · OpenAny testnet verified pair (abridged)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/justoneapi/api/zhihu/search/v1?keyword=%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Historical third-party reference. It may differ from the current provider response; verify the original contract before use.
Third-party response reference · Documented HTTP 200
```json
{
  "code": 0,
  "data": {
    "ab_params": "dm_ai_product=0;dm_ai_hot_ui=0;dm_sim_cache=0;dm_mix_ctr=0;sb_new_guess=1;dm_content_quota=3;dm_tag_t5gemma=1;sb_sku_ui=1;dm_ai_search_kl=1;dm_ai_medical=1;sb_vip_xunzhi=1;bt_member_verify=1;dm_ai_corner1=0;dm_user_follower=1;dm_l3_ctr=0;dm_l2_ab=1;dm_preset_opt=1;dm_social_boost=3;sb_newreb=1;sb_storytag=1;dm_aicard_mutex=1;dm_recency_ab=0;dm_recency_ab_tes=0;dm_v_member_zag=2;dm_test=1;sb_kvip_xz=1;sb_vip_tag=1;sb_ff=0;dm_l3_ple_exp=1;dm_med_koc=1;dm_pin_card=1;dm_mark=2;se_koc_list_box=1;sb_slot_domain=2;sb_nvip_ecpm=1;bt_vertical_mem=1;dm_pre_docs=2;dm_mix_feature=0;sb_sku_rel=1;sb_fea_0914=0;bt_holdback_2025=0;dm_router_rewrite=3;dm_correct_koc=1;dm_social_v2=0;dm_ai_hot_recall=0;dm_story_re=0;sb_cr=1;sb_zhiedu=1;dm_ai_hot_more=0;dm_question_limit=2;dm_ai_zhiplus=1;dm_chat_persona=0;dm_isocial=6;d_new_search_h2=0;dm_zr_sv=1;dm_hot_pin=1;sb_slot_time=2;sb_sku_kzh=1;dm_realtime=5;dm_correct=1;dm_paid_recency=2;dm_l1_rel=1;adflow=0;sb_koc_dht=0;sb_eduzhi=1;sb_cardfilter=1;dm_follow_boost=0;dm_hotvideo=1;dm_query_rewrite=2;dm_center_feature=1;dm_ai_prompt=1;dm_k_domain=1;sb_sku_time=1;sb_zhiad=1;dm_search_pregen=1;dm_l3_multi3=1;dm_a1_abc=0;dm_km_story=0;dm_pu_sug=0;sb_pe=0;dm_fine_rel=2;dm_ai_rerank=3;dm_ai_model=0;dm_ai_card_cache=0;dm_AI_hot_recall=0;dm_security=1;sb_caowei_4in10=1;sb_xg_search=1;sb_storyai=2;sb_domain_2025=0;dm_member_py=1;dm_related_q=0;dm_l2_snp=1;dm_ai_search_safe=1;dm_a1_suppress=0;sb_story_ca=1;sb_novel_member=1;sb_ecpmctcvr=1;dm_s_aiclarify=0",
    "data": [
      {
        "highlight": {},
        "hit_labels": null,
        "id": "0ea2cc3a-3048-402e-a710-5ab9e5fae076",
        "index": 0,
        "object": {
          "attached_info_bytes": "Os0BEiBjNGQxZWVhYjE0OTcxMDdkZjEwZWYxMWIyMGMxNGE3NBh6Sgzkurrlt6Xmmbrog71QAFgBYAFqDOS6uuW3peaZuuiDvXAEgAHE7prEtvOXA6ABAKgBALABM4ACAbgCAOICDGdhb2thb19tYWpvcooDAJIDEzIwOTYzOTY2Mjg5MjQwNDM0NziaAwCiAwkxMDFfM18zLjCIBAHgBAD6BACCBSBjNGQxZWVhYjE0OTcxMDdkZjEwZWYxMWIyMGMxNGE3NIoFBuWFtuS7lg==",
          "major_info": {
            "avg_salary": 0,
            "classification": "工学",
            "degree": [
              "工学学士"
            ],
            "discussions": {
              "contents": [
                {
                  "has_more": false,
                  "id": "experience",
                  "items": [
                    {
                      "highlight": {
                        "description": "985及以上可以去，这是一个赢者通吃很看能力的专业。985以下慎重，一堆线性代数都教不清楚的学校，开设了一堆名叫“<em>人工智能</em>”的专业罢了。",
                        "title": "<em>人工智能</em>专业前景怎么样？"
                      },
                      "hit_labels": null,
                      "object": {
                        "answer_count": 43,
                        "answer_type": "normal",
                        "attached_info_bytes": "OpkCCgtwbGFjZWhvbGRlchIgYzRkMWVlYWIxNDk3MTA3ZGYxMGVmMTFiMjBjMTRhNzQYBCIJNzY0MzUzNjAyKhMxOTkyMTY3MDIxOTg3Nzg3NDM5Mgg1NTMzMjY4NjoJNDE4NzQ3MjU4Sgzkurrlt6Xmmbrog71QAFgBYAFqDOS6uuW3peaZuuiDvXAEgAHE7prEtvOXA5gBAKABAKgBALABM9AB/u/2ygbYARLgAQSAAgG4AgCKAwCSAxMyMDk2Mzk2NjI4OTI0MDQzNDc4mgMAogMJMTAxXzNfMy4wqgMAiAQB3QQAAAAA4AQA+gQAggUgYzRkMWVlYWIxNDk3MTA3ZGYxMGVmMTFiMjBjMTRhNzSKBQblhbbku5Y=",
                        "author": {
                          "authority_info": null,
                          "avatar_url": "https://picx.zhimg.com/50/v2-687e9d0a8ef814155e9c326283d50b68_l.jpg?source=4e949a73",
                          "badge": [],
                          "badge_v2": {
                            "detail_badges": [],
                            "icon": "",
                            "merged_badges": [],
                            "night_icon": "",
                            "title": ""
                          },
                          "badge_v2_string": "{\"title\":\"\",\"merged_badges\":[],\"detail_badges\":null,\"icon\":\"\",\"night_icon\":\"\"}",
                          "follower_count": 5,
                          "gender": 1,
                          "headline": "万物有灵。",
                          "id": "e5fdb141b2286fc6cd9a95ac7f44c693",
                          "is_followed": false,
                          "is_following": false,
                          "name": "Jerome",
                          "topic_bayes_map": null,
                          "topic_map": {},
                          "type": "people",
                          "url": "https://api.zhihu.com/people/e5fdb141b2286fc6cd9a95ac7f44c693",
                          "url_token": "jie-li-90",
                          "user_type": "people",
                          "verify_bayes": "",
                          "voteup_count": 21
                        },
                        "biz_encoded_params": "sw%3D%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD",
                        "comment_count": 4,
                        "content": "<p data-pid=\"12yf8I3e\">985及以上可以去，这是一个赢者通吃很看能力的专业。985以下慎重，一堆线性代数都教不清楚的学校，开设了一堆名叫“人工智能”的专业罢了。</p>",
                        "created_time": 1767749630,
                        "description": "",
                        "excerpt": "985及以上可以去，这是一个赢者通吃很看能力的专业。985以下慎重，一堆线性代数都教不清楚的学校，开设了一堆名叫“<em>人工智能</em>”的专业罢了。",
                        "extra": "",
                        "favorites_count": 9,
                        "health_tag": "",
                        "id": "1992167021987787439",
                        "is_anonymous": false,
                        "is_zhi_plus": false,
                        "is_zhi_plus_content": false,
                        "native": 0,
                        "question": {
                          "answer_count": 0,
                          "attached_info_bytes": "",
                          "follow_count": 0,
                          "id": "418747258",
                          "name": "<em>人工智能</em>专业前景怎么样？",
                          "type": "question",
                          "url": "https://api.zhihu.com/questions/418747258"
                        },
                        "relationship": {
                          "following_collect": [],
                          "following_collect_count": 0,
                          "following_upvoter": [],
                          "following_upvoter_count": 0,
                          "high_level_creator": [],
                          "high_level_creator_count": 0,
                          "is_author": false,
                          "is_following": false,
                          "is_nothelp": false,
                          "is_thanked": false,
                          "voting": 0
                        },
                        "settings": {
                          "table_of_contents": {
                            "enabled": false
                          }
                        },
                        "sub_content_type": "",
                        "thumbnail_info": {
                          "count": 0,
                          "thumbnails": [],
                          "total_count": 0,
                          "type": "thumbnail_info"
                        },
                        "title": "人工智能专业前景怎么样？",
                        "type": "answer",
                        "updated_time": 1767749680,
                        "url": "https://api.zhihu.com/answers/1992167021987787439",
                        "visits_count": 331924,
                        "voteup_count": 18
                      },
                      "type": "search_result"
                    }
                  ],
                  "name": "就读体验"
                }
              ],
              "default_tab_id": "experience"
            },
            "genre": [
              "本科"
            ],
            "id": "0ea2cc3a-3048-402e-a710-5ab9e5fae076",
            "name": "<em>人工智能</em>",
            "top_area": "",
            "top_industry": "",
            "top_majors": [
              {
                "name": "一门计算机语言（Java/C++/Python 之类)和算法"
              }
            ],
            "top_position": "",
            "topic_id": "21299918",
            "years": [
              "四年"
            ]
          },
          "type": "major"
        },
        "type": "gaokao"
      }
    ],
    "domain_info": {
      "first_category": "科技"
    },
    "filter_items": null,
    "hit_labels": null,
    "is_brand_word": false,
    "is_koc_words": false,
    "item_in_view": [
      {
        "index": 5,
        "token": "[REDACTED]",
        "type": "user_survey"
      }
    ],
    "paging": {
      "is_end": false,
      "next": "https://api.zhihu.com/search_v3?advert_count=0&correction=1&filter_fields=&gk_version=gz-gaokao&lc_idx=0&limit=20&offset=20&q=%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD&search_hash_id=c4d1eeab1497107df10ef11b20c14a74&search_source=Normal&show_all_topics=0&sort=&t=general&time_interval=&vertical=&vertical_info=0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C2%2C0%2C0"
    },
    "pendant": {
      "ID": 80,
      "bottom": 80,
      "height": 100,
      "link": "https://curiosity.event.zhihu.com/page/",
      "pic": "https://pic1.zhimg.com/v2-ffaa528b5f87740cc69b4b44bf8a2cf1.png",
      "right": 0,
      "token": "[REDACTED]",
      "type": "custom",
      "width": 100
    },
    "related_search_result": [],
    "search_action_info": {
      "attached_info_bytes": "OrABEiBjNGQxZWVhYjE0OTcxMDdkZjEwZWYxMWIyMGMxNGE3NEoM5Lq65bel5pm66IO9UABYAWABagzkurrlt6Xmmbrog71wBIABxO6axLbzlwOAAgG4AgCKAwCSAxMyMDk2Mzk2NjI4OTI0MDQzNDc4mgMAogMJMTAxXzNfMy4w4AQA+gQAggUgYzRkMWVlYWIxNDk3MTA3ZGYxMGVmMTFiMjBjMTRhNzSKBQblhbbku5Y=",
      "isfeed": false,
      "lc_idx": 20,
      "search_hash_id": "c4d1eeab1497107df10ef11b20c14a74"
    },
    "sensitive_level": -1,
    "strategy_res_list": [
      "ac_ai_card"
    ],
    "warning": ""
  },
  "message": null,
  "openany_cost": 30769,
  "recordTime": "2026-11-06T21:15:41.05365108",
  "requestId": "6bef38115ec34ed0907232ebeb9c834f",
  "requestParams": {
    "body": null,
    "query": {
      "keyword": "人工智能"
    }
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide keyword in query (string). Keep identifiers and URLs in the formats documented for this implementation.

### Which pagination or result-size inputs are exposed?
offset is integer with minimum -2147483648 and maximum 2147483647. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

### Which values can I use for showAllTopics?
The selected schema accepts FALSE, TRUE. Keep the documented string type and exact spelling for this input.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- justoneapi: https://openany.si/zhihu/zhihu-keyword-search-api-v1/660eb3f5-7754-47e1-a4da-920b77b85ab6/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
