textstringzorunlu
text
https://api.sandbase.ai/v1/api/yandex/videosYandex Videos results for a keyword: titles, thumbnails, durations and source sites.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
This API returns Yandex Videos search results for a keyword. Each result has a description, a rank position and a thumbnail URL. It needs one input, the search text in text.
coffee.curl -X POST "https://api.sandbase.ai/v1/api/yandex/videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "coffee"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
text | string | Yes | text |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"search_information": {
"within": null
},
"videos_results": [
{
"description": "In this video Jimmy is teaching us how to make the 3 most popular milk coffees w…",
"position": 1,
"thumbnail": "https://avatars.mds.yandex.net/get-vthumb/1650686/4b503447f957aa8cc8e5b3f605be6a…"
}
]
}
| Field | Meaning |
|---|---|
videos_results[] | List of video results for the keyword, in ranked order. |
videos_results[].position | Rank of the video in the results. The first result has position 1. |
videos_results[].description | Text snippet describing the video. Long descriptions are cut and end with an ellipsis. |
videos_results[].thumbnail | URL of the video preview image. The URL ends in 564x318_1, which suggests a 564 by 318 pixel image. |
search_information.within | Extra search information. It is null in this response. |
text parameter. It is the only parameter and it is required.description, position and thumbnail.$0.015 per successful call. Failed calls are not charged.
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/yandex/videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "coffee"
}'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.
textstringzorunlutext
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Yandex Videos SearchBu API Yandex | $0.015 çağrı başına | JSON |
Yandex | $0.015 çağrı başına | JSON |
Yandex | $0.01 ç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/yandex/videos adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.015, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: text (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. Yandex Videos Search, 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. Yandex API erişimi için ayrıca başvuru yapmanız gerekmez.