keywordstring필수
Search Keywords
https://api.sandbase.ai/v1/api/zhihu/web/search-suggestReturns search query suggestions and related topics from Zhihu based on a specified search keyword.
[
{
"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"
]
}
}
]예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
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.
OpenAI.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.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search Keywords |
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
}
]
}
| Field | Meaning |
|---|---|
suggest[] | List of suggestion entries for the keyword, in the order returned. |
suggest[].query | The suggested search phrase as plain text. |
suggest[].id / suggest[].raw_id | Identifier of the suggestion. raw_id is the same number as a string, which is safer for tools that lose precision on large integers. |
suggest[].label | Type 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_type | Search tab the suggestion belongs to. The sample entries all return general. |
suggest[].icon_url / suggest[].width / suggest[].height | Icon image for the suggestion with its size. Plain query suggestions return an empty icon_url and 0 for both sizes. |
suggest[].target_url | Link target for the suggestion. It is an empty string in the sample. |
suggest[].attached_info | Opaque token attached to each suggestion. Pass it unchanged if you need to refer back to it. |
input_hash_id | Hash string that identifies the input keyword. |
keyword is the only parameter and it is required. Send the text the user has typed so far.id values can exceed the safe integer range in some languages. Use raw_id when you need an exact value.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
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"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
keywordstring필수Search Keywords
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"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 | 가격 | 응답 |
|---|---|---|
Zhihu | $0.001 / 호출 | JSON |
Zhihu | $0.005 / 호출 | JSON |
Zhihu | $0.001 / 호출 | JSON |
Zhihu | $0.001 / 호출 | JSON |
Zhihu | $0.001 / 호출 | JSON |
Zhihu | $0.001 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/zhihu/web/search-suggest에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.001. 모든 조직은 UTC 기준 하루에 100회의 무료 호출을 받으며, 이 API를 포함한 사용 가능 SandBase API 전반에서 공유됩니다. 이후에는 각 호출이 SandBase 잔액에서 이 요금으로 청구됩니다. 구독은 없습니다.
필수: keyword (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Zhihu Search Suggestions은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Zhihu API 액세스를 별도로 신청할 필요는 없습니다.