group_idstringrequerido
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"
}
}
]Seleccione un ejemplo para cargar sus entradas y el resultado en el 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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
group_idstringrequeridoPost ID, can be obtained from the link
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
[
{
"data": {
"data": null,
"err_no": 10400,
"err_tips": "在这个星球中找不到",
"message": "rpc err"
}
}
]Explorar más
| API | Precio | Respuesta |
|---|---|---|
Toutiao Video InformationEsta API Toutiao | $0.001 por llamada | JSON |
Toutiao | $0.001 por llamada | JSON |
Toutiao | $0.001 por llamada | JSON |
Toutiao | $0.001 por llamada | JSON |
Toutiao | $0.001 por llamada | JSON |
Toutiao | $0.071429 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/toutiao/app/video-info con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.001 por llamada. Cada organización obtiene 100 llamadas gratis por día UTC, compartidas entre las APIs elegibles de SandBase, incluida esta; después, cada llamada se factura a este precio desde tu saldo de SandBase. No hay suscripción.
Requeridos: group_id (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Toutiao Video Information funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Toutiao por separado.