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
| Name | Description |
|---|---|
api_key | Your SERP API key. Keep it server-side. |
engine | Must be yandex. |
q | Search query. URL-encode this value when it contains spaces or special characters. |
Optional Parameters
| Name | Description |
|---|---|
lr | Yandex location ID. |
lang | Search language. |
device | Device profile. |
p | Result page. |
within | Time 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.