article_idstringerforderlich
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": "同步到想法"
}
]
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
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.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
article_idstringerforderlichArticle ID
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"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": "同步到想法"
}
]
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Zhihu Column Comment ConfigurationDiese API Zhihu | $0.001 pro Aufruf | JSON |
Zhihu | $0.005 pro Aufruf | JSON |
Zhihu | $0.001 pro Aufruf | JSON |
Zhihu | $0.001 pro Aufruf | JSON |
Zhihu | $0.001 pro Aufruf | JSON |
Zhihu | $0.001 pro Aufruf | JSON |
Anleitungen:Best Zhihu API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/zhihu/web/column-comment-config mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: article_id (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Zhihu Column Comment Configuration läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Zhihu API beantragen.