item_idstringobbligatorio
Video (item) ID
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/item-report-commentsGet Item Report Comments on Douyin. Returns the platform data as structured JSON.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Returns a list of comments for one Douyin video, taken from its Xingtu item report. Each comment has its ID, text, like count and reply count. The only input is the video item_id.
like_count to find the most liked comments on a video.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/item-report-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"item_id": "7372484719365098803"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
item_id | string | Yes | Video (item) ID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"comments": [
{
"comment_count": "30",
"comment_id": "7372955079207256882",
"comment_text": "不仅赞还评论你也尽量[比心]",
"like_count": "97"
}
]
}
| Field | Meaning |
|---|---|
base_resp.status_code / base_resp.status_message | Status of the request. A status_code of 0 with an empty status_message means the call worked. |
comments[] | List of comments on the video. Each entry is one comment. |
comments[].comment_id | ID of the comment, returned as a string. |
comments[].comment_text | Text of the comment. It can contain platform emoji codes such as [比心]. |
comments[].like_count | Number of likes the comment received, returned as a string. |
comments[].comment_count | Number of replies to the comment, returned as a string. |
item_id is the Douyin video ID, for example 7372484719365098803.like_count and comment_count come back as strings, so convert them before sorting.$0.003 per successful call. Failed calls are not charged.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/item-report-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"item_id": "7372484719365098803"
}'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.
item_idstringobbligatorioVideo (item) ID
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Douyin Item Report CommentsQuesta API Douyin | $0.003 per chiamata | JSON |
Douyin | $0.002 per chiamata | JSON |
Douyin | $0.002 per chiamata | JSON |
Douyin | $0.01 per chiamata | JSON |
Douyin | $0.003 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/douyin/xingtu-v2/item-report-comments 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.003 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: item_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. Douyin Item Report Comments 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 Douyin.