WebScrapingAPI Docs
Search Engine APIsYandex Search API

Basic API Requests

Send a Yandex Search API request and read the returned SERP response.

The Yandex Search API runs through the SERP API endpoint. Send a GET request with your API key, set engine=yandex, and pass the search query in q.

Request

curl --get "https://serpapi.webscrapingapi.com/v2" \
  --data-urlencode "api_key=YOUR_API_KEY" \
  --data-urlencode "engine=yandex" \
  --data-urlencode "q=pizza"

Required Parameters

NameDescription
api_keyYour SERP API key. Keep it server-side.
engineMust be yandex.
qSearch query. URL-encode this value when it contains spaces or special characters.

Optional Parameters

NameDescription
lrYandex location ID.
langSearch language.
deviceDevice profile.
pResult page.
withinTime range filter.

Response

Successful requests return metadata about the submitted search and the Yandex result payload. The exact result fields can change as Yandex updates its page, so store only the fields your workflow needs.

{
  "search_parameters": {
    "search_engine": "yandex",
    "yandex_url": "https://www.yandex.com/search/?text=pizza",
    "query": "pizza"
  },
  "search_results": "<html>...</html>"
}

For typed parameters such as lr, lang, device, and pagination, see API Parameters.

On this page