group_idstringобязательно
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"
}
}
]Выберите пример, чтобы загрузить его входные данные и результат в 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.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
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"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
group_idstringобязательноPost ID, can be obtained from the link
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
[
{
"data": {
"data": null,
"err_no": 10400,
"err_tips": "在这个星球中找不到",
"message": "rpc err"
}
}
]Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Toutiao Video InformationЭтот API Toutiao | $0.001 за запрос | JSON |
Toutiao | $0.001 за запрос | JSON |
Toutiao | $0.001 за запрос | JSON |
Toutiao | $0.001 за запрос | JSON |
Toutiao | $0.001 за запрос | JSON |
Toutiao | $0.071429 за запрос | JSON |
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/toutiao/app/video-info, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.001 за вызов. Каждой организации предоставляется 100 бесплатных вызовов в сутки по UTC, общих для всех подходящих API SandBase, включая этот; после этого каждый вызов тарифицируется по этой цене и списывается с баланса SandBase. Подписка не требуется.
Обязательные: group_id (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Toutiao Video Information работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Toutiao.