limitstring
Number of videos per page
Valor predeterminado: "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
}
}
}
]Seleccione un ejemplo para cargar sus entradas y el resultado en el 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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
limitstringNumber of videos per page
Valor predeterminado: "12"
offsetstringOffset
Valor predeterminado: "0"
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
[
{
"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
}
}
}
]Explorar más
| API | Precio | Respuesta |
|---|---|---|
Zhihu Video ListEsta API Zhihu | $0.001 por llamada | JSON |
Zhihu | $0.005 por llamada | JSON |
Zhihu | $0.001 por llamada | JSON |
Zhihu | $0.001 por llamada | JSON |
Zhihu | $0.001 por llamada | JSON |
Zhihu | $0.001 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/zhihu/web/video-list con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
No se requieren parámetros. Opcionales: limit (string) y offset (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Zhihu Video List funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Zhihu por separado.