user_url_tokenstringobrigatório
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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento 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 '{}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
user_url_tokenstringobrigatórioMUST be the user's **member hash id** (e.g. c72367...), not the url_token
content_typestringContent type, all for all
limitstringNumber per page
offsetstringOffset
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Zhihu User Highlighted SegmentsEsta API Zhihu | $0.001 por chamada | JSON |
Zhihu | $0.005 por chamada | JSON |
Zhihu | $0.001 por chamada | JSON |
Zhihu | $0.001 por chamada | JSON |
Zhihu | $0.001 por chamada | JSON |
Zhihu | $0.001 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/zhihu/web/user-segments com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.001 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: user_url_token (string). Opcionais: content_type (string), limit (string) e offset (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona).
Não. Zhihu User Highlighted Segments funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Zhihu separadamente.