textstringआवश्यक
text
https://api.sandbase.ai/v1/api/yandex/videosYandex Videos results for a keyword: titles, thumbnails, durations and source sites.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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 key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
textstringआवश्यकtext
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Yandex Videos Searchयह API Yandex | $0.015 प्रति कॉल | JSON |
Yandex | $0.015 प्रति कॉल | JSON |
Yandex | $0.01 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/yandex/videos पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.015 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: text (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Yandex Videos Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Yandex API access के लिए आवेदन करने की आवश्यकता नहीं है।