Yandex SERP & Knowledge Graph Scraper
Query Yandex across 17 regional domains and get organic results, ads, knowledge graph cards, inline images and videos, and related searches per page, with language, region and recency filters.
Input schema
Input fields, types, required flags, descriptions, defaults, and prefills come from the published definition. Prefill examples are distinct from defaults.
| Field | Type | Required | Description |
|---|---|---|---|
mode | string | required | Search by keyword or parse existing Yandex SERP URLs. |
queries | array | optional | One or more search queries (mode=search). Each query is processed separately. |
serpUrls | array | optional | Yandex search-result URLs, one per page (mode=byUrls). Direct Yandex URLs and translated Yandex URLs are accepted. |
Show all input fields
| Field | Type | Required | Description |
|---|---|---|---|
mode | string | required | Search by keyword or parse existing Yandex SERP URLs. |
queries | array | optional | One or more search queries (mode=search). Each query is processed separately. |
serpUrls | array | optional | Yandex search-result URLs, one per page (mode=byUrls). Direct Yandex URLs and translated Yandex URLs are accepted. |
domain | string | optional | Regional Yandex front. yandex.com is the international entry point; Yandex may serve it from its Russia front (reported as servedDomain). |
language | string | optional | Yandex interface and search language. Match it to your query language to keep result text untranslated. |
region | string | optional | Named Yandex region preset. Leave empty to use Yandex's default region. regionId overrides this value. |
regionId | integer | optional | Numeric Yandex region ID (lr). Overrides the Region preset. For example 213 is Moscow and 983 is Turkey. |
maxPages | integer | optional | Number of result pages to read per query (1-25). Yandex serves at most 25 pages. |
startPage | integer | optional | Zero-based page to start from (0-24). Use it to resume a deep result window. |
maxItems | integer | optional | Global cap on unique items across all queries and pages (1-10,000). In rows mode this is the row count; in pages mode it caps the items inside page records. |
timeFilter | string | optional | Limit results by recency. The values map to Yandex's own past-day, past-two-weeks and past-month filters. |
fixTypos | boolean | optional | Let Yandex correct misspelled queries. Turn it off for exact-match searches. |
includeAds | boolean | optional | Include sponsored Yandex Direct rows with their click URL and displayed domain. |
includeBlocks | boolean | optional | Include knowledge graph, AI answer, inline images, inline videos, products, local companies and weather when present. |
includeRelatedSearches | boolean | optional | Include the related-search suggestions shown below the results (requires Include SERP Blocks). |
outputFormat | string | optional | Page records preserve the existing dataset shape; rows emit one flat record per result or block item. |
failIfEmpty | boolean | optional | Fail the run when no records were produced, instead of finishing with an empty dataset. |
Download the published input schema
View complete JSON
{
"description": "Search Yandex or parse Yandex SERP URLs and collect organic results, ads, knowledge graph and AI answers, inline images and videos, products, local companies, weather, and related searches.",
"properties": {
"domain": {
"default": "yandex.com",
"description": "Regional Yandex front. yandex.com is the international entry point; Yandex may serve it from its Russia front (reported as servedDomain).",
"editor": "select",
"enum": [
"yandex.com",
"yandex.by",
"yandex.kz",
"yandex.uz",
"yandex.com.tr",
"yandex.com.ge",
"yandex.az",
"yandex.md",
"yandex.tj"
],
"enumTitles": [
"International (yandex.com)",
"Belarus (yandex.by)",
"Kazakhstan (yandex.kz)",
"Uzbekistan (yandex.uz)",
"Turkey (yandex.com.tr)",
"Georgia (yandex.com.ge)",
"Azerbaijan (yandex.az)",
"Moldova (yandex.md)",
"Tajikistan (yandex.tj)"
],
"title": "Yandex Domain",
"type": "string"
},
"failIfEmpty": {
"default": false,
"description": "Fail the run when no records were produced, instead of finishing with an empty dataset.",
"prefill": false,
"title": "Fail If Empty",
"type": "boolean"
},
"fixTypos": {
"default": true,
"description": "Let Yandex correct misspelled queries. Turn it off for exact-match searches.",
"prefill": true,
"title": "Fix Typos",
"type": "boolean"
},
"includeAds": {
"default": true,
"description": "Include sponsored Yandex Direct rows with their click URL and displayed domain.",
"prefill": true,
"title": "Include Ads",
"type": "boolean"
},
"includeBlocks": {
"default": true,
"description": "Include knowledge graph, AI answer, inline images, inline videos, products, local companies and weather when present.",
"prefill": true,
"title": "Include SERP Blocks",
"type": "boolean"
},
"includeRelatedSearches": {
"default": true,
"description": "Include the related-search suggestions shown below the results (requires Include SERP Blocks).",
"prefill": true,
"title": "Include Related Searches",
"type": "boolean"
},
"language": {
"default": "en",
"description": "Yandex interface and search language. Match it to your query language to keep result text untranslated.",
"editor": "select",
"enum": [
"en",
"ru",
"tr",
"kk",
"uz",
"az",
"be",
"uk",
"de",
"fr",
"es",
"it",
"pt",
"pl",
"cs",
"ar",
"he",
"fa",
"id"
],
"enumTitles": [
"English",
"Russian",
"Turkish",
"Kazakh",
"Uzbek",
"Azerbaijani",
"Belarusian",
"Ukrainian",
"German",
"French",
"Spanish",
"Italian",
"Portuguese",
"Polish",
"Czech",
"Arabic",
"Hebrew",
"Persian",
"Indonesian"
],
"title": "Language",
"type": "string"
},
"maxItems": {
"default": 100,
"description": "Global cap on unique items across all queries and pages (1-10,000). In rows mode this is the row count; in pages mode it caps the items inside page records.",
"maximum": 10000,
"minimum": 1,
"prefill": 1,
"title": "Max Items",
"type": "integer"
},
"maxPages": {
"default": 3,
"description": "Number of result pages to read per query (1-25). Yandex serves at most 25 pages.",
"maximum": 25,
"minimum": 1,
"prefill": 1,
"title": "Max Pages Per Query",
"type": "integer"
},
"mode": {
"default": "search",
"description": "Search by keyword or parse existing Yandex SERP URLs.",
"editor": "select",
"enum": [
"search",
"byUrls"
],
"enumTitles": [
"Search by keyword",
"Scrape Yandex SERP URLs"
],
"prefill": "search",
"title": "Mode",
"type": "string"
},
"outputFormat": {
"default": "pages",
"description": "Page records preserve the existing dataset shape; rows emit one flat record per result or block item.",
"editor": "select",
"enum": [
"pages",
"rows"
],
"enumTitles": [
"One record per SERP page",
"One record per result item"
],
"prefill": "pages",
"title": "Output Format",
"type": "string"
},
"queries": {
"description": "One or more search queries (mode=search). Each query is processed separately.",
"editor": "stringList",
"items": {
"type": "string"
},
"minItems": 1,
"prefill": [
"python programming"
],
"title": "Search Queries",
"type": "array"
},
"region": {
"default": "",
"description": "Named Yandex region preset. Leave empty to use Yandex's default region. regionId overrides this value.",
"editor": "select",
"enum": [
"",
"ru",
"moscow",
"spb",
"novosibirsk",
"yekaterinburg",
"kazan",
"nizhny-novgorod",
"chelyabinsk",
"omsk",
"samara",
"rostov-on-don",
"ufa",
"krasnoyarsk",
"voronezh",
"perm",
"volgograd",
"by",
"minsk",
"kz",
"almaty",
"astana",
"uz",
"tashkent",
"tr",
"istanbul",
"ankara",
"izmir",
"ge",
"az",
"md",
"tj"
],
"enumTitles": [
"Any region (default)",
"Russia",
"Moscow",
"Saint Petersburg",
"Novosibirsk",
"Yekaterinburg",
"Kazan",
"Nizhny Novgorod",
"Chelyabinsk",
"Omsk",
"Samara",
"Rostov-on-Don",
"Ufa",
"Krasnoyarsk",
"Voronezh",
"Perm",
"Volgograd",
"Belarus",
"Minsk",
"Kazakhstan",
"Almaty",
"Astana",
"Uzbekistan",
"Tashkent",
"Turkey",
"Istanbul",
"Ankara",
"Izmir",
"Georgia",
"Azerbaijan",
"Moldova",
"Tajikistan"
],
"title": "Region",
"type": "string"
},
"regionId": {
"description": "Numeric Yandex region ID (lr). Overrides the Region preset. For example 213 is Moscow and 983 is Turkey.",
"maximum": 3000000,
"minimum": 1,
"title": "Region ID",
"type": "integer"
},
"serpUrls": {
"description": "Yandex search-result URLs, one per page (mode=byUrls). Direct Yandex URLs and translated Yandex URLs are accepted.",
"editor": "stringList",
"items": {
"type": "string"
},
"title": "Yandex SERP URLs",
"type": "array"
},
"startPage": {
"default": 0,
"description": "Zero-based page to start from (0-24). Use it to resume a deep result window.",
"maximum": 24,
"minimum": 0,
"title": "Start Page",
"type": "integer"
},
"timeFilter": {
"default": "any",
"description": "Limit results by recency. The values map to Yandex's own past-day, past-two-weeks and past-month filters.",
"editor": "select",
"enum": [
"any",
"day",
"twoWeeks",
"month"
],
"enumTitles": [
"Any time",
"Past 24 hours",
"Past two weeks",
"Past month"
],
"title": "Time Filter",
"type": "string"
}
},
"required": [
"mode"
],
"schemaVersion": 1,
"title": "Yandex SERP & Knowledge Graph Scraper Input",
"type": "object"
}
Output schema
Published result links and storage locations. This schema is not an exhaustive contract for every field in a dataset record.
| Field | Type | Required | Description |
|---|---|---|---|
results | string | optional | Dataset containing scraped Yandex SERP pages or flat result rows. |
Download the published output schema
View complete JSON
{
"actorOutputSchemaVersion": 1,
"description": "Yandex search pages or flat result rows with organic results, ads, knowledge graph and AI answers, inline images and videos, products, local companies, weather and related searches.",
"properties": {
"results": {
"description": "Dataset containing scraped Yandex SERP pages or flat result rows.",
"template": "{{links.apiDefaultDatasetUrl}}/items",
"title": "Yandex search results",
"type": "string"
}
},
"title": "Yandex SERP & Knowledge Graph Scraper Output"
}
Dataset schema
Published dataset views and any declared field definitions. A view can select only a subset of the returned record fields.
Download the published dataset schema
View complete JSON
{
"actorSpecification": 1,
"title": "Yandex Search Results",
"views": {
"detailed": {
"display": {
"component": "table",
"properties": {
"ads_results": {
"format": "array",
"label": "Ads"
},
"aiAnswer": {
"format": "object",
"label": "AI Answer"
},
"companies": {
"format": "array",
"label": "Companies"
},
"domain": {
"format": "text",
"label": "Domain"
},
"inline_images": {
"format": "array",
"label": "Images"
},
"inline_videos": {
"format": "array",
"label": "Videos"
},
"knowledge_graph": {
"format": "object",
"label": "Knowledge Graph"
},
"lang": {
"format": "text",
"label": "Language"
},
"organic_results": {
"format": "array",
"label": "Organic Results"
},
"page": {
"format": "number",
"label": "Page"
},
"pagination_info": {
"format": "object",
"label": "Pagination"
},
"products": {
"format": "array",
"label": "Products"
},
"query": {
"format": "text",
"label": "Query"
},
"related_searches": {
"format": "array",
"label": "Related Searches"
},
"scraped_at": {
"format": "text",
"label": "Scraped At"
},
"search_metadata": {
"format": "object",
"label": "Metadata"
},
"total_results_text": {
"format": "text",
"label": "Total Results"
},
"url": {
"format": "link",
"label": "URL"
},
"weather": {
"format": "object",
"label": "Weather"
}
}
},
"title": "Detailed View",
"transformation": {
"fields": [
"query",
"page",
"url",
"domain",
"lang",
"total_results_text",
"organic_results",
"ads_results",
"knowledge_graph",
"aiAnswer",
"inline_images",
"inline_videos",
"products",
"companies",
"weather",
"related_searches",
"search_metadata",
"pagination_info",
"scraped_at"
]
}
},
"overview": {
"display": {
"component": "table",
"properties": {
"domain": {
"format": "text",
"label": "Domain"
},
"organic_results": {
"format": "array",
"label": "Organic Results"
},
"page": {
"format": "number",
"label": "Page"
},
"query": {
"format": "text",
"label": "Query"
},
"scraped_at": {
"format": "text",
"label": "Scraped At"
},
"total_results_text": {
"format": "text",
"label": "Total Results"
}
}
},
"title": "Results Overview",
"transformation": {
"fields": [
"query",
"page",
"domain",
"total_results_text",
"organic_results",
"scraped_at"
]
}
}
}
}
Key-value schema
Published key-value store definitions, when provided by this build.
This definition is not present in the default published build. See the published README for available documentation.
Published README
Read the full published documentation
Yandex SERP & Knowledge Graph Scraper
Scrape Yandex web search across nine regional fronts and get the whole result page, not just ten blue links: organic rankings, sponsored rows, knowledge graph and AI answers, inline images and videos, product tiles, local companies, weather, and related searches. Choose page records for the familiar one-record-per-SERP shape or flat rows for rank tracking, ad intelligence and analytics. No login, API key, or proxy setup.
What it does
- Two modes: search by keyword, or parse Yandex SERP URLs you already have.
- Nine live fronts:
yandex.com,.by,.kz,.uz,.com.tr,.com.ge,.az,.md,.tj. - Rank tracking by region: 30+ named region presets plus a numeric
regionIdoverride, 19 interface languages, and correct past-day / two-week / month filters. - The full SERP surface: organic rows with true slot and organic ranks, ads with click URLs and displayed domains, knowledge graph + AI answer text and sources, inline images, inline videos, products, local companies, weather and related searches.
- Page or row output: keep today's page records or switch to one flat row per item with
recordType. - Clean data: empty fields, arrays and objects are omitted at every depth, never sent as
null.
Services
| Service | What you get |
|---|---|
| Keyword search | Multi-query Yandex SERP collection with pagination, region, language, domain and recency controls |
| URL parsing | Fetch specific Yandex result pages from a list of URLs, including translated Yandex URLs |
| Rank tracking | Overall slot, organic-only rank, page number, query and region on every result |
| Ad intelligence | Sponsored title, snippet, click URL, displayed domain and sitelinks |
| Entity research | Knowledge graph attributes, AI answer body, cited sources and "see also" entities |
| Commerce research | Product titles, prices, old prices, currencies, shops, delivery options and ratings |
| Local research | Company names, categories, ratings, review counts, addresses, metro and opening hours |
| Media discovery | Inline image thumbnails and originals, video cards with duration, views, publish date and preview |
| SERP context | Weather card, related searches and result-count text |
How it works
- The actor builds a Yandex search URL from your query, domain, language, region and time filter.
- It reads the server-rendered result page, using Yandex's own translated result view when a regional front challenges the request.
- It parses every result block in page order and assigns ranks across organic and sponsored rows.
- It removes duplicate URLs and duplicate block items, then stops at
maxItems, an empty page, or the end of Yandex's 25-page window. - It pushes either one page record or one flat row per item. Page records keep the original dataset fields and add the new blocks beside them.
Input
| Field | Type | Default | Description |
|---|---|---|---|
mode |
string | search |
search by keyword or byUrls for existing SERP URLs |
queries |
array | ["python programming"] |
One or more search queries (mode=search) |
serpUrls |
array | – | Yandex SERP URLs, one per page (mode=byUrls) |
domain |
string | yandex.com |
Regional front: .com, .by, .kz, .uz, .com.tr, .com.ge, .az, .md, .tj |
language |
string | en |
Yandex interface/search language (19 options) |
region |
string | – | Named region preset such as moscow, almaty, istanbul |
regionId |
integer | – | Numeric Yandex region ID; overrides region |
maxPages |
integer | 3 |
Pages per query, 1–25 |
startPage |
integer | 0 |
Zero-based first page, 0–24 |
maxItems |
integer | 100 |
Global unique-item cap, 1–10,000 |
timeFilter |
string | any |
any, day, twoWeeks, month |
fixTypos |
boolean | true |
Let Yandex correct misspelled queries |
includeAds |
boolean | true |
Include sponsored rows |
includeBlocks |
boolean | true |
Include knowledge graph, AI answer, images, videos, products, companies, weather |
includeRelatedSearches |
boolean | true |
Include related-search suggestions |
outputFormat |
string | pages |
pages for page records, rows for flat items |
failIfEmpty |
boolean | false |
Fail the run when nothing was collected |
Example: rank tracking in Moscow
{
"mode": "search",
"queries": ["купить пластиковые окна", "пластиковые окна цена"],
"domain": "yandex.com",
"language": "ru",
"regionId": 213,
"maxPages": 5,
"maxItems": 500,
"timeFilter": "month",
"outputFormat": "rows"
}
Example: audit a saved SERP URL
{
"mode": "byUrls",
"serpUrls": ["https://yandex.com.tr/search/?text=ikinci+el+araba&lr=87&p=0"],
"includeBlocks": true,
"includeAds": true,
"outputFormat": "pages"
}
Output
Pages mode (outputFormat: "pages")
One record per SERP page. Existing fields are preserved; new fields appear only when the block exists.
query,page,url,domain,lang,scraped_attotal_results_text— the result-count sentence when Yandex publishes oneorganic_results[]—position(all slots),organicPosition,resultType,title,link,displayed_link,displayedDomain,host,snippet,favicon,thumbnail,date,sitelinks[],rating,reviewCount,price,priceCurrency,shopName,delivery[]ads_results[]—position,title,link,clickUrl,displayed_link,displayedDomain,url(only when Yandex exposes the destination),snippet,sitelinks[]knowledge_graph—title,description,image_url,source_url,attributes{},label,answerText,sources[],seeAlso[]aiAnswer—label,text,sources[],imageUrlfor standalone AI answer blocksinline_images[]—title,thumbnail_url,source_url,originalImageUrl,sourceHost,altinline_videos[]—title,link,thumbnail_url,duration,durationSeconds,views,publishedAt,previewVideoUrl,sourceHostproducts[]—title,url,price,priceCurrency,oldPrice,rating,reviewCount,shopName,delivery[],imageUrlcompanies[]—title,url,rating,reviewCount,category,hours,priceLevel,address,metro,distance,features[],imageUrlweather—location,dateText,temperature,feelsLike,condition,wind,forecast[],hourly[],urlrelated_searches[]—query,linksearch_metadata—requested_domain,served_domain,locale_switched,source_path,captcha_encountered,pages_fetched,results_found,region_id,region_namepagination_info—current_page,max_pages_set,has_next_page,results_per_page,start_page,source_exhausted
Rows mode (outputFormat: "rows")
One record per item with recordType set to organic, ad, knowledgeGraph, aiAnswer, inlineImage, inlineVideo, product, company, weather, or relatedSearch.
Every row carries query, page, domain, language, regionId, regionName, sourcePath, scrapedAt, and the fields that belong to its type: position, organicPosition, resultType, blockType, title, url, clickUrl, displayedUrl, displayedDomain, host, snippet, thumbnail, favicon, sitelinks[], rating, reviewCount, price, priceCurrency, oldPrice, shopName, delivery[], duration, durationSeconds, views, publishedAt, sourceHost, imageUrl, originalImageUrl, sources[], attributes{}, plus weather and company details when relevant.
Usage cost
You pay Apify's standard actor start and dataset-item pricing for this run. There is no proxy, API key, or external data subscription to configure, and the actor never asks you to supply credentials.
FAQ
Do I need a proxy or a Yandex account?
No. The actor uses a working connection path automatically and needs no login, cookie, or API key.
Why do some fields disappear from a record?
Empty values are omitted on purpose. If a page has no knowledge graph, no ad, no price, or no video, that field is absent rather than null or an empty array.
Why does served_domain differ from the domain I selected?
Yandex sometimes serves an international or regional entry point from another front, and .com is commonly served from .ru. The requested and actual fronts are both reported in search_metadata.
Why do I get fewer results than I asked for?
Yandex serves at most 10 results per page and 25 pages per query, so one query tops out around 250 results. Split a large job by region, time window, or query variant to collect more.
Are sponsored results included?
Yes, when includeAds is true. Each ad has a click URL and a displayed domain. A final destination URL is included only when Yandex exposes it; the actor never invents one.
What is the difference between position and organicPosition?
position counts every result slot in page order, including ads. organicPosition counts only organic rows. Use the latter for classic rank tracking.
Can I scrape a URL I already have?
Yes. Use mode: "byUrls" and paste one or more Yandex result URLs. The actor reads the query, region, page and time filter from each URL.
Are old saved tasks still supported?
Yes. Legacy keys such as searchQueries, yandexDomain, lang, lr, noReask, old time-filter names and the old proxy field are accepted and mapped automatically. They are not shown in the input form anymore.
Is this affiliated with Yandex?
No. This is an independent third-party actor that reads publicly available Yandex search pages.
Notes
- Yandex serves 10 organic results per page; page numbers are zero-based in the input and one-based in the output.
maxItemscounts unique items across all queries. In pages mode it limits the items inside page records; in rows mode it limits rows.regionIdwins overregion. Use it when you need an exact Yandex region rather than a named preset.languageshould match your query language to keep result text in the original language.- Empty values are omitted at every depth. Arrays and nested objects are never sent as
null,"",[]or{}. - The actor stops on
maxItems, an empty page, or the end of Yandex's page window. It never stops on a wall-clock timer.
Limitations
- Vertical search is separate. This actor returns the inline blocks that appear inside the web SERP. Dedicated image, video, news, and maps search belong to the separate Yandex vertical actors.
- Inline blocks are conditional. Yandex decides per query, front and layout whether to render image, video, product, company or weather cards. The actor emits a block only when the served page contains it; an absent block is not an error and is never synthesized.
- Ad destinations are sometimes hidden. Yandex often keeps only a click-tracker URL.
clickUrlanddisplayedDomainare always honest; a direct destination is added only when Yandex reveals it. - Dates are conditional. Web results rarely expose a publication date, so
dateappears only when the page shows one. Video publish dates are normalized to ISO when they can be parsed. - Default region is context-sensitive. When
regionandregionIdare empty, Yandex chooses a region from the query and request context, so two runs can rank differently. SetregionId(for example213for Moscow) when you need reproducible rankings. - Deep pages lose relevance. Pages 11–25 are available, but Yandex's ranking gets less precise beyond the first ten. Use smaller page windows when relevance matters more than volume.
- Translated result text. When Yandex serves a regional front through its translated view, the original language is preserved when
languagematches the query language. A language mismatch can produce translated snippets. - Localized labels. Some SERP labels (for example weather conditions and company categories) stay in the language Yandex renders for that front; the actor does not machine-translate them.
Python quickstart
Use a schema-derived input and the Python standard library to start a run. An Apify account and token are required for execution.
Source build bSVngXIyYRPALNUTs. Documentation is regenerated from the default published build; private drafts are not included.