article_idstringobbligatorio
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": "同步到想法"
}
]
}
}
]Seleziona un esempio per caricare i suoi input e il risultato nel playground.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
article_idstringobbligatorioArticle ID
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"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": "同步到想法"
}
]
}
}
]Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Zhihu Column Comment ConfigurationQuesta API Zhihu | $0.001 per chiamata | JSON |
Zhihu | $0.005 per chiamata | JSON |
Zhihu | $0.001 per chiamata | JSON |
Zhihu | $0.001 per chiamata | JSON |
Zhihu | $0.001 per chiamata | JSON |
Zhihu | $0.001 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/zhihu/web/column-comment-config con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: article_id (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Zhihu Column Comment Configuration funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Zhihu.