There are two approaches to retrieving data from Yandex using our SERP Scraper API. You can give us a full URL or pass parameters via the specifically built data source - Search.
Overview
Below is a quick overview of all the available data source values we support with Yandex.
Source
Description
Structured data
yandex
Submit any Yandex URL you like.
No.
yandex_search
Yandex SERPs.
No.
Although we do not have dedicated parsers for Yandex, you can write your own parsing instructions with Custom Parser feature and get structured data.
You can jump to your preferred Yandex page type by selecting its name on the right hand side menu. Each page contains the parameter table as well as code examples to help you get started with your query.
URL
The yandex source is designed to retrieve content of direct URLs of various Yandex pages. Instead of sending multiple parameters, you can provide us with a direct URL required for Yandex page. We do not strip any parameters or alter your URLs in any other way.
import requestsfrom pprint import pprint# Structure payload.payload = {'source': 'yandex','url': 'https://yandex.com/search/?text=nike&'}# Get response.response = requests.request('POST','https://realtime.oxylabs.io/v1/queries', auth=('user','pass1'), json=payload,)# Instead of response with job status and results url, this will return the# JSON response with results.pprint(response.json())
# URL has to be encoded to escape `&` and `=` characters:# URL: https://yandex.com/search/?text=nike&# Encoded URL: https%3A%2F%2Fyandex.com%2Fsearch%2F%3Ftext%3Dnike%26https://realtime.oxylabs.io/v1/queries?source=google&url=https%3A%2F%2Fyandex.com%2Fsearch%2F%3Ftext%3Dnike%26&access_token=12345abcde
The example above uses the Realtime integration method. If you would like to use some other integration method in your query (e.g. Push-Pull or Proxy Endpoint), refer to the integration methods section.
Search
The yandex_search source is designed to retrieve Yandex Search results (SERP).
The example above uses the Realtime integration method. If you would like to use some other integration method in your query (e.g. Push-Pull or Proxy Endpoint), refer to the integration methods section.