# Yandex Market Scraper - Prices, Discounts & Sellers (`rjmacarthy/yandex-market-scraper`) Actor

Scrape Yandex Market (market.yandex.ru) search and category listings: price, Yandex Pay card price, old price, discount, rating, seller, delivery and ad flag per product. Captcha pages are detected, retried and never charged. Only-new mode for price monitoring.

- **URL**: https://apify.com/rjmacarthy/yandex-market-scraper.md
- **Developed by:** [rj](https://apify.com/rjmacarthy) (community)
- **Categories:** E-commerce, MCP servers
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.70 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Yandex Market Scraper - Prices, Discounts & Sellers

Scrape **Yandex Market** (market.yandex.ru, Russia's largest marketplace) search results and category listings. For every product you get the current price, the **Yandex Pay card price**, the old (crossed-out) price, the discount, rating and number of ratings, purchases, seller, delivery estimate and a sponsored-ad flag, all as clean typed JSON. Yandex sometimes shows a captcha ("Вы не робот?") to scrapers. This Actor **detects captcha pages, retries them with a fresh session and never charges for them**, and the run summary tells you exactly what happened. An **only-new mode** makes scheduled price monitoring cheap. No login, no browser, no cookies.

### What data can you get?

| Field | Example |
|---|---|
| `title` | Смартфон Apple iPhone 16 128 ГБ, Dual: nano SIM + eSIM, Черный |
| `price` (RUB) | 73489 |
| `priceWithCard` (Yandex Pay card price, the headline price on the tile) | 72019 |
| `oldPrice` / `discountPercent` | 109700 / 34 |
| `rating` / `reviewsCount` / `purchaseCount` | 4.9 / 8158 / 22058 |
| `shopName` / `shopId` | ТехноЛогично / 216379052 |
| `deliveryText` / `deliveryDateFrom` / `deliveryDateTo` | Послезавтра, по клику / 2026-11-14 / 2026-11-14 |
| `isSponsored`, `isExpress`, `inStock`, `stockCount` | true, false, true, 30 |
| `badges` | \["Оригинал", "Скидка 34%"] |
| `brand` | Apple |
| `id`, `productId` (model), `skuId`, `offerId`, `vendorId`, `categoryId` | ids for joining and de-duplication |
| `url`, `imageUrl` | product card URL (tracking parameters removed), main image |
| `position`, `page`, `query`, `startUrl` | where the product appeared |
| `region`, `regionId` | region the prices and delivery apply to (e.g. Москва / 213) |
| `scrapedAt` | ISO timestamp |

### Use cases

- **Price and MAP monitoring** for brands and distributors selling in Russia/CIS: schedule a daily run with `onlyNew` off and track `price`, `priceWithCard` and `oldPrice` over time.
- **Competitor tracking** for marketplace sellers: see who sells your SKUs, at what price, with which delivery promise, and who pays for sponsored placement.
- **Price indices and market research**: cheapest and most expensive offers per category (`sort: price_asc` / `price_desc`).
- **New-listing alerts**: with `onlyNew: true` each run outputs (and charges) only products not seen before.

### How to use

1. Enter one or more **search queries** (Russian or English, as you would type them on market.yandex.ru) and/or **start URLs** of search or category pages.
2. Set **Max products per query** and **Max pages per query**.
3. Optionally choose a **sort** order and turn on **Only new products**.
4. Run, then download the dataset as JSON, CSV or Excel, or read it through the API.

Search queries:

```json
{
    "queries": ["iphone 16", "робот-пылесос"],
    "maxItemsPerQuery": 30,
    "maxPages": 3
}
```

Cheapest offers first:

```json
{
    "queries": ["робот-пылесос"],
    "sort": "price_asc",
    "maxItemsPerQuery": 20,
    "maxPages": 2
}
```

A category page, highest rated first:

```json
{
    "startUrls": [{ "url": "https://market.yandex.ru/catalog--smartfony/26893750/list" }],
    "sort": "rating",
    "maxItemsPerQuery": 20,
    "maxPages": 2
}
```

Daily monitor that only outputs new products:

```json
{
    "queries": ["телевизор samsung"],
    "maxPages": 3,
    "onlyNew": true,
    "stateKey": "samsung-tv-monitor"
}
```

### Output example

```json
{
    "id": "103572164696",
    "productId": "6365904738",
    "skuId": "103295176729",
    "offerId": "MD5ASNNNe_QuNNLbvhh9RA",
    "title": "Смартфон Apple iPhone 16 128 ГБ, Dual: nano SIM + eSIM, Черный (без RuStore)",
    "url": "https://market.yandex.ru/card/smartfon-apple-iphone-16-128-gb-dual-nano-sim--esim-chernyy/103572164696",
    "price": 73489,
    "priceWithCard": 72019,
    "oldPrice": 109700,
    "discountPercent": 34,
    "currency": "RUB",
    "rating": 4.9,
    "reviewsCount": 8158,
    "purchaseCount": 22058,
    "imageUrl": "https://avatars.mds.yandex.net/get-mpic/16866742/img_id7281269077521914025.jpeg/orig",
    "brand": "Apple",
    "vendorId": "153043",
    "categoryId": "91491",
    "shopName": "ТехноЛогично",
    "shopId": "216379052",
    "deliveryText": "Послезавтра, по клику",
    "deliveryDateFrom": "2026-11-14",
    "deliveryDateTo": "2026-11-14",
    "badges": ["Оригинал", "Скидка 34%"],
    "isSponsored": true,
    "isExpress": false,
    "inStock": true,
    "stockCount": 30,
    "position": 1,
    "page": 1,
    "query": "iphone 16",
    "startUrl": null,
    "region": "Москва",
    "regionId": 213,
    "scrapedAt": "2026-11-12T12:28:32.859Z"
}
```

**Which price is which?** `priceWithCard` is the big number Yandex shows on the tile ("Цена с картой Яндекс Пэй"). `price` is what you pay without that card. `oldPrice` is the crossed-out price, when there is one. `discountPercent` is Yandex's own discount badge: the card price compared with the old price (it can be set without an old price when the only discount is the card discount).

### Pricing

Pay per event, no subscription:

| Event | Price |
|---|---|
| `product`: one product row in the dataset | $0.0017 |

**1,000 products ≈ $1.70.** Captcha pages, blocked pages and products skipped by only-new mode are **free**. Set "Maximum cost per run" and the Actor stops cleanly when it is reached.

### Tips and limits

- **Products per page:** Yandex renders the first **8-16 products of each results page** on the server. The rest of the page loads in the browser, and this Actor does not run a browser. So `page: 2` continues after Yandex's full first page, not after our 8 products. `position` numbers the products we scraped, in page order. For deep coverage, use more pages and specific queries or category URLs.
- **Region:** prices and delivery are for the region Yandex assigns to the request. In our tests that was Moscow (213), whatever `lr` parameter or region cookie was sent, so the Actor has no region selector. Every row reports the actual `region` and `regionId`.
- **Captchas:** Yandex sometimes answers with "Вы не робот?". The Actor retries that page up to 2 more times with a new session (and a new IP when Apify Proxy is on), then gives up on that query with a clear message. It never solves captchas. If the first 3 queries are all blocked, the run stops. Turning on Apify Proxy (datacenter) gives each retry a new IP, which may help.
- **Product pages** (`/card/...`) and reviews are not scraped, because Yandex shows a captcha on them to datacenter IPs. Everything comes from listing pages.
- **Brand** comes from the page's brand filter. If a brand is not listed in that filter, `brand` is null (the `vendorId` is always there).
- **Nonsense queries still return products:** Yandex fills searches it can't match with popular products, so check that titles fit your query.
- Filtered URLs with `glfilter` parameters are not crawled (Yandex's robots.txt disallows them); the parameter is removed with a warning.
- Requests are spaced at least 1 second apart, with at most 2 in flight.

### FAQ

**Is it legal to scrape Yandex Market?**
This Actor only reads public listing pages that anyone can open without logging in. It does not collect personal data. You are responsible for how you use the data and for complying with Yandex's terms and the laws that apply to you (for example GDPR or Russian Federal Law 152-FZ). If in doubt, ask a lawyer.

**Why did a query return "captcha"?**
Yandex showed its robot check to the run's IP three times in a row. Nothing was charged. Enable Apify Proxy (datacenter) or run again later.

**Can I use residential proxies?**
No. Under pay-per-event pricing the Actor's owner pays proxy traffic, and residential traffic is too expensive for a $0.0017 product. If you pick a residential group, the Actor logs a warning and uses Apify datacenter proxy instead. Your own proxy URLs work.

**How does only-new mode work?**
Product ids output by earlier runs are stored in the named key-value store `yandex-market-scraper-state` under your `stateKey`. Known products are skipped and not charged; ids not seen for 120 days are forgotten.

**What does the run summary contain?**
The `RUN_SUMMARY` record in the default key-value store has each query's status (`ok`, `partial`, `no-results`, `captcha`, `failed`, `layout-changed`), page and product counts, the total result count Yandex reported, the region, captcha pages, HTTP request counts and duration.

### Integrations

Use the results anywhere through the [Apify API](https://docs.apify.com/api/v2), the JavaScript and Python clients, scheduled runs and webhooks. Connect them to **Make**, **Zapier**, **n8n**, Google Sheets, Slack or Airbyte, or call the Actor from AI agents through the **Apify MCP server**.

### Changelog

- **0.1** (November 2026): first release. Search queries and category URLs, 4 sort orders, card / regular / old prices, discount, rating, seller, delivery, sponsored flag, captcha detection and retry, only-new mode.

### More scrapers by the same developer

- [AutoScout24 Scraper - Used Car Listings & Prices (Europe)](https://apify.com/rjmacarthy/autoscout24-scraper)
- [Etsy Scraper - Search Listings, Prices, Shops & Bestsellers](https://apify.com/rjmacarthy/etsy-scraper)
- [Flipkart Scraper - Prices, Ratings & Offers from Search](https://apify.com/rjmacarthy/flipkart-scraper)
- [Kleinanzeigen Scraper - Germany Classifieds Listings & Prices](https://apify.com/rjmacarthy/kleinanzeigen-scraper)
- [Rightmove Scraper - UK Property for Sale & Rent with Prices](https://apify.com/rjmacarthy/rightmove-scraper)
- [Shopify App Store Scraper - Apps, Pricing, Ratings & Reviews](https://apify.com/rjmacarthy/shopify-app-store-scraper)

Browse all my Actors on [my Apify Store profile](https://apify.com/rjmacarthy).

### Support

Found a bug or need a field? Open an issue on the Issues tab with your input and run ID. We usually answer within a day.

# Actor input Schema

## `queries` (type: `array`):

What you would type into Yandex Market's search box, e.g. "iphone 16" or "робот-пылесос". One query per line.

## `startUrls` (type: `array`):

Optional market.yandex.ru search or category listing URLs (e.g. https://market.yandex.ru/catalog--smartfony/26893750/list). Product (/card/) pages are not supported: Yandex shows a captcha on them. Filtered URLs (glfilter) are not crawled, per Yandex's robots.txt.

## `maxItemsPerQuery` (type: `integer`):

Stop each query/URL after this many products. 0 = no limit (then Max pages decides).

## `maxPages` (type: `integer`):

Yandex Market results pages to fetch per query/URL. Each page gives the 8-16 products Yandex renders on the server.

## `sort` (type: `string`):

Sort order (Yandex Market's own sort options).

## `onlyNew` (type: `boolean`):

Skip (and don't charge) products already output by earlier runs with the same state key. Use it for scheduled monitoring.

## `stateKey` (type: `string`):

Name of the remembered product set for only-new mode. Use a different key per monitor.

## `proxyConfiguration` (type: `object`):

Optional. Apify Proxy (datacenter) helps when Yandex shows captchas to the run's IP. Residential proxies are not supported: if you pick them, the Actor uses Apify datacenter proxy instead.

## Actor input object example

```json
{
  "queries": [
    "iphone 16"
  ],
  "startUrls": [],
  "maxItemsPerQuery": 15,
  "maxPages": 1,
  "sort": "relevance",
  "onlyNew": false,
  "stateKey": "default",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `products` (type: `string`):

Price, card price, old price, discount, rating, seller and delivery per product.

## `productsFull` (type: `string`):

Every field for each product.

## `summary` (type: `string`):

Per-query status (ok, captcha, no-results...), counts and request statistics.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "iphone 16"
    ],
    "maxItemsPerQuery": 15,
    "maxPages": 1,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rjmacarthy/yandex-market-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "queries": ["iphone 16"],
    "maxItemsPerQuery": 15,
    "maxPages": 1,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("rjmacarthy/yandex-market-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "iphone 16"
  ],
  "maxItemsPerQuery": 15,
  "maxPages": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call rjmacarthy/yandex-market-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rjmacarthy/yandex-market-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/roKj5AXYv5gob0hYZ/builds/dDeePYSVi7ZXyF7Rs/openapi.json
