Call it
curl https://api.peume.com/v1/call/search-yandex-web \
-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-web", {
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-web",
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-web.
Parameters
pstringPage number. Pagination starts from 0.
yandex_domainstringThe Yandex domain to use. It defaults to `yandex.com`. Head to the Yandex domains for a full list of supported Yandex domains. A default `lr` is used for each `yandex_domain`. Example: `84`(US) for `yandex.com` A default `lang` parameter `en`(English) is used for `yandex.com`
sort_modestringThe sorting mode of search results. It can be set to: `relevance` - by relevance (default) `date` - by date.
periodstringThe time period for search results. It can be set to: `all` - all time (Default) `day` - last day `last_two_weeks` - last two weeks `month` - last month
fix_typostringEnables or disables automatic spelling correction. It can be set to: `true` - `false`. It defaults to `true`.
family_modestringEnables or disables Family Mode (safe search). It can be set to: - Off(`0`) - Moderate(`1`) - Strict(`2`). It defaults to Moderate(`1`).
lrstringCountry or region ID to limit the search results to. Head to the Yandex locations for a full list of supported Yandex locations. If parameter is not set - the matching location of selected `yandex_domain` is used, e.g. `84` for `yandex.com`.
textRequiredstringThe search query. You can use anything that you would use in a regular Yandex search. It can be 400 characters at maximum. Yandex usually accepts first 40 words of the query.
langstringThe language to use for the Yandex search. Head to the Yandex languages for a full list of supported Yandex languages. It defaults to `en` when `yandex_domain` is `yandex.com`.
groups_on_pagestringThe maximum number of groups displayed on a single results page. It defaults to `20`.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
