Call it
curl https://api.peume.com/v1/call/search-yandex-videos \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"text": "your text"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-yandex-videos", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"text": "your text"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-yandex-videos",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"text": "your text"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: search-yandex-videos.
Parameters
durationstringFiltering videos by duration. It can be set to: `short` - Less than 10 minutes `medium` - 10-65 minutes `long` - More than 65 minutes
pstringThe page number. Pagination starts from `0`, and it can return up to 30 results.
yandex_domainstringThe Yandex Videos domain to use. It defaults to `yandex.com`. Head to the Yandex domains for a full list of supported Yandex domains.
withinstringLimit the search results to specific time period. It defaults to `all time`
textRequiredstringThe search query. You can use anything that you would use in a regular Yandex Videos search.
hdstringFiltering videos by quality.
devicestringThe device to use to get the results. It can be set to `desktop` (default) to use a regular browser, `tablet` to use a tablet browser (currently using iPads), or `mobile` to use a mobile browser.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
