limitstring
Number of videos per page
ค่าเริ่มต้น: "12"
https://api.sandbase.ai/v1/api/zhihu/web/video-listRetrieves a paginated list of videos from the Zhihu web platform. Supports pagination controls through page size and offset index parameters.
[
{
"data": {
"data": [],
"paging": {
"is_end": false,
"is_start": true,
"next": "https://www.zhihu.com/api/v4/zvideo-tabs/tabs/choice/feeds/recommend?include=creation_relationship&limit=12&offset=12&trans=",
"previous": "",
"totals": 0
}
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns a page of videos from the Zhihu recommended video feed. It takes no required input. You can set limit for page size and offset for the start position.
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/video-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
limit | string | No | Number of videos per page |
offset | string | No | Offset |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [],
"paging": {
"is_end": false,
"is_start": true,
"next": "https://www.zhihu.com/api/v4/zvideo-tabs/tabs/choice/feeds/recommend?include=cre…",
"previous": "",
"totals": 0
}
}
| Field | Meaning |
|---|---|
data[] | List of video entries on the current page. It was empty in the sample response, so check the length before reading items. |
paging.is_end | true when there are no more pages after this one. |
paging.is_start | true when this is the first page of the list. |
paging.next | URL of the next page. It includes limit=12 and offset=12 as query values. |
paging.previous | URL of the previous page. It is an empty string on the first page. |
paging.totals | Total count reported for the list. It was 0 in the sample response. |
limit and offset are sent as strings. The defaults are 12 and 0.limit to offset and call again. The paging.next URL shows the same values.paging.is_end is true.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/video-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": "12",
"offset": "0"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
limitstringNumber of videos per page
ค่าเริ่มต้น: "12"
offsetstringOffset
ค่าเริ่มต้น: "0"
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"data": [],
"paging": {
"is_end": false,
"is_start": true,
"next": "https://www.zhihu.com/api/v4/zvideo-tabs/tabs/choice/feeds/recommend?include=creation_relationship&limit=12&offset=12&trans=",
"previous": "",
"totals": 0
}
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Zhihu Video ListAPI นี้ Zhihu | $0.001 ต่อการเรียก | JSON |
Zhihu | $0.005 ต่อการเรียก | JSON |
Zhihu | $0.001 ต่อการเรียก | JSON |
Zhihu | $0.001 ต่อการเรียก | JSON |
Zhihu | $0.001 ต่อการเรียก | JSON |
Zhihu | $0.001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/zhihu/web/video-list โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: limit (string) และ offset (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Zhihu Video List ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Zhihu API แยกต่างหาก