group_idstringzorunlu
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"
}
}
]Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
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.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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 anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
group_idstringzorunluPost ID, can be obtained from the link
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
[
{
"data": {
"data": null,
"err_no": 10400,
"err_tips": "在这个星球中找不到",
"message": "rpc err"
}
}
]Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Toutiao | $0.001 çağrı başına | JSON |
Toutiao | $0.001 çağrı başına | JSON |
Toutiao | $0.001 çağrı başına | JSON |
Toutiao | $0.001 çağrı başına | JSON |
Toutiao | $0.001 çağrı başına | JSON |
Toutiao | $0.071429 çağrı başına | JSON |
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/toutiao/app/video-info adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.001. Her kuruluş, UTC günü başına 100 ücretsiz çağrı alır; bu hak, bu API dahil uygun SandBase API'leri arasında ortaktır. Sonrasında her çağrı, SandBase bakiyenizden bu fiyat üzerinden ücretlendirilir. Abonelik yoktur.
Gerekli: group_id (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Toutiao Video Information, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Toutiao API erişimi için ayrıca başvuru yapmanız gerekmez.