Call it
curl https://api.peume.com/v1/call/search-yandex \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"text": "your text",
"include_organic_results": true,
"include_ads": false,
"include_knowledge_graph": false,
"include_inline_images": false,
"include_inline_videos": false
}
}'const res = await fetch("https://api.peume.com/v1/call/search-yandex", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"text": "your text",
"include_organic_results": true,
"include_ads": false,
"include_knowledge_graph": false,
"include_inline_images": false,
"include_inline_videos": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-yandex",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"text": "your text",
"include_organic_results": True,
"include_ads": False,
"include_knowledge_graph": False,
"include_inline_images": False,
"include_inline_videos": False
}
},
)
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.
Parameters
textRequiredstringThe search term to search for on Yandex. You can use anything that you would use in a regular Yandex search.
include_organic_resultsbooleanReturn organic (non-paid) search results. Each page of organic results is delivered as its own dataset item (item_type 'organic'). Enabled by default.
Example: true
include_adsbooleanReturn paid advertisement results when the query triggers them (typically commercial queries). Delivered as items with item_type 'ads'. Off by default.
Example: false
include_knowledge_graphbooleanReturn the knowledge graph entity card when present (people, shows, places, brands, etc.). Delivered as items with item_type 'knowledge_graph'. Off by default.
Example: false
include_inline_imagesbooleanReturn the inline image strip that can appear between organic results. Delivered as items with item_type 'inline_images'. Off by default.
Example: false
include_inline_videosbooleanReturn the inline video carousel that can appear between organic results. Delivered as items with item_type 'inline_videos'. Off by default.
Example: false
include_image_searchbooleanRun the same query through the dedicated Yandex Images vertical and return full image search results: original image URL, hosting page, thumbnail, and source. Each page of image results is delivered as its own dataset item (item_type 'image_search'). Supports the image filters below. Off by default.
Example: false
include_video_searchbooleanRun the same query through the dedicated Yandex Videos vertical and return full video search results: title, link, duration, views, publish date, source platform, and channel. Each page of video results is delivered as its own dataset item (item_type 'video_search'). Supports the video filters below. Off by default.
Example: false
image_typestringOnly return images of this kind: photographs, clipart, line drawings, demotivator posters, or images with faces. 'any' (default) applies no filter.
any · photo · clipart · lineart · demotivator · face
Example: any
image_colorstringOnly return images dominated by this color, or by color vs. black-and-white. 'any' (default) applies no filter.
any · color · gray · red · orange · yellow · cyan · green · blue · violet · white · black
Example: any
image_orientationstringOnly return images with this aspect: horizontal (landscape), vertical (portrait), or square. 'any' (default) applies no filter.
any · horizontal · vertical · square
Example: any
image_file_typestringOnly return images in this file format. 'any' (default) applies no filter.
any · jpg · png · gifan
Example: any
image_widthintegerOnly return images with exactly this pixel width. Must be set together with 'Image height'.
image_heightintegerOnly return images with exactly this pixel height. Must be set together with 'Image width'.
image_sitestringOnly return images hosted on this site or domain, e.g. 'commons.wikimedia.org'. Leave blank for all sites.
image_recentbooleanOnly return images that appeared online within the last 7 days. Off by default.
Example: false
video_durationstringOnly return videos of this length: short, medium, or long. 'any' (default) applies no filter.
any · short · medium · long
Example: any
video_hdbooleanOnly return high-definition videos. Off by default.
Example: false
yandex_domainstringThe Yandex domain to use for search results. Defaults to 'yandex.com'. Each domain has default language and location settings. Yandex retired its other regional portals (ya.ru search, yandex.az, yandex.com.am, yandex.com.ge, yandex.co.il, yandex.md, yandex.tm, yandex.tj, yandex.eu) - to target those countries, combine a supported domain with the 'lang' and 'lr' parameters.
yandex.com · yandex.ru · yandex.by · yandex.kz · yandex.uz · yandex.com.tr
Example: yandex.com
langstringLanguage code for search results. Set to null for 'Unspecified'. Can use comma-separated values for multi-language (e.g., 'ru,en'). Defaults to domain language if not specified.
null · ru · en · be · fr · de · id · kk · tt · tr · uk · uz …
lrintegerCountry or region ID, as a number (213) or as text ("213"), to limit search results to a specific geographic location. If not set, the default location for the selected yandex_domain is used (e.g., 84 for yandex.com, 225 for yandex.ru). Common values: 225=Russia, 84=United States, 149=Belarus, 159=Kazakhstan, 171=Uzbekistan, 167=Azerbaijan, 168=Armenia, 169=Georgia, 181=Israel, 208=Moldova, 170=Turkmenistan, 209=Tajikistan, 111=Europe. See the actor README for a full location reference table.
max_pagesintegerMaximum number of pages to fetch (0 = no limit, default: 2 to avoid too many requests). Values above 50 are capped at 50 per run; use start_page to resume deeper results in a follow-up run (the next_start_page output field says where to resume).
Example: 2
start_pageintegerFirst (1-based) result page to fetch. Use with the next_start_page value from a previous run to resume deep results across runs. Default: 1.
Example: 1
fail_on_empty_resultsbooleanWhen enabled, a run that returns zero results because the search backend did not respond finishes as a failed run instead of succeeding with an explanatory summary item. Enable this if your monitoring keys off the run status. Default: off.
Example: false
groups_on_pageintegerMaximum number of search result groups (listings) returned per page. Accepts values between 1 and 20. Default is 10.
Example: 10
family_modeintegerControls safe search filtering. 0 = off (no filtering), 1 = moderate (default), 2 = strict (filter explicit content).
Example: 1
fix_typobooleanAutomatically correct spelling errors in the search query. Default is true.
Example: true
sort_modestringHow results are ordered. 'relevance' (default) ranks by relevance; 'date' ranks newest first. Reliably applied to Yandex Videos results (ordered by each video's publish date). For web results the request is passed to Yandex, but Yandex currently returns the same order as 'relevance' (verified October 2026), so use 'period' to get fresh web pages. Not applied to Yandex Images.
relevance · date
Example: relevance
periodstringRestrict results to a recency window. 'all' (default) = no time limit; 'day' = last 24 hours; 'last_two_weeks' = last 14 days; 'month' = last 30 days. Applies to web results (Yandex applies the window using its own freshness data, so a few pages dated just outside the window can appear) and to Yandex Videos results (by each video's publish date; videos with no known date are kept). Not applied to Yandex Images (use 'image_recent'). Video pages are filtered after they are fetched, so a page can carry fewer than 30 videos and still count as a processed page.
all · day · last_two_weeks · month
Example: all
output_filestringOptional filename to save results. If not provided, will auto-generate based on search text and parameters.
