article_idstringwajib
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"
}
}
]Pilih contoh untuk memuat input dan hasilnya ke 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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
article_idstringwajibArticle ID
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"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"
}
}
]Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Zhihu | $0.001 per panggilan | JSON |
Zhihu | $0.005 per panggilan | JSON |
Zhihu | $0.001 per panggilan | JSON |
Zhihu | $0.001 per panggilan | JSON |
Zhihu | $0.001 per panggilan | JSON |
Zhihu | $0.001 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/zhihu/web/column-relationship dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: article_id (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Zhihu Column Article Relationship berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Zhihu secara terpisah.