Skip to main content
GET
Web Search
Search Yandex’s web SERP. Organic results carry the resolved destination URL (Yandex’s /r?u= tracking redirects are decoded), displayed URL, domain, snippet, favicon and sitelinks. Credits: 7

Authorization

string
required
Your ScrapeBadger API key.

Query Parameters

string
required
Search keywords, e.g. coffee machine.
string
default:"tr"
Yandex domain: tr (yandex.com.tr, the default — reliably clears anti-bot), com, ru, by, kz, uz. com/ru have a lower success rate. See /markets.
integer
default:"1"
Result page, 125.
integer
Yandex region id, e.g. 213 = Moscow, 84 = USA. Defaults to the domain’s region.
string
UI language: ru, en, tr, be, kk, uk.

Response

string
Echo of the requested query.
string
The domain the results were fetched from.
integer
The Yandex region id used.
string
The UI language used.
integer
The page returned.
string
The Yandex URL that was scraped.
integer
Yandex’s reported total match count (approximate).
string
Yandex’s “did you mean” suggestion, when present.
integer
Organic results returned in this response.
OrganicResult[]
Organic results.
Ad[]
Ads served for this query, when present (position, title, url, displayed_url, domain, snippet, sitelinks).
InlineImage[]
Image results shown inline on the SERP (title, source_url, thumbnail).
InlineVideo[]
Video results shown inline (title, url, source, channel, duration, views, date, thumbnail).
object
Knowledge-panel data, when Yandex renders one.
Yandex’s related query suggestions.
Pagination
current, next_url, other_pages map of page → URL.

Example

Response

Anti-bot

Keep domain=tr. yandex.com and yandex.ru serve SmartCaptcha far more often and return 422 (not billed). The scraper retries on a fresh exit, but the tr domain clears most reliably.