article_idstringwymagane
Article ID
https://api.sandbase.ai/v1/api/zhihu/web/column-comment-configReturns comment settings and options for a Zhihu column article based on the provided article identifier.
[
{
"data": {
"attached_info": "",
"can_reply": false,
"can_segment_reply": false,
"dialog": null,
"disable_emoticon": false,
"disable_picture": false,
"is_anonymous": false,
"permission": {
"emoji": {
"have": true,
"is_vip_privilege": false,
"toast": "会员或 Lv.4 以上可解锁"
},
"picture": {
"have": true,
"is_vip_privilege": true,
"toast": "会员或 Lv.7 以上可解锁"
},
"voice": {
"have": false,
"is_vip_privilege": false,
"toast": ""
}
},
"picture_max_count": 1,
"place_holder": "评论区已关闭",
"place_holder_strategy": "normal",
"setting": [
{
"disable": false,
"disable_alert": "",
"id": "publish_sync_pin",
"selected": false,
"title": "同步到想法"
}
]
}
}
]Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
Returns the comment box settings for a Zhihu column article. It shows whether replies are allowed, which emoji and picture options are available, and which extra toggles appear. It needs the numeric article_id of the article.
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/column-comment-config" \
-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.
{
"attached_info": "",
"can_reply": false,
"can_segment_reply": false,
"comment_identities": [],
"dialog": null,
"disable_emoticon": false,
"disable_picture": false,
"is_anonymous": false,
"permission": {
"emoji": {
"have": true,
"is_vip_privilege": false,
"toast": "会员或 Lv.4 以上可解锁"
},
"picture": {
"have": true,
"is_vip_privilege": true,
"toast": "会员或 Lv.7 以上可解锁"
},
"voice": {
"have": false,
"is_vip_privilege": false,
"toast": ""
}
},
"picture_max_count": 1,
"place_holder": "评论区已关闭",
"place_holder_strategy": "normal"
}
| Field | Meaning |
|---|---|
place_holder | Text shown in the comment input box. In this response it is 评论区已关闭, which means the comment area is closed. |
can_reply / can_segment_reply | Flags that show whether replies to the article, and replies to a segment of it, are allowed. Both are false in this response. |
disable_emoticon / disable_picture | Flags that show whether emoji or pictures are turned off for comments on this article. |
is_anonymous | Flag that shows whether the comment is posted anonymously. |
permission.emoji.have / permission.picture.have / permission.voice.have | Whether each input type is available in the comment box. Voice is false in this response. |
permission.picture.is_vip_privilege | Flag that shows whether picture comments are a member privilege. It is true in this response. |
permission.emoji.toast / permission.picture.toast | Message shown to users who cannot use the feature yet. It names the membership or level needed to use it. |
picture_max_count | Maximum number of pictures allowed in one comment. The value is 1 in this response. |
setting[].id / setting[].title | Identifier and display label of an extra option in the comment box. The sample shows publish_sync_pin with the title 同步到想法. |
setting[].disable / setting[].selected | Whether the option is switched off for the user and whether it is selected. |
article_id is the numeric ID of a column article, such as 669214677. Get it from Zhihu Column Articles or Zhihu Column Article Detail.comment_identities can be empty and dialog can be null.place_holder, toast and title comes back in Chinese.$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-comment-config" \
-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": {
"attached_info": "",
"can_reply": false,
"can_segment_reply": false,
"dialog": null,
"disable_emoticon": false,
"disable_picture": false,
"is_anonymous": false,
"permission": {
"emoji": {
"have": true,
"is_vip_privilege": false,
"toast": "会员或 Lv.4 以上可解锁"
},
"picture": {
"have": true,
"is_vip_privilege": true,
"toast": "会员或 Lv.7 以上可解锁"
},
"voice": {
"have": false,
"is_vip_privilege": false,
"toast": ""
}
},
"picture_max_count": 1,
"place_holder": "评论区已关闭",
"place_holder_strategy": "normal",
"setting": [
{
"disable": false,
"disable_alert": "",
"id": "publish_sync_pin",
"selected": false,
"title": "同步到想法"
}
]
}
}
]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-comment-config 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 Comment Configuration 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.