pstringzorunlu
p
https://api.sandbase.ai/v1/api/yahoo/videosYahoo 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 Yahoo video search results for a keyword. Each result has a title, duration, view count, thumbnail and the site that hosts the video. It needs one input, the search query p.
curl -X POST "https://api.sandbase.ai/v1/api/yahoo/videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"p": "coffee"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
p | string | Yes | p |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"related_searches": [
{
"link": "https://video.search.yahoo.com/search/video;_ylt=A2RRXHqUkelq8gIAlhP7w8QF;_ylu=Y…",
"position": 1,
"thumbnail": "https://tse1.mm.bing.net/th?q=Best+Coffee&pid=Api&mkt=en-US&cc=US&setlang=en&adl…",
"title": "Best coffee"
}
],
"videos_results": [
{
"duration": "05:35",
"extracted_views": 3300000,
"link": "https://video.search.yahoo.com/search/video;_ylt=A2RRXHqUkelq8gIApRP7w8QF;_ylu=Y…",
"original": "https://www.youtube.com/watch?v=xQ156y4TtJs",
"position": 1,
"source": "youtube.com",
"thumbnail": "https://up.yimg.com/ib/th/id/OVP.3w2J3ife7H_kW-PbU9Q-lAHgFo?pid=Api&h=360&w=480&…",
"title": "How humanity got hooked on coffee - Jonathan Morris",
"views": "3.3M views"
}
]
}
| Field | Meaning |
|---|---|
videos_results[].title | Title of the video. |
videos_results[].original | URL of the video on the site that hosts it, such as a YouTube watch page. |
videos_results[].source | Domain that hosts the video, for example youtube.com. |
videos_results[].duration | Video length as a text string, for example 05:35. |
videos_results[].views | View count as shown in the result, for example 3.3M views. |
videos_results[].extracted_views | View count as a plain number, for example 3300000. Use it for sorting and filtering. |
videos_results[].link / videos_results[].thumbnail | link opens the result on Yahoo video search. thumbnail is the preview image URL. |
videos_results[].position | Rank of the video in the results, starting at 1. |
related_searches[].title | Suggested related search query. |
related_searches[].link / related_searches[].thumbnail | link opens the related search on Yahoo video search. thumbnail is a preview image for it. |
p. It is the only parameter and it is required.extracted_views when you need numbers. The views field is a display string such as 1.8K views.$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/yahoo/videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"p": "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.
pstringzorunlup
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 |
|---|---|---|
Yahoo Videos SearchBu API Yahoo | $0.015 çağrı başına | JSON |
Yahoo | $0.015 çağrı başına | JSON |
Yahoo | $0.01 çağrı başına | JSON |
Yahoo | $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/yahoo/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: p (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. Yahoo 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. Yahoo API erişimi için ayrıca başvuru yapmanız gerekmez.