article_idstringwymagane
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"
}
}
]Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
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.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
article_idstringwymaganeArticle ID
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
[
{
"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"
}
}
]Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Zhihu | $0.001 za wywołanie | JSON |
Zhihu | $0.005 za wywołanie | JSON |
Zhihu | $0.001 za wywołanie | JSON |
Zhihu | $0.001 za wywołanie | JSON |
Zhihu | $0.001 za wywołanie | JSON |
Zhihu | $0.001 za wywołanie | JSON |
Przewodniki:Best Zhihu API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/zhihu/web/column-relationship z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: article_id (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Zhihu Column Article Relationship działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Zhihu.