user_url_tokenstringrequerido
MUST be the user's **member hash id** (e.g. c72367...), not the url_token
https://api.sandbase.ai/v1/api/zhihu/web/user-segmentsReturns highlighted text segments and line comments for a specified Zhihu member. Supports filtering by content type along with offset pagination.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
Fetch highlighted segments and line comments left by a member using their member hash ID in user_url_token.
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/user-segments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_url_token": "<user_url_token>"}'
| Name | Type | Required | Description |
|---|---|---|---|
user_url_token | string | Yes | MUST be the user's member hash id (e.g. c72367...), not the url_token |
limit | string | No | Number per page |
offset | string | No | Offset |
content_type | string | No | Content type, all for all |
user_url_token must be the user's member hash ID rather than their standard profile URL token.limit and offset to page through results.content_type to "all" to include all supported content types.Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.
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/user-segments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'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.
user_url_tokenstringrequeridoMUST be the user's **member hash id** (e.g. c72367...), not the url_token
content_typestringContent type, all for all
limitstringNumber per page
offsetstringOffset
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Zhihu User Highlighted SegmentsEsta 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/user-segments 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.
Requeridos: user_url_token (string). Opcionales: content_type (string), 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).
No. Zhihu User Highlighted Segments 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.