article_idstringobrigatório
Article ID
https://api.sandbase.ai/v1/api/zhihu/web/column-relationshipReturns interaction details and relationship metadata for a Zhihu column article, including endorsement reaction text and navigation action links by article ID.
[
{
"data": {
"Member": null,
"action_url": "zhihu://hybrid?zh_url=https://www.zhihu.com/appview/article/669214677/voters&zh_hide_nav_bar=true",
"is_bold": false,
"text": "291 人赞同了该文章",
"text_color": "GBL05A",
"text_size": 14,
"type": "reaction_endorse"
}
}
]Selecione um exemplo para carregar as entradas e o resultado no playground.
Returns the endorsement reaction summary for one Zhihu column article. It needs the article_id of the article. The response includes a display text such as the number of people who endorsed the article and an in-app link to the voter list.
text string to track how many people endorsed an article.type field.curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/column-relationship" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"article_id": "669214677"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
article_id | string | Yes | Article ID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"Member": null,
"action_url": "zhihu://hybrid?zh_url=https://www.zhihu.com/appview/article/669214677/voters&zh_…",
"is_bold": false,
"text": "291 人赞同了该文章",
"text_color": "GBL05A",
"text_size": 14,
"type": "reaction_endorse"
}
| Field | Meaning |
|---|---|
text | Display string for the reaction. In the example it reads "291 人赞同了该文章" (291 people endorsed the article), so the count sits inside the text. |
type | Kind of relationship item. The example value is reaction_endorse. |
action_url | Zhihu app deep link that opens the voter list page for the article. The link embeds the article ID. |
text_color | Color code Zhihu uses to style the text, for example GBL05A. |
text_size / is_bold | Styling hints for the text. text_size is a number (14 in the example) and is_bold is a boolean. |
Member | Member data tied to the reaction. It is null in the example response. |
text string.action_url uses the zhihu:// scheme, so it opens in the Zhihu app and not in a browser.$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/column-relationship" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"article_id": "669214677"
}'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.
article_idstringobrigatórioArticle ID
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
[
{
"data": {
"Member": null,
"action_url": "zhihu://hybrid?zh_url=https://www.zhihu.com/appview/article/669214677/voters&zh_hide_nav_bar=true",
"is_bold": false,
"text": "291 人赞同了该文章",
"text_color": "GBL05A",
"text_size": 14,
"type": "reaction_endorse"
}
}
]Explorar mais
| API | Preço | Resposta |
|---|---|---|
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/column-relationship 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: article_id (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 Column Article Relationship 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.