> ## Content Index
> Fetch the complete content index at: https://serpapi.com/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Scrape Yandex Videos Results
- URL: https://serpapi.com/blog/how-to-scrape-yandex-videos-results/
- Published: 2023-11-29T03:47:51.000Z
- Updated: 2024-09-20T05:59:59.000Z
- Author: Andy L

In my previous blog posts, we were able to scrape videos from [Google videos](https://serpapi.com/blog/how-to-scrape-google-videos-results/) and [Yahoo videos](https://serpapi.com/blog/how-to-scrape-yahoo-videos-results/) with SerpApi. Along with Google and Yahoo, Yandex is a popular search engine, particularly in Russian-speaking regions, that includes video content.

![](https://lh7-us.googleusercontent.com/dRa0RcshBCAIQxeud2Awq_0TGLVGRoc-iGGUcDqsK4tB0dpNfbpx6ECYD5RPfTfKGBXXx_1np3I8Cv1F1tcxeDf-Uw4SFM323NgdSK89y0p2z2fIWDTvqbeUGR2G3yuHJx5DZ0VrjXjEDN6yZPaOXh4)

In this blog post, I'll help you to scrape video data from Yandex. By scraping videos from Yandex videos, you can target users in Russian-speaking regions, localize video content, and do market research, analyzing trends for Russian-speaking markets.

![](https://lh7-us.googleusercontent.com/YkiKwi8WXNnsya8wiv2esmBgLRw0WraVVsI5gxay5HrFlErCnNu1DIbg6Kqare7Zu2bbU3kuzDIgw2a1F9QsaowH9Kp7d8SJX_e1_rKvYXYdzopkb3AkMUAhye0mFxOGgZsYSCTwo56ABEp_ODTbAPU)

## Setting up a SerpApi account

[SerpApi](https://serpapi.com/) offers a free plan for newly created accounts. Head to the [sign-up](https://serpapi.com/users/sign%5Fup?plan=free) page to register an account and complete your first search with our [interactive playground](https://serpapi.com/playground?engine=yandex%5Fvideos). When you want to do more searches with us, please visit the [pricing page](https://serpapi.com/pricing).

Once you are familiar with all results, you can utilize SERP APIs using your [API Key](https://serpapi.com/manage-api-key).

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2023/11/Screenshot-2023-11-27-at-17.37.14.png)

### Scrape your first Yandex Videos results with SerpApi

Head to the Yahoo Videos Results from the [documentation](https://serpapi.com/yandex-videos-api) on [SerpApi](https://serpapi.com/) for details.

In this tutorial, we will scrape videos results when searching with the "coffee" keyword. The data contains: "position", "title", "link", "thumbnail", "source", "date", "duration", "views" and more. You can also scrape more information with [SerpApi](https://serpapi.com/).

First, you need to install the [SerpApi client library](https://github.com/serpapi/google-search-results-python?ref=serpapi.com).

```python
pip install google-search-results
```

Set up the[ SerpApi](https://serpapi.com/?ref=serpapi.com)[ credentials](https://serpapi.com/manage-api-key?ref=serpapi.com) and search.

```python
import serpapi, os, json

params = {
    'api_key': 'YOUR_API_KEY',         # your serpapi api
    'engine': 'yandex_videos',         # SerpApi search engine	
    'text': 'coffee'
}

```

To retrieve Yandex Videos Results for a given search term, you can use the following code:

```python
results = serpapi.Client().search(params)["videos_results"]

```

You can store Videos Results JSON data in databases or export them to a CSV file.

```python
import csv

header = ['position', 'title', 'link', 'thumbnail', 'source', 'date', 'duration', 'views', 'description']

with open('yandex_videos.csv', 'w', encoding='UTF8', newline='') as f:
    writer = csv.writer(f)

    writer.writerow(header)

    for item in results:
        print(item)
        writer.writerow([item.get('position'), item.get('title'), item.get('preview', {}).get('url'), item.get('thumbnail'), item.get('source'), item.get('date'), item.get('duration'), item.get('views'), item.get('description')])

```

This example is using Python, but you can also use your all your favorite programming languages likes Ruby, NodeJS, Java, PHP....

If you have any questions, please feel free to [contact me](mailto:andy@serpapi.com).