Call it
curl https://api.peume.com/v1/call/search-yahoo-videos \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"p": "your p"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-yahoo-videos", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"p": "your p"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-yahoo-videos",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"p": "your p"
}
},
)
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-yahoo-videos.
Parameters
pRequiredstringThe search query. You can use anything that you would use in a regular Yahoo! Videos search.
bstringThe result offset. It skips the given number of results. It's used for pagination. (e.g., `1` (default) starts from the first result, `61` starts from the 61st result, `121` starts from the 121st result, etc.).
yahoo_domainstringThe Yahoo! domain to use. It defaults to `search.yahoo.com`. If specified domain is allowed, it will be prepended to the domain (e.g., `fr.search.yahoo.com`). You can check a full list of supported Yahoo! domains.
vsitestringFiltering videos by source. It can be set to: `youtube` - YouTube `dailymotion` - Dailymotion `vimeo` - Vimeo `mtv` - MTV `cbsnews` - CBS `foxnews` - Fox `cnn` - CNN `msn` - MSN
dursstringFiltering videos by length. It can be set to: `short` - Short (less than 5 minutes) `medium` - Medium (5-20 minutes) `long` - Long (more than 20 minutes)
vresstringFiltering videos by resolution. It can be set to: `360p` - 360p or higher `480p` - 480p or higher `720p` - 720p or higher `1080p` - 1080p or higher
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.
vagestringFiltering videos by date. It can be set to: `day` - Past 24 hours `week` - Past week `month` - Past month `year` - Past year
