user_url_tokenstringobrigatório
User ID
https://api.sandbase.ai/v1/api/zhihu/web/user-follow-topicsReturns the list of topics followed by a specific Zhihu user. Filter and paginate results using user token, limit, and offset values.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Returns the topics a Zhihu user follows, with each topic's name data, follower count, and discussion count. It needs the user's user_url_token, and it accepts limit and offset for paging.
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/user-follow-topics" \
-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 topics per page |
offset | string | No | Offset |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"contributions_count": 0,
"topic": {
"avatar_url": "https://pica.zhimg.com/v2-40e779d5c5e6bcebda41e92d50594618.jpg?source=57bbeac9",
"category": "basic",
"discuss_count": "12858",
"excerpt": "天体生物学,是一门研究在宇宙中生命起源、生物演化、分布和未来发展的交叉学科,并不只限于地外生物,或包括对地球生物的研究。在天体物理学上,指研究天体上存在生物的条…",
"followers_count": 2065,
"foot_line": {
"content": "2065 关注 · 1.2 万讨论"
},
"id": "20015598",
"introduction": "天体生物学,是一门研究在宇宙中生命起源、生物演化、分布和未来发展的交叉学科,并不只限于地外生物,或包括对地球生物的研究。在天体物理学上,指研究天体上存在生物的条…"
}
}
],
"paging": {
"is_end": false,
"is_start": true,
"next": "https://www.zhihu.com/api/v5.1/topics/excited-vczh/following_topics_contribution…",
"previous": "https://www.zhihu.com/api/v5.1/topics/excited-vczh/following_topics_contribution…",
"totals": 50
}
}
| Field | Meaning |
|---|---|
data[].topic.id | ID of the followed topic, returned as a string. |
data[].topic.category | Category label for the topic, such as basic or n_game. |
data[].topic.introduction / data[].topic.excerpt | Description text of the topic. Both can be an empty string when the topic has no description. The text may be cut with an ellipsis. |
data[].topic.followers_count | Number of followers of the topic, as a number. |
data[].topic.discuss_count | Number of discussions in the topic, as a string. |
data[].topic.foot_line.content | Display summary of followers and discussions, for example 2065 关注 · 1.2 万讨论. |
data[].topic.avatar_url | URL of the topic's image. |
data[].contributions_count | Contribution count attached to the topic entry. It is 0 in the sample. |
paging.is_end / paging.is_start | Flags that show whether the page is the last or the first one. |
paging.totals | Total number of followed topics for the user. It is 50 in the sample. |
user_url_token from the Zhihu profile URL of the user, for example excited-vczh.offset by the limit value. The sample paging.next link uses offset=20&limit=20.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-follow-topics" \
-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 topics 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 Followed TopicsEsta 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-follow-topics 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. Cada organização recebe 100 chamadas grátis por dia UTC, compartilhadas entre as APIs elegíveis da SandBase, incluindo esta; depois disso, cada chamada é cobrada nesse valor do seu saldo SandBase. 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 Followed Topics 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.