group_idstringobbligatorio
Post ID, can be obtained from the link
https://api.sandbase.ai/v1/api/toutiao/app/video-infoReturns detailed information for a specified Toutiao video using its post identifier. Useful for retrieving metadata and content status from Toutiao posts.
[
{
"data": {
"data": null,
"err_no": 10400,
"err_tips": "在这个星球中找不到",
"message": "rpc err"
}
}
]Seleziona un esempio per caricare i suoi input e il risultato nel playground.
Returns information for one Toutiao video post. You send the post ID as group_id. The response holds a data object for the video, plus an error code and message.
group_id values before you call comment or article APIs.curl -X POST "https://api.sandbase.ai/v1/api/toutiao/app/video-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"group_id": "7431543350882206242"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
group_id | string | Yes | Post ID, can be obtained from the link |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": null,
"err_no": 10400,
"err_tips": "在这个星球中找不到",
"message": "rpc err"
}
| Field | Meaning |
|---|---|
data | Holds the video information when the lookup works. It is null when the post is not found, as in the sample call for 7431543350882206242. |
err_no | Numeric error code. The sample call returned 10400, which came with data set to null. |
err_tips | Short error text for the failed lookup. The sample call returned 在这个星球中找不到. |
message | Status message for the call. The sample call returned rpc err. |
group_id from the Toutiao video link. It is a long numeric string, for example 7431543350882206242.err_no and whether data is null before you read any video fields.$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/toutiao/app/video-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"group_id": "7431543350882206242"
}'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.
group_idstringobbligatorioPost ID, can be obtained from the link
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"data": {
"data": null,
"err_no": 10400,
"err_tips": "在这个星球中找不到",
"message": "rpc err"
}
}
]Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Toutiao Video InformationQuesta API Toutiao | $0.001 per chiamata | JSON |
Toutiao | $0.001 per chiamata | JSON |
Toutiao | $0.001 per chiamata | JSON |
Toutiao | $0.001 per chiamata | JSON |
Toutiao | $0.001 per chiamata | JSON |
Toutiao | $0.071429 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/toutiao/app/video-info 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. Ogni organizzazione riceve 100 chiamate gratuite al giorno UTC, condivise tra le API SandBase idonee, inclusa questa; dopo, ogni chiamata viene addebitata a questo prezzo dal tuo saldo SandBase. Non c'è alcun abbonamento.
Richiesti: group_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. Toutiao Video Information 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 Toutiao.