user_url_tokenstringobrigatório
User ID
https://api.sandbase.ai/v1/api/zhihu/web/user-pinsReturns a list of pins or moments posted by a specific Zhihu user. Supports pagination controls using offset and limit parameters.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Returns a page of pins (short posts or moments) published by one Zhihu user. The only required input is the user's user_url_token, and limit and offset control paging.
offset.curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/user-pins" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_url_token": "excited-vczh"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_url_token | string | Yes | User ID |
limit | string | No | Number of pins 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": true,
"is_start": true,
"next": "https://www.zhihu.com/api/v4/v2/pins/excited-vczh/moments?includes=data%5B%2A%5D…",
"previous": "https://www.zhihu.com/api/v4/v2/pins/excited-vczh/moments?includes=data%5B%2A%5D…",
"totals": 0
}
}
| Field | Meaning |
|---|---|
data | List of pins on the current page. It is an empty list when the user has no pins, as in the example response. |
paging.totals | Total number of pins the response reports for this user. It is 0 in the example. |
paging.is_end / paging.is_start | Booleans that show whether this page is the last page or the first page of the list. |
paging.next | URL for the next page. It carries the limit and offset values for that page. |
paging.previous | URL for the previous page. It carries the limit and offset values for that page. |
user_url_token is the slug in a Zhihu profile URL, for example excited-vczh in zhihu.com/people/excited-vczh.next and previous links in paging show a default page size of 20 and step the offset by that amount.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.
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-pins" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_url_token": "excited-vczh"
}'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órioUser ID
limitstringNumber of pins 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 PinsEsta 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-pins 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: 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). O README desta página inclui um exemplo de resposta.
Não. Zhihu User Pins 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.