Call it
curl https://api.peume.com/v1/call/yahoo-serp \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"mode": "web",
"q": "your q",
"engine": "auto",
"safesearch": "moderate",
"page": "1",
"region": "us-en"
}
}'const res = await fetch("https://api.peume.com/v1/call/yahoo-serp", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"mode": "web",
"q": "your q",
"engine": "auto",
"safesearch": "moderate",
"page": "1",
"region": "us-en"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/yahoo-serp",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"mode": "web",
"q": "your q",
"engine": "auto",
"safesearch": "moderate",
"page": "1",
"region": "us-en"
}
},
)
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: yahoo-serp.
Parameters
modestringweb results or recent news (news adds date+source per item). the news index is narrow, so a long or highly specific news query that matches nothing falls through to web rather than returning empty; those items carry requestedMode=news and servedBy=web
web · news
Example: web
qRequiredstringsearch query
enginestringsearch backend: auto (recommended - rotates engines and falls back on blocks) or pin one of yahoo, yandex (web mode); news mode supports bing. when set, each result carries an 'engine' field; if the pinned engine returns nothing, auto serves instead and results also carry 'requestedEngine'
Example: auto
safesearchstringon · moderate · off
Example: moderate
pagestringresult page (pagination)
Example: 1
regionstringlocale, e.g. us-en, uk-en, de-de
Example: us-en
num_resultsstringmax results, cap 25
Example: 10
timelimitstringrestrict to past day/week/month/year
d · w · m · y
