keywordstring필수
Search Keywords
https://api.sandbase.ai/v1/api/zhihu/web/video-search-v3Returns Zhihu video search results matching a specified keyword. Supports pagination using offset and limit parameters, and accepts a search hash ID.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
Returns Zhihu search results for a keyword, mostly video entries with title, author, cover image and comment count. The only required input is keyword. Results page with offset and limit.
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/video-search-v3" \
-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 |
limit | string | No | Number of videos per page |
offset | string | No | Offset |
search_hash_id | string | No | Search Hash ID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"ab_params": "sb_cardfilter=1;dm_center_feature=1;dm_hotvideo=0;dm_paid_recency=0;dm_l1_rel=0;…",
"data": [
{
"highlight": {
"creator": "太空就是我",
"description": "目前看用低端设备也能跑#<em>openai</em> #chatgpt #人工智能",
"title": "聊聊<em>OpenAi</em>"
},
"hit_labels": null,
"id": "1789796275463544832",
"index": 0,
"object": {
"attached_info_bytes": "OpECCgtwbGFjZWhvbGRlchIgM2U0OWQ5ODY2OGJkMDc0NDhkMzQzNjYyZWViNDQzYzQYYyITMTc4OTc5…",
"author": {
"authority_info": [],
"avatar_url": "https://pica.zhimg.com/50/v2-518e0f06c688a3657539e130dcdf6d5a_l.jpg?source=4e949…",
"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": 489,
"gender": 1,
"headline": "破繭尋光 選擇美麗"
},
"badge": [],
"badge_v2": {
"detail_badges": [],
"icon": "",
"merged_badges": [],
"night_icon": "",
"title": ""
},
"badge_v2_string": "{\"title\":\"\",\"merged_badges\":[],\"detail_badges\":null,\"icon\":\"\",\"night_icon\":\"\"}",
"comment_count": 0,
"cover_info": {
"data_url": "",
"height": 1920,
"type": "image",
"url": "https://picx.zhimg.com/80/v2-3d1e45814a107d146ae472b01ef5b199_qhd.jpg?source=4e9…",
"width": 1080
},
"cover_url": "https://picx.zhimg.com/v2-3d1e45814a107d146ae472b01ef5b199.jpg?source=4e949a73"
},
"type": "zvideo"
}
],
"domain_info": {
"first_category": ""
},
"filter_items": null,
"hit_labels": null,
"is_brand_word": false,
"is_koc_words": false,
"item_in_view": [
{
"index": 5,
"token": "b62a7302…",
"type": "user_survey"
}
],
"paging": {
"is_end": false,
"next": "https://api.zhihu.com/search_v3?advert_count=0&correction=1&filter_fields=%7B%27…"
},
"pendant": null,
"related_search_result": [],
"search_action_info": {
"attached_info_bytes": "OqQBEiAzZTQ5ZDk4NjY4YmQwNzQ0OGQzNDM2NjJlZWI0NDNjNEoGb3BlbmFpUABYFGABagZPcGVuQUlw…",
"isfeed": false,
"lc_idx": 20,
"search_hash_id": "3e49d98668bd07448d343662eeb443c4"
}
}
| Field | Meaning |
|---|---|
data[].type | Kind of result. zvideo marks a video entry. search_result marks a text post that can embed a video. |
data[].id | ID of the result as a string. |
data[].highlight.title / data[].highlight.description / data[].highlight.creator | Title, description and creator name with the matched keyword wrapped in <em> tags. |
data[].object.author.follower_count | Number of followers of the video author. |
data[].object.author.headline | Short profile line of the author. |
data[].object.comment_count | Number of comments on the item. |
data[].object.cover_url | URL of the cover image for the item. |
data[].object.created_time | Creation time of a search_result item. It looks like a Unix timestamp in seconds. |
data[].object.content[].playlist[] | Video files for an embedded video, each with quality, format, height, bitrate, size and url. |
search_action_info.search_hash_id | Hash ID for this search. You can pass it back in search_hash_id on later requests. |
paging.is_end | Tells you whether the last page has been reached. paging.next holds the URL for the next page. |
offset and limit to move through pages. Check paging.is_end to know when to stop.zvideo entries with search_result entries, so check data[].type before you read fields. Fields such as cover_info appear on videos, while content and excerpt appear on text posts.$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/video-search-v3" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": "20",
"offset": "0",
"keyword": "OpenAI",
"search_hash_id": ""
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
keywordstring필수Search Keywords
limitstringNumber of videos per page
기본값: "20"
offsetstringOffset
기본값: "0"
search_hash_idstringSearch Hash ID
기본값: ""
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| 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/video-search-v3에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: keyword (string). 선택: limit (string), offset (string) 및 search_hash_id (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Zhihu Video Search (V3)은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Zhihu API 액세스를 별도로 신청할 필요는 없습니다.