Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Zhihu Column Article Relationship

Dokumentacja API
https://api.sandbase.ai/v1/api/zhihu/web/column-relationship

Returns interaction details and relationship metadata for a Zhihu column article, including endorsement reaction text and navigation action links by article ID.

Cena
$0.001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 0 opcjonalnych

Playground

Wejście
Article ID
WyjściePrzykład
Odpowiedźoutputs · 313 B · 13 wierszy
[
  {
    "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"
    }
  }
]

Przykłady

Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.

README API

Zhihu Column Article Relationship API

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.

Use cases

  • Show the endorsement summary line for a column article in a dashboard.
  • Extract the voter list deep link for a given article.
  • Parse the endorsement count from the text string to track how many people endorsed an article.
  • Check which reaction type Zhihu attaches to an article through the type field.

Request

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.

Parameters

NameTypeRequiredDescription
article_idstringYesArticle ID

Example response

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"
}

Response fields

FieldMeaning
textDisplay string for the reaction. In the example it reads "291 人赞同了该文章" (291 people endorsed the article), so the count sits inside the text.
typeKind of relationship item. The example value is reaction_endorse.
action_urlZhihu app deep link that opens the voter list page for the article. The link embeds the article ID.
text_colorColor code Zhihu uses to style the text, for example GBL05A.
text_size / is_boldStyling hints for the text. text_size is a number (14 in the example) and is_bold is a boolean.
MemberMember data tied to the reaction. It is null in the example response.

Notes

  • The endorsement count is not a separate number field. Read it from the text string.
  • action_url uses the zhihu:// scheme, so it opens in the Zhihu app and not in a browser.
  • To get the article title, author and body, call Zhihu Column Article Detail with the same ID.
  • To find articles in a column, use Zhihu Column Articles.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Zhihu$0.001 za wywołanieJSON
Zhihu$0.005 za wywołanieJSON
Zhihu$0.001 za wywołanieJSON
Zhihu$0.001 za wywołanieJSON
Zhihu$0.001 za wywołanieJSON
Zhihu$0.001 za wywołanieJSON

Przewodniki:Best Zhihu API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API Zhihu Column Article Relationship?

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.

Ile kosztuje API Zhihu Column Article Relationship?

$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Zhihu Column Article Relationship?

Wymagane: article_id (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Zhihu Column Article Relationship?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Zhihu lub klucza API?

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.