Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Zhihu Search Suggestions

APIドキュメント
https://api.sandbase.ai/v1/api/zhihu/web/search-suggest

Returns search query suggestions and related topics from Zhihu based on a specified search keyword.

料金
$0.001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件
毎日 100 回まで無料1日あたり最初の 100 回は無料です(組織内で共有)· 00:00 UTC にリセットされます。それ以降は従量課金です。

プレイグラウンド

入力
Search Keywords
出力例
レスポンスoutputs · 1.9 KB · 47 行
[
  {
    "data": {
      "attached_info": "OioSIDgwYjRkZTZiOTg2NDU5YzNmZDgxZWE3NmE1YzAwMTEwagZPcGVuQUk=",
      "input_hash_id": "80b4de6b986459c3fd81ea76a5c00110",
      "suggest": [
        {
          "attached_info": "OioSIDgwYjRkZTZiOTg2NDU5YzNmZDgxZWE3NmE1YzAwMTEwagZPcGVuQUnyAksKIDgwYjRkZTZiOTg2NDU5YzNmZDgxZWE3NmE1YzAwMTEwKgZPcGVuQUk6Bk9wZW5BSUAASABSDmFjdGl2aXR5X3RvcGljXQAAAAA=",
          "height": 14,
          "icon_url": "https://picx.zhimg.com/80/v2-14647b51c955b4cd339e3f2150d45b9a_1440w.png",
          "id": -2962146858830793000,
          "label": "activity_topic",
          "query": "OpenAI",
          "raw_id": "-2962146858830793432",
          "tab_type": "general",
          "target_url": "",
          "width": 26
        },
        {
          "attached_info": "OioSIDgwYjRkZTZiOTg2NDU5YzNmZDgxZWE3NmE1YzAwMTEwagZPcGVuQUnyAmEKIDgwYjRkZTZiOTg2NDU5YzNmZDgxZWE3NmE1YzAwMTEwKgZPcGVuQUk6F09wZW5BSeWuo+W4gzI45aSp6K6h5YiSQABIAVITc2FwcGhpcmVfaG90X3JlY2FsbF0AAAAA",
          "height": 15,
          "icon_url": "https://picx.zhimg.com/v2-31e3b0a5b920d516c5813145d88397b1.png",
          "id": 5175751213069824000,
          "label": "hot",
          "query": "OpenAI宣布28天计划",
          "raw_id": "5175751213069824116",
          "tab_type": "general",
          "target_url": "",
          "width": 16
        },
        {
          "attached_info": "OioSIDgwYjRkZTZiOTg2NDU5YzNmZDgxZWE3NmE1YzAwMTEwagZPcGVuQUnyAmwKIDgwYjRkZTZiOTg2NDU5YzNmZDgxZWE3NmE1YzAwMTEwKgZPcGVuQUk6G29wZW5haeaZuuiDveS9k+mAg+mAuOS6i+S7tkAASAJSGnN1Z19wcmVmaXhfZGFpbHlfcmVjYWxsX3YyXQAAAAA=",
          "height": 0,
          "icon_url": "",
          "id": 7635419512257695000,
          "label": "",
          "query": "openai智能体逃逸事件",
          "raw_id": "7635419512257694873",
          "tab_type": "general",
          "target_url": "",
          "width": 0
        },
        "… 7 more items in the full response"
      ]
    }
  }
]

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

API README

Zhihu Search Suggestions API

Returns a list of Zhihu search suggestions for a keyword. It needs one input, keyword, and returns the suggested queries with an ID, a tab type and an optional label and icon for each.

Use cases

  • Fill a search box with Zhihu autocomplete suggestions as a user types.
  • Collect the long-tail queries people use around a brand or topic such as OpenAI.
  • Spot trending phrasing around a keyword to plan content titles.
  • Seed a keyword list, then run each suggestion through a Zhihu search API.

Request

curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/search-suggest" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "OpenAI"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch Keywords

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "attached_info": "OioSIDQ5NDM5NGJhY2Y1MDIwNTQ4NDIzNDczMDA4ZDBhMDM0agZPcGVuQUk=",
  "input_hash_id": "494394bacf5020548423473008d0a034",
  "suggest": [
    {
      "attached_info": "OioSIDQ5NDM5NGJhY2Y1MDIwNTQ4NDIzNDczMDA4ZDBhMDM0agZPcGVuQUnyAksKIDQ5NDM5NGJhY2Y1…",
      "height": 14,
      "icon_url": "https://picx.zhimg.com/80/v2-14647b51c955b4cd339e3f2150d45b9a_1440w.png",
      "id": -2962146858830793432,
      "label": "activity_topic",
      "query": "OpenAI",
      "raw_id": "-2962146858830793432",
      "tab_type": "general",
      "target_url": "",
      "width": 26
    }
  ]
}

Response fields

FieldMeaning
suggest[]List of suggestion entries for the keyword, in the order returned.
suggest[].queryThe suggested search phrase as plain text.
suggest[].id / suggest[].raw_idIdentifier of the suggestion. raw_id is the same number as a string, which is safer for tools that lose precision on large integers.
suggest[].labelType tag for the suggestion. A value such as activity_topic marks a topic entry. It is an empty string on plain query suggestions.
suggest[].tab_typeSearch tab the suggestion belongs to. The sample entries all return general.
suggest[].icon_url / suggest[].width / suggest[].heightIcon image for the suggestion with its size. Plain query suggestions return an empty icon_url and 0 for both sizes.
suggest[].target_urlLink target for the suggestion. It is an empty string in the sample.
suggest[].attached_infoOpaque token attached to each suggestion. Pass it unchanged if you need to refer back to it.
input_hash_idHash string that identifies the input keyword.

Notes

  • keyword is the only parameter and it is required. Send the text the user has typed so far.
  • Large id values can exceed the safe integer range in some languages. Use raw_id when you need an exact value.
  • To search content for a suggested phrase, pass it to Zhihu Article Search or Zhihu Topic Search (V3).

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Zhihu$0.001 / 回JSON
Zhihu$0.005 / 回JSON
Zhihu$0.001 / 回JSON
Zhihu$0.001 / 回JSON
Zhihu$0.001 / 回JSON
Zhihu$0.001 / 回JSON

ガイド:Best Zhihu API in 2026: Pricing Compared

質問

FAQ

Zhihu Search Suggestions API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/zhihu/web/search-suggest に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Zhihu Search Suggestions API の料金はいくらですか?

1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。

Zhihu Search Suggestions API はどのパラメータを受け付けますか?

必須: keyword (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Zhihu Search Suggestions API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Zhihu の開発者アカウントまたは API key は必要ですか?

いいえ。Zhihu Search Suggestions は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Zhihu の API アクセスを別途申請する必要はありません。