Core APIs
...
Yandex
Core Requests
Search
4min
yandex search parameters get get /search?engine=yandex the yandex search parameters are applicable when making a request with engine=yandex to retrieve yandex search results for a given search term the search term is specified in the q parameter and the optional yandex domain parameter can be used to specify the yandex domain used for the request supported yandex domains are yandex com and yandex ru setting the location of yandex requests the yandex location parameter can be used to localize your yandex request the yandex location parameter is only available on the yandex ru domain i e when your request has the yandex domain=yandex ru request parameter set view the full list of supported yandex location values here https //docs trajectdata com/serpwow/search api/reference/yandex locations for example, to request yandex search results for the keyword pizza on yandex com , the request would be http https //api serpwow\ com/live/search?api key=demo\&engine=yandex\&yandex domain=yandex com\&q=pizzacurl l get https //api serpwow\ com/live/search \\ d api key="demo" \\ d engine="yandex" \\ d yandex domain="yandex com" \\ d q="pizza"const axios = require('axios'); // set up the request parameters const params = { api key "demo", engine "yandex", yandex domain "yandex com", q "pizza" } // make the http get request axios get('https //api serpwow\ com/live/search', { params }) then(response => { // print the json response console log(json stringify(response data, 0, 2)); }) catch(error => { // catch and print the error console log(error); })import requests import json \# set up the request parameters params = { 'api key' 'demo', 'engine' 'yandex', 'yandex domain' 'yandex com', 'q' 'pizza' } \# make the http get request api result = requests get('https //api serpwow\ com/live/search', params) \# print the json response print(json dumps(api result json()))\<?php \# set up the request parameters $querystring = http build query(\[ 'api key' => 'demo', 'engine' => 'yandex', 'yandex domain' => 'yandex com', 'q' => 'pizza' ]); \# make the http get request $ch = curl init(sprintf('%s?%s', 'https //api serpwow\ com/live/search', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); $api result = curl exec($ch); curl close($ch); \# print the json response echo $api result; ?> yandex search parameters the following parameters are available for all requests made when engine=yandex parameter required description engine required should be set to engine=yandex q required the keyword you want to use to perform the search yandex domain optional the yandex domain to retrieve search results from supported yandex domains are yandex com and yandex ru defaults to yandex com yandex location optional the yandex location parameter determines the yandex defined location to show results from this is typically the country or location in which the user is making requests for example yandex location=177 for berlin, germany view the full list of supported yandex location values here https //docs trajectdata com/serpwow/search api/reference/yandex locations note the yandex location parameter only functions when yandex domain=yandex ru it cannot be used with any other yandex domain yandex language optional the yandex language parameter determines the yandex ui language to return results view the full list of supported yandex language values here https //docs trajectdata com/serpwow/search api/reference/yandex languages page optional determines the page of results to return, defaults to 1 max page optional use the max page parameter to get multiple pages of results in one request the api will automatically paginate through pages and concatenate the results into one response see the pagination https //docs trajectdata com/serpwow/search api/pagination docs for more information next steps yandex search results https //docs trajectdata com/serpwow/search api/results/yandex/search